SYMBOL INDEX (2477 symbols across 158 files) FILE: chapter/10/main.go function main (line 19) | func main() { function parseAndValidateInput (line 55) | func parseAndValidateInput() { function printVersion (line 102) | func printVersion() { function printOutput (line 110) | func printOutput(key, message string) { FILE: chapter/10/pkg/tweeter/tweeter.go type Config (line 17) | type Config struct method Validate (line 31) | func (cfg Config) Validate() error { type Client (line 25) | type Client struct method Tweet (line 69) | func (c *Client) Tweet(message string) error { function New (line 52) | func New(cfg Config) (*Client, error) { FILE: chapter/10/pkg/tweeter/tweeter_test.go function TestNew (line 10) | func TestNew(t *testing.T) { function TestConfig_Validate (line 27) | func TestConfig_Validate(t *testing.T) { FILE: chapter/11/chatbot/bot/bot.go type HandleFunc (line 19) | type HandleFunc type Message (line 22) | type Message struct type register (line 31) | type register struct type Bot (line 37) | type Bot struct method Start (line 61) | func (b *Bot) Start() { method Stop (line 68) | func (b *Bot) Stop() { method Register (line 75) | func (b *Bot) Register(r *regexp.Regexp, h HandleFunc) { method loop (line 90) | func (b *Bot) loop() { method appMentioned (line 116) | func (b *Bot) appMentioned(ctx context.Context, data slackevents.Event... method makeMsg (line 152) | func (b *Bot) makeMsg(callback *slackevents.EventsAPICallbackEvent, ev... function New (line 48) | func New(api *slack.Client, client *socketmode.Client) (*Bot, error) { type rawMessage (line 167) | type rawMessage struct method getText (line 172) | func (r rawMessage) getText() string { FILE: chapter/11/chatbot/chatbot.go function main (line 22) | func main() { FILE: chapter/11/chatbot/internal/handlers/handlers.go type Ops (line 26) | type Ops struct method write (line 33) | func (o Ops) write(m bot.Message, s string, i ...interface{}) error { method Register (line 42) | func (o Ops) Register(b *bot.Bot) { method ListTraces (line 61) | func (o Ops) ListTraces(ctx context.Context, m bot.Message) { method ShowTrace (line 142) | func (o Ops) ShowTrace(ctx context.Context, m bot.Message) { method ShowLogs (line 192) | func (o Ops) ShowLogs(ctx context.Context, m bot.Message) { method ChangeSampling (line 225) | func (o Ops) ChangeSampling(ctx context.Context, m bot.Message) { method Help (line 294) | func (o Ops) Help(ctx context.Context, m bot.Message) { method lastResort (line 314) | func (o Ops) lastResort(ctx context.Context, m bot.Message) { type opt (line 52) | type opt struct function init (line 278) | func init() { function convertList (line 318) | func convertList(s string) ([]string, error) { FILE: chapter/11/ops/client/client.go type Ops (line 16) | type Ops struct method ListTraces (line 128) | func (o *Ops) ListTraces(ctx context.Context, options ...CallOption) (... method ShowTrace (line 166) | func (o *Ops) ShowTrace(ctx context.Context, id string) (*pb.ShowTrace... method ShowLogs (line 181) | func (o *Ops) ShowLogs(ctx context.Context, id string) ([]Log, error) { method ChangeSampling (line 219) | func (o *Ops) ChangeSampling(ctx context.Context, sampler *pb.ChangeSa... method DeployedVersion (line 229) | func (o *Ops) DeployedVersion(ctx context.Context) (string, error) { method Alerts (line 287) | func (o *Ops) Alerts(ctx context.Context, options ...CallOption) ([]Al... function New (line 22) | func New(addr string) (*Ops, error) { type callOptions (line 34) | type callOptions struct type listTracesOpts (line 39) | type listTracesOpts struct method defaults (line 53) | func (l *listTracesOpts) defaults() { type alertsOpts (line 47) | type alertsOpts struct type CallOption (line 59) | type CallOption function WithStart (line 62) | func WithStart(t time.Time) CallOption { function WithEnd (line 73) | func WithEnd(t time.Time) CallOption { function WithLimit (line 87) | func WithLimit(i int32) CallOption { function WithOperation (line 98) | func WithOperation(s string) CallOption { function WithTags (line 109) | func WithTags(tags []string) CallOption { type TraceItem (line 120) | type TraceItem struct type TraceData (line 157) | type TraceData struct type Log (line 175) | type Log struct function WithLabels (line 238) | func WithLabels(labels []string) CallOption { function WithActiveAt (line 249) | func WithActiveAt(t time.Time) CallOption { function WithStates (line 260) | func WithStates(states []string) CallOption { type Alert (line 271) | type Alert struct method fromProto (line 280) | func (a *Alert) fromProto(p *pb.Alert) { FILE: chapter/11/ops/internal/jaeger/client/client.go type Trace (line 27) | type Trace struct type Span (line 39) | type Span struct method Proto (line 45) | func (s Span) Proto() *mpb.Span { method TraceID (line 50) | func (s Span) TraceID() string { method SpanID (line 60) | func (s Span) SpanID() string { type Jaeger (line 69) | type Jaeger struct method Addr (line 90) | func (j *Jaeger) Addr() string { method Search (line 151) | func (j *Jaeger) Search(ctx context.Context, params SearchParams) (cha... method Trace (line 166) | func (j *Jaeger) Trace(ctx context.Context, id string) (Trace, error) { function New (line 76) | func New(addr string) (*Jaeger, error) { type SearchParams (line 95) | type SearchParams struct method validate (line 117) | func (s SearchParams) validate() error { method proto (line 124) | func (s SearchParams) proto() *pb.FindTracesRequest { type receiver (line 195) | type receiver interface function unwind (line 201) | func unwind(ctx context.Context, stream receiver) chan Trace { function chunkToSpan (line 239) | func chunkToSpan(chunk *pb.SpansResponseChunk) []Span { FILE: chapter/11/ops/internal/jaeger/client/test/client/client.go constant NestedSpans (line 27) | NestedSpans = 2560 function initProvider (line 30) | func initProvider() func() { function initTracer (line 44) | func initTracer(ctx context.Context, otelAgentAddr string) *otlptrace.Ex... function handleErr (line 77) | func handleErr(err error, message string) { type HTTP (line 87) | type HTTP struct method Call (line 106) | func (h *HTTP) Call(ctx context.Context) (traceID string, err error) { method makeRequest (line 121) | func (h *HTTP) makeRequest(ctx context.Context) error { method makeNestedSpans (line 137) | func (h *HTTP) makeNestedSpans(ctx context.Context, tracer trace.Trace... function New (line 92) | func New(addr string) (*HTTP, error) { function convertTraceID (line 150) | func convertTraceID(id string) string { FILE: chapter/11/ops/internal/jaeger/client/test/etoe_test.go function TestTrace (line 15) | func TestTrace(t *testing.T) { FILE: chapter/11/ops/internal/jaeger/client/test/server/main.go function initProvider (line 24) | func initProvider() func() { function initTracer (line 42) | func initTracer(ctx context.Context, otelAgentAddr string) *otlptrace.Ex... function handleErr (line 75) | func handleErr(err error, message string) { function main (line 81) | func main() { FILE: chapter/11/ops/internal/prom/prom.go type Client (line 19) | type Client struct method Metric (line 38) | func (c *Client) Metric(ctx context.Context, metric string) (model.Val... method Range (line 44) | func (c *Client) Range(ctx context.Context, query string, r v1.Range) ... method Alerts (line 192) | func (c *Client) Alerts(ctx context.Context, filter AlertFilter) (chan... function New (line 24) | func New(httpAddr string) (*Client, error) { type AlertFilter (line 49) | type AlertFilter struct method Compile (line 69) | func (a *AlertFilter) Compile() error { method filter (line 106) | func (a *AlertFilter) filter(items []v1.Alert) (chan v1.Alert, error) { method pipeline (line 140) | func (a *AlertFilter) pipeline(item v1.Alert, out chan v1.Alert) { method matchLabel (line 165) | func (a *AlertFilter) matchLabel(item v1.Alert) bool { FILE: chapter/11/ops/internal/server/server.go type API (line 27) | type API struct method Start (line 92) | func (a *API) Start() error { method Stop (line 105) | func (a *API) Stop() { method ListTraces (line 113) | func (a *API) ListTraces(ctx context.Context, req *pb.ListTracesReq) (... method ShowLogs (line 161) | func (a *API) ShowLogs(ctx context.Context, req *pb.ShowLogsReq) (*pb.... method ShowTrace (line 193) | func (a *API) ShowTrace(ctx context.Context, req *pb.ShowTraceReq) (*p... method ChangeSampling (line 230) | func (a *API) ChangeSampling(ctx context.Context, req *pb.ChangeSampli... method DeployedVersion (line 243) | func (a *API) DeployedVersion(ctx context.Context, req *pb.DeployedVer... method Alerts (line 252) | func (a *API) Alerts(ctx context.Context, req *pb.AlertsReq) (*pb.Aler... type Clients (line 40) | type Clients struct method validate (line 49) | func (c Clients) validate() error { type Option (line 63) | type Option function WithGRPCOpts (line 66) | func WithGRPCOpts(opts ...grpc.ServerOption) Option { function New (line 73) | func New(addr string, clients Clients, options ...Option) (*API, error) { FILE: chapter/11/ops/ops.go function main (line 20) | func main() { FILE: chapter/11/ops/proto/jaeger/collector.pb.go constant _ (line 36) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 38) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type PostSpansRequest (line 41) | type PostSpansRequest struct method Reset (line 49) | func (x *PostSpansRequest) Reset() { method String (line 58) | func (x *PostSpansRequest) String() string { method ProtoMessage (line 62) | func (*PostSpansRequest) ProtoMessage() {} method ProtoReflect (line 64) | func (x *PostSpansRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 77) | func (*PostSpansRequest) Descriptor() ([]byte, []int) { method GetBatch (line 81) | func (x *PostSpansRequest) GetBatch() *model.Batch { type PostSpansResponse (line 88) | type PostSpansResponse struct method Reset (line 94) | func (x *PostSpansResponse) Reset() { method String (line 103) | func (x *PostSpansResponse) String() string { method ProtoMessage (line 107) | func (*PostSpansResponse) ProtoMessage() {} method ProtoReflect (line 109) | func (x *PostSpansResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 122) | func (*PostSpansResponse) Descriptor() ([]byte, []int) { function file_jaeger_collector_proto_rawDescGZIP (line 165) | func file_jaeger_collector_proto_rawDescGZIP() []byte { function init (line 189) | func init() { file_jaeger_collector_proto_init() } function file_jaeger_collector_proto_init (line 190) | func file_jaeger_collector_proto_init() { FILE: chapter/11/ops/proto/jaeger/collector_grpc.pb.go constant _ (line 15) | _ = grpc.SupportPackageIsVersion7 type CollectorServiceClient (line 20) | type CollectorServiceClient interface type collectorServiceClient (line 24) | type collectorServiceClient struct method PostSpans (line 32) | func (c *collectorServiceClient) PostSpans(ctx context.Context, in *Po... function NewCollectorServiceClient (line 28) | func NewCollectorServiceClient(cc grpc.ClientConnInterface) CollectorSer... type CollectorServiceServer (line 44) | type CollectorServiceServer interface type UnimplementedCollectorServiceServer (line 50) | type UnimplementedCollectorServiceServer struct method PostSpans (line 53) | func (UnimplementedCollectorServiceServer) PostSpans(context.Context, ... method mustEmbedUnimplementedCollectorServiceServer (line 56) | func (UnimplementedCollectorServiceServer) mustEmbedUnimplementedColle... type UnsafeCollectorServiceServer (line 61) | type UnsafeCollectorServiceServer interface function RegisterCollectorServiceServer (line 65) | func RegisterCollectorServiceServer(s grpc.ServiceRegistrar, srv Collect... function _CollectorService_PostSpans_Handler (line 69) | func _CollectorService_PostSpans_Handler(srv interface{}, ctx context.Co... FILE: chapter/11/ops/proto/jaeger/model/model.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type ValueType (line 40) | type ValueType method Enum (line 68) | func (x ValueType) Enum() *ValueType { method String (line 74) | func (x ValueType) String() string { method Descriptor (line 78) | func (ValueType) Descriptor() protoreflect.EnumDescriptor { method Type (line 82) | func (ValueType) Type() protoreflect.EnumType { method Number (line 86) | func (x ValueType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 91) | func (ValueType) EnumDescriptor() ([]byte, []int) { constant ValueType_STRING (line 43) | ValueType_STRING ValueType = 0 constant ValueType_BOOL (line 44) | ValueType_BOOL ValueType = 1 constant ValueType_INT64 (line 45) | ValueType_INT64 ValueType = 2 constant ValueType_FLOAT64 (line 46) | ValueType_FLOAT64 ValueType = 3 constant ValueType_BINARY (line 47) | ValueType_BINARY ValueType = 4 type SpanRefType (line 95) | type SpanRefType method Enum (line 114) | func (x SpanRefType) Enum() *SpanRefType { method String (line 120) | func (x SpanRefType) String() string { method Descriptor (line 124) | func (SpanRefType) Descriptor() protoreflect.EnumDescriptor { method Type (line 128) | func (SpanRefType) Type() protoreflect.EnumType { method Number (line 132) | func (x SpanRefType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 137) | func (SpanRefType) EnumDescriptor() ([]byte, []int) { constant SpanRefType_CHILD_OF (line 98) | SpanRefType_CHILD_OF SpanRefType = 0 constant SpanRefType_FOLLOWS_FROM (line 99) | SpanRefType_FOLLOWS_FROM SpanRefType = 1 type KeyValue (line 141) | type KeyValue struct method Reset (line 155) | func (x *KeyValue) Reset() { method String (line 164) | func (x *KeyValue) String() string { method ProtoMessage (line 168) | func (*KeyValue) ProtoMessage() {} method ProtoReflect (line 170) | func (x *KeyValue) ProtoReflect() protoreflect.Message { method Descriptor (line 183) | func (*KeyValue) Descriptor() ([]byte, []int) { method GetKey (line 187) | func (x *KeyValue) GetKey() string { method GetVType (line 194) | func (x *KeyValue) GetVType() ValueType { method GetVStr (line 201) | func (x *KeyValue) GetVStr() string { method GetVBool (line 208) | func (x *KeyValue) GetVBool() bool { method GetVInt64 (line 215) | func (x *KeyValue) GetVInt64() int64 { method GetVFloat64 (line 222) | func (x *KeyValue) GetVFloat64() float64 { method GetVBinary (line 229) | func (x *KeyValue) GetVBinary() []byte { type Log (line 236) | type Log struct method Reset (line 245) | func (x *Log) Reset() { method String (line 254) | func (x *Log) String() string { method ProtoMessage (line 258) | func (*Log) ProtoMessage() {} method ProtoReflect (line 260) | func (x *Log) ProtoReflect() protoreflect.Message { method Descriptor (line 273) | func (*Log) Descriptor() ([]byte, []int) { method GetTimestamp (line 277) | func (x *Log) GetTimestamp() *timestamppb.Timestamp { method GetFields (line 284) | func (x *Log) GetFields() []*KeyValue { type SpanRef (line 291) | type SpanRef struct method Reset (line 301) | func (x *SpanRef) Reset() { method String (line 310) | func (x *SpanRef) String() string { method ProtoMessage (line 314) | func (*SpanRef) ProtoMessage() {} method ProtoReflect (line 316) | func (x *SpanRef) ProtoReflect() protoreflect.Message { method Descriptor (line 329) | func (*SpanRef) Descriptor() ([]byte, []int) { method GetTraceId (line 333) | func (x *SpanRef) GetTraceId() []byte { method GetSpanId (line 340) | func (x *SpanRef) GetSpanId() []byte { method GetRefType (line 347) | func (x *SpanRef) GetRefType() SpanRefType { type Process (line 354) | type Process struct method Reset (line 363) | func (x *Process) Reset() { method String (line 372) | func (x *Process) String() string { method ProtoMessage (line 376) | func (*Process) ProtoMessage() {} method ProtoReflect (line 378) | func (x *Process) ProtoReflect() protoreflect.Message { method Descriptor (line 391) | func (*Process) Descriptor() ([]byte, []int) { method GetServiceName (line 395) | func (x *Process) GetServiceName() string { method GetTags (line 402) | func (x *Process) GetTags() []*KeyValue { type Span (line 409) | type Span struct method Reset (line 428) | func (x *Span) Reset() { method String (line 437) | func (x *Span) String() string { method ProtoMessage (line 441) | func (*Span) ProtoMessage() {} method ProtoReflect (line 443) | func (x *Span) ProtoReflect() protoreflect.Message { method Descriptor (line 456) | func (*Span) Descriptor() ([]byte, []int) { method GetTraceId (line 460) | func (x *Span) GetTraceId() []byte { method GetSpanId (line 467) | func (x *Span) GetSpanId() []byte { method GetOperationName (line 474) | func (x *Span) GetOperationName() string { method GetReferences (line 481) | func (x *Span) GetReferences() []*SpanRef { method GetFlags (line 488) | func (x *Span) GetFlags() uint32 { method GetStartTime (line 495) | func (x *Span) GetStartTime() *timestamppb.Timestamp { method GetDuration (line 502) | func (x *Span) GetDuration() *durationpb.Duration { method GetTags (line 509) | func (x *Span) GetTags() []*KeyValue { method GetLogs (line 516) | func (x *Span) GetLogs() []*Log { method GetProcess (line 523) | func (x *Span) GetProcess() *Process { method GetProcessId (line 530) | func (x *Span) GetProcessId() string { method GetWarnings (line 537) | func (x *Span) GetWarnings() []string { type Trace (line 544) | type Trace struct method Reset (line 554) | func (x *Trace) Reset() { method String (line 563) | func (x *Trace) String() string { method ProtoMessage (line 567) | func (*Trace) ProtoMessage() {} method ProtoReflect (line 569) | func (x *Trace) ProtoReflect() protoreflect.Message { method Descriptor (line 582) | func (*Trace) Descriptor() ([]byte, []int) { method GetSpans (line 586) | func (x *Trace) GetSpans() []*Span { method GetProcessMap (line 593) | func (x *Trace) GetProcessMap() []*Trace_ProcessMapping { method GetWarnings (line 600) | func (x *Trace) GetWarnings() []string { type Batch (line 616) | type Batch struct method Reset (line 625) | func (x *Batch) Reset() { method String (line 634) | func (x *Batch) String() string { method ProtoMessage (line 638) | func (*Batch) ProtoMessage() {} method ProtoReflect (line 640) | func (x *Batch) ProtoReflect() protoreflect.Message { method Descriptor (line 653) | func (*Batch) Descriptor() ([]byte, []int) { method GetSpans (line 657) | func (x *Batch) GetSpans() []*Span { method GetProcess (line 664) | func (x *Batch) GetProcess() *Process { type DependencyLink (line 671) | type DependencyLink struct method Reset (line 682) | func (x *DependencyLink) Reset() { method String (line 691) | func (x *DependencyLink) String() string { method ProtoMessage (line 695) | func (*DependencyLink) ProtoMessage() {} method ProtoReflect (line 697) | func (x *DependencyLink) ProtoReflect() protoreflect.Message { method Descriptor (line 710) | func (*DependencyLink) Descriptor() ([]byte, []int) { method GetParent (line 714) | func (x *DependencyLink) GetParent() string { method GetChild (line 721) | func (x *DependencyLink) GetChild() string { method GetCallCount (line 728) | func (x *DependencyLink) GetCallCount() uint64 { method GetSource (line 735) | func (x *DependencyLink) GetSource() string { type Trace_ProcessMapping (line 742) | type Trace_ProcessMapping struct method Reset (line 751) | func (x *Trace_ProcessMapping) Reset() { method String (line 760) | func (x *Trace_ProcessMapping) String() string { method ProtoMessage (line 764) | func (*Trace_ProcessMapping) ProtoMessage() {} method ProtoReflect (line 766) | func (x *Trace_ProcessMapping) ProtoReflect() protoreflect.Message { method Descriptor (line 779) | func (*Trace_ProcessMapping) Descriptor() ([]byte, []int) { method GetProcessId (line 783) | func (x *Trace_ProcessMapping) GetProcessId() string { method GetProcess (line 790) | func (x *Trace_ProcessMapping) GetProcess() *Process { function file_jaeger_model_model_proto_rawDescGZIP (line 939) | func file_jaeger_model_model_proto_rawDescGZIP() []byte { function init (line 987) | func init() { file_jaeger_model_model_proto_init() } function file_jaeger_model_model_proto_init (line 988) | func file_jaeger_model_model_proto_init() { FILE: chapter/11/ops/proto/jaeger/query.pb.go constant _ (line 38) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 40) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type GetTraceRequest (line 43) | type GetTraceRequest struct method Reset (line 51) | func (x *GetTraceRequest) Reset() { method String (line 60) | func (x *GetTraceRequest) String() string { method ProtoMessage (line 64) | func (*GetTraceRequest) ProtoMessage() {} method ProtoReflect (line 66) | func (x *GetTraceRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 79) | func (*GetTraceRequest) Descriptor() ([]byte, []int) { method GetTraceId (line 83) | func (x *GetTraceRequest) GetTraceId() []byte { type SpansResponseChunk (line 90) | type SpansResponseChunk struct method Reset (line 98) | func (x *SpansResponseChunk) Reset() { method String (line 107) | func (x *SpansResponseChunk) String() string { method ProtoMessage (line 111) | func (*SpansResponseChunk) ProtoMessage() {} method ProtoReflect (line 113) | func (x *SpansResponseChunk) ProtoReflect() protoreflect.Message { method Descriptor (line 126) | func (*SpansResponseChunk) Descriptor() ([]byte, []int) { method GetSpans (line 130) | func (x *SpansResponseChunk) GetSpans() []*model.Span { type ArchiveTraceRequest (line 137) | type ArchiveTraceRequest struct method Reset (line 145) | func (x *ArchiveTraceRequest) Reset() { method String (line 154) | func (x *ArchiveTraceRequest) String() string { method ProtoMessage (line 158) | func (*ArchiveTraceRequest) ProtoMessage() {} method ProtoReflect (line 160) | func (x *ArchiveTraceRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 173) | func (*ArchiveTraceRequest) Descriptor() ([]byte, []int) { method GetTraceId (line 177) | func (x *ArchiveTraceRequest) GetTraceId() []byte { type ArchiveTraceResponse (line 184) | type ArchiveTraceResponse struct method Reset (line 190) | func (x *ArchiveTraceResponse) Reset() { method String (line 199) | func (x *ArchiveTraceResponse) String() string { method ProtoMessage (line 203) | func (*ArchiveTraceResponse) ProtoMessage() {} method ProtoReflect (line 205) | func (x *ArchiveTraceResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 218) | func (*ArchiveTraceResponse) Descriptor() ([]byte, []int) { type TraceQueryParameters (line 222) | type TraceQueryParameters struct method Reset (line 237) | func (x *TraceQueryParameters) Reset() { method String (line 246) | func (x *TraceQueryParameters) String() string { method ProtoMessage (line 250) | func (*TraceQueryParameters) ProtoMessage() {} method ProtoReflect (line 252) | func (x *TraceQueryParameters) ProtoReflect() protoreflect.Message { method Descriptor (line 265) | func (*TraceQueryParameters) Descriptor() ([]byte, []int) { method GetServiceName (line 269) | func (x *TraceQueryParameters) GetServiceName() string { method GetOperationName (line 276) | func (x *TraceQueryParameters) GetOperationName() string { method GetTags (line 283) | func (x *TraceQueryParameters) GetTags() map[string]string { method GetStartTimeMin (line 290) | func (x *TraceQueryParameters) GetStartTimeMin() *timestamppb.Timestamp { method GetStartTimeMax (line 297) | func (x *TraceQueryParameters) GetStartTimeMax() *timestamppb.Timestamp { method GetDurationMin (line 304) | func (x *TraceQueryParameters) GetDurationMin() *durationpb.Duration { method GetDurationMax (line 311) | func (x *TraceQueryParameters) GetDurationMax() *durationpb.Duration { method GetSearchDepth (line 318) | func (x *TraceQueryParameters) GetSearchDepth() int32 { type FindTracesRequest (line 325) | type FindTracesRequest struct method Reset (line 333) | func (x *FindTracesRequest) Reset() { method String (line 342) | func (x *FindTracesRequest) String() string { method ProtoMessage (line 346) | func (*FindTracesRequest) ProtoMessage() {} method ProtoReflect (line 348) | func (x *FindTracesRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 361) | func (*FindTracesRequest) Descriptor() ([]byte, []int) { method GetQuery (line 365) | func (x *FindTracesRequest) GetQuery() *TraceQueryParameters { type GetServicesRequest (line 372) | type GetServicesRequest struct method Reset (line 378) | func (x *GetServicesRequest) Reset() { method String (line 387) | func (x *GetServicesRequest) String() string { method ProtoMessage (line 391) | func (*GetServicesRequest) ProtoMessage() {} method ProtoReflect (line 393) | func (x *GetServicesRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 406) | func (*GetServicesRequest) Descriptor() ([]byte, []int) { type GetServicesResponse (line 410) | type GetServicesResponse struct method Reset (line 418) | func (x *GetServicesResponse) Reset() { method String (line 427) | func (x *GetServicesResponse) String() string { method ProtoMessage (line 431) | func (*GetServicesResponse) ProtoMessage() {} method ProtoReflect (line 433) | func (x *GetServicesResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 446) | func (*GetServicesResponse) Descriptor() ([]byte, []int) { method GetServices (line 450) | func (x *GetServicesResponse) GetServices() []string { type GetOperationsRequest (line 457) | type GetOperationsRequest struct method Reset (line 466) | func (x *GetOperationsRequest) Reset() { method String (line 475) | func (x *GetOperationsRequest) String() string { method ProtoMessage (line 479) | func (*GetOperationsRequest) ProtoMessage() {} method ProtoReflect (line 481) | func (x *GetOperationsRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 494) | func (*GetOperationsRequest) Descriptor() ([]byte, []int) { method GetService (line 498) | func (x *GetOperationsRequest) GetService() string { method GetSpanKind (line 505) | func (x *GetOperationsRequest) GetSpanKind() string { type Operation (line 512) | type Operation struct method Reset (line 521) | func (x *Operation) Reset() { method String (line 530) | func (x *Operation) String() string { method ProtoMessage (line 534) | func (*Operation) ProtoMessage() {} method ProtoReflect (line 536) | func (x *Operation) ProtoReflect() protoreflect.Message { method Descriptor (line 549) | func (*Operation) Descriptor() ([]byte, []int) { method GetName (line 553) | func (x *Operation) GetName() string { method GetSpanKind (line 560) | func (x *Operation) GetSpanKind() string { type GetOperationsResponse (line 567) | type GetOperationsResponse struct method Reset (line 576) | func (x *GetOperationsResponse) Reset() { method String (line 585) | func (x *GetOperationsResponse) String() string { method ProtoMessage (line 589) | func (*GetOperationsResponse) ProtoMessage() {} method ProtoReflect (line 591) | func (x *GetOperationsResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 604) | func (*GetOperationsResponse) Descriptor() ([]byte, []int) { method GetOperationNames (line 608) | func (x *GetOperationsResponse) GetOperationNames() []string { method GetOperations (line 615) | func (x *GetOperationsResponse) GetOperations() []*Operation { type GetDependenciesRequest (line 622) | type GetDependenciesRequest struct method Reset (line 631) | func (x *GetDependenciesRequest) Reset() { method String (line 640) | func (x *GetDependenciesRequest) String() string { method ProtoMessage (line 644) | func (*GetDependenciesRequest) ProtoMessage() {} method ProtoReflect (line 646) | func (x *GetDependenciesRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 659) | func (*GetDependenciesRequest) Descriptor() ([]byte, []int) { method GetStartTime (line 663) | func (x *GetDependenciesRequest) GetStartTime() *timestamppb.Timestamp { method GetEndTime (line 670) | func (x *GetDependenciesRequest) GetEndTime() *timestamppb.Timestamp { type GetDependenciesResponse (line 677) | type GetDependenciesResponse struct method Reset (line 685) | func (x *GetDependenciesResponse) Reset() { method String (line 694) | func (x *GetDependenciesResponse) String() string { method ProtoMessage (line 698) | func (*GetDependenciesResponse) ProtoMessage() {} method ProtoReflect (line 700) | func (x *GetDependenciesResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 713) | func (*GetDependenciesResponse) Descriptor() ([]byte, []int) { method GetDependencies (line 717) | func (x *GetDependenciesResponse) GetDependencies() []*model.Dependenc... function file_jaeger_query_proto_rawDescGZIP (line 893) | func file_jaeger_query_proto_rawDescGZIP() []byte { function init (line 952) | func init() { file_jaeger_query_proto_init() } function file_jaeger_query_proto_init (line 953) | func file_jaeger_query_proto_init() { FILE: chapter/11/ops/proto/jaeger/query_grpc.pb.go constant _ (line 15) | _ = grpc.SupportPackageIsVersion7 type QueryServiceClient (line 20) | type QueryServiceClient interface type queryServiceClient (line 29) | type queryServiceClient struct method GetTrace (line 37) | func (c *queryServiceClient) GetTrace(ctx context.Context, in *GetTrac... method ArchiveTrace (line 69) | func (c *queryServiceClient) ArchiveTrace(ctx context.Context, in *Arc... method FindTraces (line 78) | func (c *queryServiceClient) FindTraces(ctx context.Context, in *FindT... method GetServices (line 110) | func (c *queryServiceClient) GetServices(ctx context.Context, in *GetS... method GetOperations (line 119) | func (c *queryServiceClient) GetOperations(ctx context.Context, in *Ge... method GetDependencies (line 128) | func (c *queryServiceClient) GetDependencies(ctx context.Context, in *... function NewQueryServiceClient (line 33) | func NewQueryServiceClient(cc grpc.ClientConnInterface) QueryServiceClie... type QueryService_GetTraceClient (line 52) | type QueryService_GetTraceClient interface type queryServiceGetTraceClient (line 57) | type queryServiceGetTraceClient struct method Recv (line 61) | func (x *queryServiceGetTraceClient) Recv() (*SpansResponseChunk, erro... type QueryService_FindTracesClient (line 93) | type QueryService_FindTracesClient interface type queryServiceFindTracesClient (line 98) | type queryServiceFindTracesClient struct method Recv (line 102) | func (x *queryServiceFindTracesClient) Recv() (*SpansResponseChunk, er... type QueryServiceServer (line 140) | type QueryServiceServer interface type UnimplementedQueryServiceServer (line 151) | type UnimplementedQueryServiceServer struct method GetTrace (line 154) | func (UnimplementedQueryServiceServer) GetTrace(*GetTraceRequest, Quer... method ArchiveTrace (line 157) | func (UnimplementedQueryServiceServer) ArchiveTrace(context.Context, *... method FindTraces (line 160) | func (UnimplementedQueryServiceServer) FindTraces(*FindTracesRequest, ... method GetServices (line 163) | func (UnimplementedQueryServiceServer) GetServices(context.Context, *G... method GetOperations (line 166) | func (UnimplementedQueryServiceServer) GetOperations(context.Context, ... method GetDependencies (line 169) | func (UnimplementedQueryServiceServer) GetDependencies(context.Context... method mustEmbedUnimplementedQueryServiceServer (line 172) | func (UnimplementedQueryServiceServer) mustEmbedUnimplementedQueryServ... type UnsafeQueryServiceServer (line 177) | type UnsafeQueryServiceServer interface function RegisterQueryServiceServer (line 181) | func RegisterQueryServiceServer(s grpc.ServiceRegistrar, srv QueryServic... function _QueryService_GetTrace_Handler (line 185) | func _QueryService_GetTrace_Handler(srv interface{}, stream grpc.ServerS... type QueryService_GetTraceServer (line 193) | type QueryService_GetTraceServer interface type queryServiceGetTraceServer (line 198) | type queryServiceGetTraceServer struct method Send (line 202) | func (x *queryServiceGetTraceServer) Send(m *SpansResponseChunk) error { function _QueryService_ArchiveTrace_Handler (line 206) | func _QueryService_ArchiveTrace_Handler(srv interface{}, ctx context.Con... function _QueryService_FindTraces_Handler (line 224) | func _QueryService_FindTraces_Handler(srv interface{}, stream grpc.Serve... type QueryService_FindTracesServer (line 232) | type QueryService_FindTracesServer interface type queryServiceFindTracesServer (line 237) | type queryServiceFindTracesServer struct method Send (line 241) | func (x *queryServiceFindTracesServer) Send(m *SpansResponseChunk) err... function _QueryService_GetServices_Handler (line 245) | func _QueryService_GetServices_Handler(srv interface{}, ctx context.Cont... function _QueryService_GetOperations_Handler (line 263) | func _QueryService_GetOperations_Handler(srv interface{}, ctx context.Co... function _QueryService_GetDependencies_Handler (line 281) | func _QueryService_GetDependencies_Handler(srv interface{}, ctx context.... FILE: chapter/11/ops/proto/jaeger/sampling.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type SamplingStrategyType (line 41) | type SamplingStrategyType method Enum (line 60) | func (x SamplingStrategyType) Enum() *SamplingStrategyType { method String (line 66) | func (x SamplingStrategyType) String() string { method Descriptor (line 70) | func (SamplingStrategyType) Descriptor() protoreflect.EnumDescriptor { method Type (line 74) | func (SamplingStrategyType) Type() protoreflect.EnumType { method Number (line 78) | func (x SamplingStrategyType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 83) | func (SamplingStrategyType) EnumDescriptor() ([]byte, []int) { constant SamplingStrategyType_PROBABILISTIC (line 44) | SamplingStrategyType_PROBABILISTIC SamplingStrategyType = 0 constant SamplingStrategyType_RATE_LIMITING (line 45) | SamplingStrategyType_RATE_LIMITING SamplingStrategyType = 1 type ProbabilisticSamplingStrategy (line 88) | type ProbabilisticSamplingStrategy struct method Reset (line 97) | func (x *ProbabilisticSamplingStrategy) Reset() { method String (line 106) | func (x *ProbabilisticSamplingStrategy) String() string { method ProtoMessage (line 110) | func (*ProbabilisticSamplingStrategy) ProtoMessage() {} method ProtoReflect (line 112) | func (x *ProbabilisticSamplingStrategy) ProtoReflect() protoreflect.Me... method Descriptor (line 125) | func (*ProbabilisticSamplingStrategy) Descriptor() ([]byte, []int) { method GetSamplingRate (line 129) | func (x *ProbabilisticSamplingStrategy) GetSamplingRate() float64 { type RateLimitingSamplingStrategy (line 138) | type RateLimitingSamplingStrategy struct method Reset (line 147) | func (x *RateLimitingSamplingStrategy) Reset() { method String (line 156) | func (x *RateLimitingSamplingStrategy) String() string { method ProtoMessage (line 160) | func (*RateLimitingSamplingStrategy) ProtoMessage() {} method ProtoReflect (line 162) | func (x *RateLimitingSamplingStrategy) ProtoReflect() protoreflect.Mes... method Descriptor (line 175) | func (*RateLimitingSamplingStrategy) Descriptor() ([]byte, []int) { method GetMaxTracesPerSecond (line 179) | func (x *RateLimitingSamplingStrategy) GetMaxTracesPerSecond() int32 { type OperationSamplingStrategy (line 188) | type OperationSamplingStrategy struct method Reset (line 197) | func (x *OperationSamplingStrategy) Reset() { method String (line 206) | func (x *OperationSamplingStrategy) String() string { method ProtoMessage (line 210) | func (*OperationSamplingStrategy) ProtoMessage() {} method ProtoReflect (line 212) | func (x *OperationSamplingStrategy) ProtoReflect() protoreflect.Message { method Descriptor (line 225) | func (*OperationSamplingStrategy) Descriptor() ([]byte, []int) { method GetOperation (line 229) | func (x *OperationSamplingStrategy) GetOperation() string { method GetProbabilisticSampling (line 236) | func (x *OperationSamplingStrategy) GetProbabilisticSampling() *Probab... type PerOperationSamplingStrategies (line 247) | type PerOperationSamplingStrategies struct method Reset (line 270) | func (x *PerOperationSamplingStrategies) Reset() { method String (line 279) | func (x *PerOperationSamplingStrategies) String() string { method ProtoMessage (line 283) | func (*PerOperationSamplingStrategies) ProtoMessage() {} method ProtoReflect (line 285) | func (x *PerOperationSamplingStrategies) ProtoReflect() protoreflect.M... method Descriptor (line 298) | func (*PerOperationSamplingStrategies) Descriptor() ([]byte, []int) { method GetDefaultSamplingProbability (line 302) | func (x *PerOperationSamplingStrategies) GetDefaultSamplingProbability... method GetDefaultLowerBoundTracesPerSecond (line 309) | func (x *PerOperationSamplingStrategies) GetDefaultLowerBoundTracesPer... method GetPerOperationStrategies (line 316) | func (x *PerOperationSamplingStrategies) GetPerOperationStrategies() [... method GetDefaultUpperBoundTracesPerSecond (line 323) | func (x *PerOperationSamplingStrategies) GetDefaultUpperBoundTracesPer... type SamplingStrategyResponse (line 332) | type SamplingStrategyResponse struct method Reset (line 351) | func (x *SamplingStrategyResponse) Reset() { method String (line 360) | func (x *SamplingStrategyResponse) String() string { method ProtoMessage (line 364) | func (*SamplingStrategyResponse) ProtoMessage() {} method ProtoReflect (line 366) | func (x *SamplingStrategyResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 379) | func (*SamplingStrategyResponse) Descriptor() ([]byte, []int) { method GetStrategyType (line 383) | func (x *SamplingStrategyResponse) GetStrategyType() SamplingStrategyT... method GetProbabilisticSampling (line 390) | func (x *SamplingStrategyResponse) GetProbabilisticSampling() *Probabi... method GetRateLimitingSampling (line 397) | func (x *SamplingStrategyResponse) GetRateLimitingSampling() *RateLimi... method GetOperationSampling (line 404) | func (x *SamplingStrategyResponse) GetOperationSampling() *PerOperatio... type SamplingStrategyParameters (line 412) | type SamplingStrategyParameters struct method Reset (line 421) | func (x *SamplingStrategyParameters) Reset() { method String (line 430) | func (x *SamplingStrategyParameters) String() string { method ProtoMessage (line 434) | func (*SamplingStrategyParameters) ProtoMessage() {} method ProtoReflect (line 436) | func (x *SamplingStrategyParameters) ProtoReflect() protoreflect.Messa... method Descriptor (line 449) | func (*SamplingStrategyParameters) Descriptor() ([]byte, []int) { method GetServiceName (line 453) | func (x *SamplingStrategyParameters) GetServiceName() string { function file_jaeger_sampling_proto_rawDescGZIP (line 567) | func file_jaeger_sampling_proto_rawDescGZIP() []byte { function init (line 601) | func init() { file_jaeger_sampling_proto_init() } function file_jaeger_sampling_proto_init (line 602) | func file_jaeger_sampling_proto_init() { FILE: chapter/11/ops/proto/jaeger/sampling_grpc.pb.go constant _ (line 15) | _ = grpc.SupportPackageIsVersion7 type SamplingManagerClient (line 20) | type SamplingManagerClient interface type samplingManagerClient (line 24) | type samplingManagerClient struct method GetSamplingStrategy (line 32) | func (c *samplingManagerClient) GetSamplingStrategy(ctx context.Contex... function NewSamplingManagerClient (line 28) | func NewSamplingManagerClient(cc grpc.ClientConnInterface) SamplingManag... type SamplingManagerServer (line 44) | type SamplingManagerServer interface type UnimplementedSamplingManagerServer (line 50) | type UnimplementedSamplingManagerServer struct method GetSamplingStrategy (line 53) | func (UnimplementedSamplingManagerServer) GetSamplingStrategy(context.... method mustEmbedUnimplementedSamplingManagerServer (line 56) | func (UnimplementedSamplingManagerServer) mustEmbedUnimplementedSampli... type UnsafeSamplingManagerServer (line 61) | type UnsafeSamplingManagerServer interface function RegisterSamplingManagerServer (line 65) | func RegisterSamplingManagerServer(s grpc.ServiceRegistrar, srv Sampling... function _SamplingManager_GetSamplingStrategy_Handler (line 69) | func _SamplingManager_GetSamplingStrategy_Handler(srv interface{}, ctx c... FILE: chapter/11/ops/proto/ops.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type SamplerType (line 25) | type SamplerType method Enum (line 50) | func (x SamplerType) Enum() *SamplerType { method String (line 56) | func (x SamplerType) String() string { method Descriptor (line 60) | func (SamplerType) Descriptor() protoreflect.EnumDescriptor { method Type (line 64) | func (SamplerType) Type() protoreflect.EnumType { method Number (line 68) | func (x SamplerType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 73) | func (SamplerType) EnumDescriptor() ([]byte, []int) { constant SamplerType_STUnknown (line 28) | SamplerType_STUnknown SamplerType = 0 constant SamplerType_STNever (line 29) | SamplerType_STNever SamplerType = 1 constant SamplerType_STAlways (line 30) | SamplerType_STAlways SamplerType = 2 constant SamplerType_STFloat (line 31) | SamplerType_STFloat SamplerType = 3 type ListTracesReq (line 78) | type ListTracesReq struct method Reset (line 101) | func (x *ListTracesReq) Reset() { method String (line 110) | func (x *ListTracesReq) String() string { method ProtoMessage (line 114) | func (*ListTracesReq) ProtoMessage() {} method ProtoReflect (line 116) | func (x *ListTracesReq) ProtoReflect() protoreflect.Message { method Descriptor (line 129) | func (*ListTracesReq) Descriptor() ([]byte, []int) { method GetService (line 133) | func (x *ListTracesReq) GetService() string { method GetOperation (line 140) | func (x *ListTracesReq) GetOperation() string { method GetTags (line 147) | func (x *ListTracesReq) GetTags() []string { method GetStart (line 154) | func (x *ListTracesReq) GetStart() int64 { method GetEnd (line 161) | func (x *ListTracesReq) GetEnd() int64 { method GetDurationMin (line 168) | func (x *ListTracesReq) GetDurationMin() int64 { method GetDurationMax (line 175) | func (x *ListTracesReq) GetDurationMax() int64 { method GetSearchDepth (line 182) | func (x *ListTracesReq) GetSearchDepth() int32 { type TraceItem (line 190) | type TraceItem struct method Reset (line 201) | func (x *TraceItem) Reset() { method String (line 210) | func (x *TraceItem) String() string { method ProtoMessage (line 214) | func (*TraceItem) ProtoMessage() {} method ProtoReflect (line 216) | func (x *TraceItem) ProtoReflect() protoreflect.Message { method Descriptor (line 229) | func (*TraceItem) Descriptor() ([]byte, []int) { method GetId (line 233) | func (x *TraceItem) GetId() string { method GetStart (line 240) | func (x *TraceItem) GetStart() int64 { type ListTracesResp (line 248) | type ListTracesResp struct method Reset (line 257) | func (x *ListTracesResp) Reset() { method String (line 266) | func (x *ListTracesResp) String() string { method ProtoMessage (line 270) | func (*ListTracesResp) ProtoMessage() {} method ProtoReflect (line 272) | func (x *ListTracesResp) ProtoReflect() protoreflect.Message { method Descriptor (line 285) | func (*ListTracesResp) Descriptor() ([]byte, []int) { method GetTraces (line 289) | func (x *ListTracesResp) GetTraces() []*TraceItem { type ShowTraceReq (line 297) | type ShowTraceReq struct method Reset (line 306) | func (x *ShowTraceReq) Reset() { method String (line 315) | func (x *ShowTraceReq) String() string { method ProtoMessage (line 319) | func (*ShowTraceReq) ProtoMessage() {} method ProtoReflect (line 321) | func (x *ShowTraceReq) ProtoReflect() protoreflect.Message { method Descriptor (line 334) | func (*ShowTraceReq) Descriptor() ([]byte, []int) { method GetId (line 338) | func (x *ShowTraceReq) GetId() string { type ShowTraceResp (line 346) | type ShowTraceResp struct method Reset (line 363) | func (x *ShowTraceResp) Reset() { method String (line 372) | func (x *ShowTraceResp) String() string { method ProtoMessage (line 376) | func (*ShowTraceResp) ProtoMessage() {} method ProtoReflect (line 378) | func (x *ShowTraceResp) ProtoReflect() protoreflect.Message { method Descriptor (line 391) | func (*ShowTraceResp) Descriptor() ([]byte, []int) { method GetId (line 395) | func (x *ShowTraceResp) GetId() string { method GetOperations (line 402) | func (x *ShowTraceResp) GetOperations() []string { method GetErrors (line 409) | func (x *ShowTraceResp) GetErrors() []string { method GetTags (line 416) | func (x *ShowTraceResp) GetTags() []string { method GetDuration (line 423) | func (x *ShowTraceResp) GetDuration() *durationpb.Duration { type ShowLogsReq (line 430) | type ShowLogsReq struct method Reset (line 439) | func (x *ShowLogsReq) Reset() { method String (line 448) | func (x *ShowLogsReq) String() string { method ProtoMessage (line 452) | func (*ShowLogsReq) ProtoMessage() {} method ProtoReflect (line 454) | func (x *ShowLogsReq) ProtoReflect() protoreflect.Message { method Descriptor (line 467) | func (*ShowLogsReq) Descriptor() ([]byte, []int) { method GetId (line 471) | func (x *ShowLogsReq) GetId() string { type ShowLogsResp (line 478) | type ShowLogsResp struct method Reset (line 487) | func (x *ShowLogsResp) Reset() { method String (line 496) | func (x *ShowLogsResp) String() string { method ProtoMessage (line 500) | func (*ShowLogsResp) ProtoMessage() {} method ProtoReflect (line 502) | func (x *ShowLogsResp) ProtoReflect() protoreflect.Message { method Descriptor (line 515) | func (*ShowLogsResp) Descriptor() ([]byte, []int) { method GetId (line 519) | func (x *ShowLogsResp) GetId() string { method GetLogs (line 526) | func (x *ShowLogsResp) GetLogs() []*model.Log { type ChangeSamplingReq (line 534) | type ChangeSamplingReq struct method Reset (line 546) | func (x *ChangeSamplingReq) Reset() { method String (line 555) | func (x *ChangeSamplingReq) String() string { method ProtoMessage (line 559) | func (*ChangeSamplingReq) ProtoMessage() {} method ProtoReflect (line 561) | func (x *ChangeSamplingReq) ProtoReflect() protoreflect.Message { method Descriptor (line 574) | func (*ChangeSamplingReq) Descriptor() ([]byte, []int) { method GetType (line 578) | func (x *ChangeSamplingReq) GetType() SamplerType { method GetFloatValue (line 585) | func (x *ChangeSamplingReq) GetFloatValue() float64 { type ChangeSamplingResp (line 593) | type ChangeSamplingResp struct method Reset (line 599) | func (x *ChangeSamplingResp) Reset() { method String (line 608) | func (x *ChangeSamplingResp) String() string { method ProtoMessage (line 612) | func (*ChangeSamplingResp) ProtoMessage() {} method ProtoReflect (line 614) | func (x *ChangeSamplingResp) ProtoReflect() protoreflect.Message { method Descriptor (line 627) | func (*ChangeSamplingResp) Descriptor() ([]byte, []int) { type DeployedVersionReq (line 632) | type DeployedVersionReq struct method Reset (line 638) | func (x *DeployedVersionReq) Reset() { method String (line 647) | func (x *DeployedVersionReq) String() string { method ProtoMessage (line 651) | func (*DeployedVersionReq) ProtoMessage() {} method ProtoReflect (line 653) | func (x *DeployedVersionReq) ProtoReflect() protoreflect.Message { method Descriptor (line 666) | func (*DeployedVersionReq) Descriptor() ([]byte, []int) { type DeployedVersionResp (line 671) | type DeployedVersionResp struct method Reset (line 680) | func (x *DeployedVersionResp) Reset() { method String (line 689) | func (x *DeployedVersionResp) String() string { method ProtoMessage (line 693) | func (*DeployedVersionResp) ProtoMessage() {} method ProtoReflect (line 695) | func (x *DeployedVersionResp) ProtoReflect() protoreflect.Message { method Descriptor (line 708) | func (*DeployedVersionResp) Descriptor() ([]byte, []int) { method GetVersion (line 712) | func (x *DeployedVersionResp) GetVersion() string { type Alert (line 720) | type Alert struct method Reset (line 733) | func (x *Alert) Reset() { method String (line 742) | func (x *Alert) String() string { method ProtoMessage (line 746) | func (*Alert) ProtoMessage() {} method ProtoReflect (line 748) | func (x *Alert) ProtoReflect() protoreflect.Message { method Descriptor (line 761) | func (*Alert) Descriptor() ([]byte, []int) { method GetState (line 765) | func (x *Alert) GetState() string { method GetValue (line 772) | func (x *Alert) GetValue() string { method GetActiveAt (line 779) | func (x *Alert) GetActiveAt() int64 { type AlertsReq (line 787) | type AlertsReq struct method Reset (line 800) | func (x *AlertsReq) Reset() { method String (line 809) | func (x *AlertsReq) String() string { method ProtoMessage (line 813) | func (*AlertsReq) ProtoMessage() {} method ProtoReflect (line 815) | func (x *AlertsReq) ProtoReflect() protoreflect.Message { method Descriptor (line 828) | func (*AlertsReq) Descriptor() ([]byte, []int) { method GetLabels (line 832) | func (x *AlertsReq) GetLabels() []string { method GetActiveAt (line 839) | func (x *AlertsReq) GetActiveAt() int64 { method GetStates (line 846) | func (x *AlertsReq) GetStates() []string { type AlertsResp (line 854) | type AlertsResp struct method Reset (line 863) | func (x *AlertsResp) Reset() { method String (line 872) | func (x *AlertsResp) String() string { method ProtoMessage (line 876) | func (*AlertsResp) ProtoMessage() {} method ProtoReflect (line 878) | func (x *AlertsResp) ProtoReflect() protoreflect.Message { method Descriptor (line 891) | func (*AlertsResp) Descriptor() ([]byte, []int) { method GetAlerts (line 895) | func (x *AlertsResp) GetAlerts() []*Alert { function file_ops_proto_rawDescGZIP (line 1014) | func file_ops_proto_rawDescGZIP() []byte { function init (line 1067) | func init() { file_ops_proto_init() } function file_ops_proto_init (line 1068) | func file_ops_proto_init() { FILE: chapter/11/ops/proto/ops_grpc.pb.go constant _ (line 15) | _ = grpc.SupportPackageIsVersion7 type OpsClient (line 20) | type OpsClient interface type opsClient (line 35) | type opsClient struct method ListTraces (line 43) | func (c *opsClient) ListTraces(ctx context.Context, in *ListTracesReq,... method ShowTrace (line 52) | func (c *opsClient) ShowTrace(ctx context.Context, in *ShowTraceReq, o... method ShowLogs (line 61) | func (c *opsClient) ShowLogs(ctx context.Context, in *ShowLogsReq, opt... method ChangeSampling (line 70) | func (c *opsClient) ChangeSampling(ctx context.Context, in *ChangeSamp... method DeployedVersion (line 79) | func (c *opsClient) DeployedVersion(ctx context.Context, in *DeployedV... method Alerts (line 88) | func (c *opsClient) Alerts(ctx context.Context, in *AlertsReq, opts ..... function NewOpsClient (line 39) | func NewOpsClient(cc grpc.ClientConnInterface) OpsClient { type OpsServer (line 100) | type OpsServer interface type UnimplementedOpsServer (line 117) | type UnimplementedOpsServer struct method ListTraces (line 120) | func (UnimplementedOpsServer) ListTraces(context.Context, *ListTracesR... method ShowTrace (line 123) | func (UnimplementedOpsServer) ShowTrace(context.Context, *ShowTraceReq... method ShowLogs (line 126) | func (UnimplementedOpsServer) ShowLogs(context.Context, *ShowLogsReq) ... method ChangeSampling (line 129) | func (UnimplementedOpsServer) ChangeSampling(context.Context, *ChangeS... method DeployedVersion (line 132) | func (UnimplementedOpsServer) DeployedVersion(context.Context, *Deploy... method Alerts (line 135) | func (UnimplementedOpsServer) Alerts(context.Context, *AlertsReq) (*Al... method mustEmbedUnimplementedOpsServer (line 138) | func (UnimplementedOpsServer) mustEmbedUnimplementedOpsServer() {} type UnsafeOpsServer (line 143) | type UnsafeOpsServer interface function RegisterOpsServer (line 147) | func RegisterOpsServer(s grpc.ServiceRegistrar, srv OpsServer) { function _Ops_ListTraces_Handler (line 151) | func _Ops_ListTraces_Handler(srv interface{}, ctx context.Context, dec f... function _Ops_ShowTrace_Handler (line 169) | func _Ops_ShowTrace_Handler(srv interface{}, ctx context.Context, dec fu... function _Ops_ShowLogs_Handler (line 187) | func _Ops_ShowLogs_Handler(srv interface{}, ctx context.Context, dec fun... function _Ops_ChangeSampling_Handler (line 205) | func _Ops_ChangeSampling_Handler(srv interface{}, ctx context.Context, d... function _Ops_DeployedVersion_Handler (line 223) | func _Ops_DeployedVersion_Handler(srv interface{}, ctx context.Context, ... function _Ops_Alerts_Handler (line 241) | func _Ops_Alerts_Handler(srv interface{}, ctx context.Context, dec func(... FILE: chapter/11/petstore/client/cli/petstore/petstore.go constant helpText (line 20) | helpText = ` function main (line 59) | func main() { function getSearchReq (line 135) | func getSearchReq() *pb.SearchPetsReq { FILE: chapter/11/petstore/client/client.go type Client (line 19) | type Client struct method AddPets (line 83) | func (c *Client) AddPets(ctx context.Context, pets []*pb.Pet, options ... method UpdatePets (line 106) | func (c *Client) UpdatePets(ctx context.Context, pets []*pb.Pet, optio... method DeletePets (line 130) | func (c *Client) DeletePets(ctx context.Context, ids []string, options... method SearchPets (line 148) | func (c *Client) SearchPets(ctx context.Context, filter *pb.SearchPets... method ChangeSampler (line 229) | func (c *Client) ChangeSampler(ctx context.Context, sc Sampler, option... function New (line 25) | func New(addr string) (*Client, error) { type Pet (line 39) | type Pet struct method Proto (line 45) | func (p Pet) Proto() *pb.Pet { method Birthday (line 50) | func (p Pet) Birthday() time.Time { method Error (line 58) | func (p Pet) Error() error { type CallOption (line 63) | type CallOption type callOptions (line 65) | type callOptions struct function TraceID (line 72) | func TraceID(s *string) CallOption { type SamplerType (line 181) | type SamplerType constant STUnknown (line 184) | STUnknown SamplerType = 0 constant Never (line 185) | Never SamplerType = 1 constant Always (line 186) | Always SamplerType = 2 constant Float (line 187) | Float SamplerType = 3 type Sampler (line 196) | type Sampler struct method validate (line 203) | func (s *Sampler) validate() error { method proto (line 215) | func (s *Sampler) proto() *pb.Sampler { method fromProto (line 222) | func (s *Sampler) fromProto(p *pb.Sampler) { function handleCallOptions (line 245) | func handleCallOptions(ctx context.Context, header *metadata.MD, options... FILE: chapter/11/petstore/client/demo/demo.go function main (line 28) | func main() { function addNames (line 58) | func addNames(ctx context.Context, c *client.Client, names []string) { function searchNames (line 94) | func searchNames(ctx context.Context, c *client.Client, names []string) { FILE: chapter/11/petstore/internal/server/errors/errors.go function New (line 16) | func New(ctx context.Context, text string) error { function Errorf (line 28) | func Errorf(ctx context.Context, s string, i ...interface{}) error { function As (line 39) | func As(err error, target interface{}) bool { function Is (line 44) | func Is(err, target error) bool { function Unwrap (line 49) | func Unwrap(err error) error { FILE: chapter/11/petstore/internal/server/log/log.go constant Ldate (line 55) | Ldate = 1 << iota constant Ltime (line 56) | Ltime constant Lmicroseconds (line 57) | Lmicroseconds constant Llongfile (line 58) | Llongfile constant Lshortfile (line 59) | Lshortfile constant LUTC (line 60) | LUTC constant LstdFlags (line 61) | LstdFlags = Ldate | Ltime type eventPool (line 84) | type eventPool struct method get (line 89) | func (e *eventPool) get() *Event { method put (line 98) | func (e *eventPool) put(ev *Event) { type Event (line 112) | type Event struct method reset (line 124) | func (e *Event) reset() { method Add (line 131) | func (e *Event) Add(k string, i interface{}) { method Done (line 165) | func (e *Event) Done(ctx context.Context) { function NewEvent (line 118) | func NewEvent(name string) *Event { function Println (line 179) | func Println(ctx context.Context, v ...interface{}) { function Printf (line 188) | func Printf(ctx context.Context, format string, v ...interface{}) { function SetFlags (line 197) | func SetFlags(flag int) { type logger (line 202) | type logger struct method output (line 225) | func (l *logger) output(span trace.Span, calldepth int, s string) error { method formatHeader (line 256) | func (l *logger) formatHeader(buf *[]byte, t time.Time, file string, l... function itoa (line 209) | func itoa(buf *[]byte, i int, wid int) { FILE: chapter/11/petstore/internal/server/server.go function init (line 47) | func init() { type API (line 71) | type API struct method Start (line 108) | func (a *API) Start() error { method Stop (line 121) | func (a *API) Stop() { method AddPets (line 129) | func (a *API) AddPets(ctx context.Context, req *pb.AddPetsReq) (resp *... method UpdatePets (line 173) | func (a *API) UpdatePets(ctx context.Context, req *pb.UpdatePetsReq) (... method DeletePets (line 212) | func (a *API) DeletePets(ctx context.Context, req *pb.DeletePetsReq) (... method SearchPets (line 245) | func (a *API) SearchPets(req *pb.SearchPetsReq, stream pb.PetStore_Sea... method ChangeSampler (line 297) | func (a *API) ChangeSampler(ctx context.Context, req *pb.ChangeSampler... type Option (line 83) | type Option function WithGRPCOpts (line 86) | func WithGRPCOpts(opts ...grpc.ServerOption) Option { function New (line 93) | func New(addr string, store storage.Data, options ...Option) (*API, erro... function validateSearch (line 317) | func validateSearch(ctx context.Context, r *pb.SearchPetsReq) error { function doTrace (line 341) | func doTrace(ctx context.Context, name string, req proto.Message) (newCt... function convertTraceID (line 386) | func convertTraceID(id string) string { FILE: chapter/11/petstore/internal/server/storage/mem/mem.go type birthdays (line 24) | type birthdays method Compare (line 27) | func (bi birthdays) Compare(b llrb.Comparable) int { type birthdayGet (line 52) | type birthdayGet struct method Compare (line 57) | func (bi birthdayGet) Compare(b llrb.Comparable) int { type Data (line 83) | type Data struct method AddPets (line 112) | func (d *Data) AddPets(ctx context.Context, pets []*pb.Pet) error { method UpdatePets (line 137) | func (d *Data) UpdatePets(ctx context.Context, pets []*pb.Pet) error { method populate (line 154) | func (d *Data) populate(ctx context.Context, pets []*pb.Pet) { method DeletePets (line 184) | func (d *Data) DeletePets(ctx context.Context, ids []string) error { method SearchPets (line 228) | func (d *Data) SearchPets(ctx context.Context, filter *pb.SearchPetsRe... method searchPets (line 239) | func (d *Data) searchPets(ctx context.Context, filter *pb.SearchPetsRe... method returnAll (line 334) | func (d *Data) returnAll(ctx context.Context, out chan storage.SearchI... method byNames (line 356) | func (d *Data) byNames(ctx context.Context, filter *pb.SearchPetsReq) ... method byTypes (line 388) | func (d *Data) byTypes(ctx context.Context, filter *pb.SearchPetsReq) ... method byBirthdays (line 419) | func (d *Data) byBirthdays(ctx context.Context, filter *pb.SearchPetsR... function New (line 96) | func New() *Data { FILE: chapter/11/petstore/internal/server/storage/mem/mem_test.go function makePets (line 62) | func makePets() *Data { function TestByNames (line 74) | func TestByNames(t *testing.T) { function TestByTypes (line 86) | func TestByTypes(t *testing.T) { function TestByBirthdays (line 98) | func TestByBirthdays(t *testing.T) { function TestDeletePets (line 118) | func TestDeletePets(t *testing.T) { function TestSearchPets (line 155) | func TestSearchPets(t *testing.T) { FILE: chapter/11/petstore/internal/server/storage/storage.go type Data (line 16) | type Data interface type SearchItem (line 30) | type SearchItem struct function ValidatePet (line 39) | func ValidatePet(ctx context.Context, p *pb.Pet, forUpdate bool) error { function BirthdayToTime (line 65) | func BirthdayToTime(ctx context.Context, d *dpb.Date) (time.Time, error) { FILE: chapter/11/petstore/internal/server/telemetry/metrics/metrics.go type metricType (line 51) | type metricType constant unknown (line 54) | unknown = 0 constant mtInt64 (line 55) | mtInt64 = 1 constant mtInt64Hist (line 56) | mtInt64Hist = 2 constant mtInt64UD (line 57) | mtInt64UD = 3 type metricDef (line 60) | type metricDef struct type Lookups (line 110) | type Lookups struct method Int64 (line 167) | func (l *Lookups) Int64(s string) metric.Int64Counter { method Int64s (line 180) | func (l *Lookups) Int64s(s ...string) []metric.Int64Counter { method Int64UD (line 189) | func (l *Lookups) Int64UD(s string) metric.Int64UpDownCounter { method Int64UDs (line 202) | func (l *Lookups) Int64UDs(s ...string) []metric.Int64UpDownCounter { method Int64Hist (line 211) | func (l *Lookups) Int64Hist(s string) metric.Int64Histogram { method Int64Hists (line 223) | func (l *Lookups) Int64Hists(s ...string) []metric.Int64Histogram { method unused (line 231) | func (l *Lookups) unused() []string { function newLookups (line 119) | func newLookups() *Lookups { FILE: chapter/11/petstore/internal/server/telemetry/metrics/start.go type Controller (line 18) | type Controller interface type OTELGRPC (line 23) | type OTELGRPC struct method isController (line 28) | func (o OTELGRPC) isController() {} type Stop (line 31) | type Stop function Start (line 34) | func Start(ctx context.Context, c Controller) (Stop, error) { function newController (line 53) | func newController(ctx context.Context, c Controller) (*basic.Controller... function otelGRPC (line 61) | func otelGRPC(ctx context.Context, args OTELGRPC) (*basic.Controller, er... FILE: chapter/11/petstore/internal/server/telemetry/tracing/sampler/sampler.go constant desc (line 33) | desc = `This sampler samples if TracdID.Valid(), gRPC metadata contains ... type Sampler (line 37) | type Sampler struct method ShouldSample (line 57) | func (s *Sampler) ShouldSample(p trace.SamplingParameters) trace.Sampl... method Description (line 92) | func (s *Sampler) Description() string { method Switch (line 97) | func (s *Sampler) Switch(sampler trace.Sampler) { function New (line 46) | func New(child trace.Sampler) (*Sampler, error) { FILE: chapter/11/petstore/internal/server/telemetry/tracing/tracing.go function init (line 52) | func init() { type Exporter (line 61) | type Exporter interface type OTELGRPC (line 66) | type OTELGRPC struct method isExporter (line 71) | func (o OTELGRPC) isExporter() {} type Stderr (line 74) | type Stderr struct method isExporter (line 76) | func (s Stderr) isExporter() {} type File (line 79) | type File struct method isExporter (line 84) | func (f File) isExporter() {} type Stop (line 87) | type Stop function Start (line 91) | func Start(ctx context.Context, e Exporter) (Stop, error) { function newTraceExporter (line 111) | func newTraceExporter(ctx context.Context, e Exporter) (*sdktrace.Tracer... function newFileExporter (line 157) | func newFileExporter(w io.Writer) (sdktrace.SpanExporter, error) { function otelGRPC (line 164) | func otelGRPC(ctx context.Context, e OTELGRPC) (sdktrace.SpanExporter, e... FILE: chapter/11/petstore/petstore.go function init (line 41) | func init() { function otelExporter (line 53) | func otelExporter() tracing.Exporter { function otelController (line 71) | func otelController() metrics.Controller { function setSampling (line 79) | func setSampling() { function tooManyTrue (line 99) | func tooManyTrue(truths ...interface{}) bool { function main (line 124) | func main() { FILE: chapter/11/petstore/proto/petstore.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type PetType (line 25) | type PetType method Enum (line 58) | func (x PetType) Enum() *PetType { method String (line 64) | func (x PetType) String() string { method Descriptor (line 68) | func (PetType) Descriptor() protoreflect.EnumDescriptor { method Type (line 72) | func (PetType) Type() protoreflect.EnumType { method Number (line 76) | func (x PetType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 81) | func (PetType) EnumDescriptor() ([]byte, []int) { constant PetType_PTUnknown (line 29) | PetType_PTUnknown PetType = 0 constant PetType_PTCanine (line 31) | PetType_PTCanine PetType = 1 constant PetType_PTFeline (line 33) | PetType_PTFeline PetType = 2 constant PetType_PTBird (line 35) | PetType_PTBird PetType = 3 constant PetType_PTReptile (line 37) | PetType_PTReptile PetType = 4 type SamplerType (line 86) | type SamplerType method Enum (line 111) | func (x SamplerType) Enum() *SamplerType { method String (line 117) | func (x SamplerType) String() string { method Descriptor (line 121) | func (SamplerType) Descriptor() protoreflect.EnumDescriptor { method Type (line 125) | func (SamplerType) Type() protoreflect.EnumType { method Number (line 129) | func (x SamplerType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 134) | func (SamplerType) EnumDescriptor() ([]byte, []int) { constant SamplerType_STUnknown (line 89) | SamplerType_STUnknown SamplerType = 0 constant SamplerType_STNever (line 90) | SamplerType_STNever SamplerType = 1 constant SamplerType_STAlways (line 91) | SamplerType_STAlways SamplerType = 2 constant SamplerType_STFloat (line 92) | SamplerType_STFloat SamplerType = 3 type DateRange (line 139) | type DateRange struct method Reset (line 150) | func (x *DateRange) Reset() { method String (line 159) | func (x *DateRange) String() string { method ProtoMessage (line 163) | func (*DateRange) ProtoMessage() {} method ProtoReflect (line 165) | func (x *DateRange) ProtoReflect() protoreflect.Message { method Descriptor (line 178) | func (*DateRange) Descriptor() ([]byte, []int) { method GetStart (line 182) | func (x *DateRange) GetStart() *date.Date { method GetEnd (line 189) | func (x *DateRange) GetEnd() *date.Date { type Pet (line 197) | type Pet struct method Reset (line 212) | func (x *Pet) Reset() { method String (line 221) | func (x *Pet) String() string { method ProtoMessage (line 225) | func (*Pet) ProtoMessage() {} method ProtoReflect (line 227) | func (x *Pet) ProtoReflect() protoreflect.Message { method Descriptor (line 240) | func (*Pet) Descriptor() ([]byte, []int) { method GetId (line 244) | func (x *Pet) GetId() string { method GetName (line 251) | func (x *Pet) GetName() string { method GetType (line 258) | func (x *Pet) GetType() PetType { method GetBirthday (line 265) | func (x *Pet) GetBirthday() *date.Date { type AddPetsReq (line 273) | type AddPetsReq struct method Reset (line 282) | func (x *AddPetsReq) Reset() { method String (line 291) | func (x *AddPetsReq) String() string { method ProtoMessage (line 295) | func (*AddPetsReq) ProtoMessage() {} method ProtoReflect (line 297) | func (x *AddPetsReq) ProtoReflect() protoreflect.Message { method Descriptor (line 310) | func (*AddPetsReq) Descriptor() ([]byte, []int) { method GetPets (line 314) | func (x *AddPetsReq) GetPets() []*Pet { type AddPetsResp (line 322) | type AddPetsResp struct method Reset (line 331) | func (x *AddPetsResp) Reset() { method String (line 340) | func (x *AddPetsResp) String() string { method ProtoMessage (line 344) | func (*AddPetsResp) ProtoMessage() {} method ProtoReflect (line 346) | func (x *AddPetsResp) ProtoReflect() protoreflect.Message { method Descriptor (line 359) | func (*AddPetsResp) Descriptor() ([]byte, []int) { method GetIds (line 363) | func (x *AddPetsResp) GetIds() []string { type UpdatePetsReq (line 371) | type UpdatePetsReq struct method Reset (line 380) | func (x *UpdatePetsReq) Reset() { method String (line 389) | func (x *UpdatePetsReq) String() string { method ProtoMessage (line 393) | func (*UpdatePetsReq) ProtoMessage() {} method ProtoReflect (line 395) | func (x *UpdatePetsReq) ProtoReflect() protoreflect.Message { method Descriptor (line 408) | func (*UpdatePetsReq) Descriptor() ([]byte, []int) { method GetPets (line 412) | func (x *UpdatePetsReq) GetPets() []*Pet { type UpdatePetsResp (line 420) | type UpdatePetsResp struct method Reset (line 426) | func (x *UpdatePetsResp) Reset() { method String (line 435) | func (x *UpdatePetsResp) String() string { method ProtoMessage (line 439) | func (*UpdatePetsResp) ProtoMessage() {} method ProtoReflect (line 441) | func (x *UpdatePetsResp) ProtoReflect() protoreflect.Message { method Descriptor (line 454) | func (*UpdatePetsResp) Descriptor() ([]byte, []int) { type DeletePetsReq (line 459) | type DeletePetsReq struct method Reset (line 468) | func (x *DeletePetsReq) Reset() { method String (line 477) | func (x *DeletePetsReq) String() string { method ProtoMessage (line 481) | func (*DeletePetsReq) ProtoMessage() {} method ProtoReflect (line 483) | func (x *DeletePetsReq) ProtoReflect() protoreflect.Message { method Descriptor (line 496) | func (*DeletePetsReq) Descriptor() ([]byte, []int) { method GetIds (line 500) | func (x *DeletePetsReq) GetIds() []string { type DeletePetsResp (line 508) | type DeletePetsResp struct method Reset (line 514) | func (x *DeletePetsResp) Reset() { method String (line 523) | func (x *DeletePetsResp) String() string { method ProtoMessage (line 527) | func (*DeletePetsResp) ProtoMessage() {} method ProtoReflect (line 529) | func (x *DeletePetsResp) ProtoReflect() protoreflect.Message { method Descriptor (line 542) | func (*DeletePetsResp) Descriptor() ([]byte, []int) { type SearchPetsReq (line 547) | type SearchPetsReq struct method Reset (line 560) | func (x *SearchPetsReq) Reset() { method String (line 569) | func (x *SearchPetsReq) String() string { method ProtoMessage (line 573) | func (*SearchPetsReq) ProtoMessage() {} method ProtoReflect (line 575) | func (x *SearchPetsReq) ProtoReflect() protoreflect.Message { method Descriptor (line 588) | func (*SearchPetsReq) Descriptor() ([]byte, []int) { method GetNames (line 592) | func (x *SearchPetsReq) GetNames() []string { method GetTypes (line 599) | func (x *SearchPetsReq) GetTypes() []PetType { method GetBirthdateRange (line 606) | func (x *SearchPetsReq) GetBirthdateRange() *DateRange { type Sampler (line 613) | type Sampler struct method Reset (line 625) | func (x *Sampler) Reset() { method String (line 634) | func (x *Sampler) String() string { method ProtoMessage (line 638) | func (*Sampler) ProtoMessage() {} method ProtoReflect (line 640) | func (x *Sampler) ProtoReflect() protoreflect.Message { method Descriptor (line 653) | func (*Sampler) Descriptor() ([]byte, []int) { method GetType (line 657) | func (x *Sampler) GetType() SamplerType { method GetFloatValue (line 664) | func (x *Sampler) GetFloatValue() float64 { type ChangeSamplerReq (line 672) | type ChangeSamplerReq struct method Reset (line 680) | func (x *ChangeSamplerReq) Reset() { method String (line 689) | func (x *ChangeSamplerReq) String() string { method ProtoMessage (line 693) | func (*ChangeSamplerReq) ProtoMessage() {} method ProtoReflect (line 695) | func (x *ChangeSamplerReq) ProtoReflect() protoreflect.Message { method Descriptor (line 708) | func (*ChangeSamplerReq) Descriptor() ([]byte, []int) { method GetSampler (line 712) | func (x *ChangeSamplerReq) GetSampler() *Sampler { type ChangeSamplerResp (line 720) | type ChangeSamplerResp struct method Reset (line 726) | func (x *ChangeSamplerResp) Reset() { method String (line 735) | func (x *ChangeSamplerResp) String() string { method ProtoMessage (line 739) | func (*ChangeSamplerResp) ProtoMessage() {} method ProtoReflect (line 741) | func (x *ChangeSamplerResp) ProtoReflect() protoreflect.Message { method Descriptor (line 754) | func (*ChangeSamplerResp) Descriptor() ([]byte, []int) { function file_petstore_proto_rawDescGZIP (line 852) | func file_petstore_proto_rawDescGZIP() []byte { function init (line 906) | func init() { file_petstore_proto_init() } function file_petstore_proto_init (line 907) | func file_petstore_proto_init() { FILE: chapter/11/petstore/proto/petstore_grpc.pb.go constant _ (line 15) | _ = grpc.SupportPackageIsVersion7 type PetStoreClient (line 20) | type PetStoreClient interface type petStoreClient (line 33) | type petStoreClient struct method AddPets (line 41) | func (c *petStoreClient) AddPets(ctx context.Context, in *AddPetsReq, ... method UpdatePets (line 50) | func (c *petStoreClient) UpdatePets(ctx context.Context, in *UpdatePet... method DeletePets (line 59) | func (c *petStoreClient) DeletePets(ctx context.Context, in *DeletePet... method SearchPets (line 68) | func (c *petStoreClient) SearchPets(ctx context.Context, in *SearchPet... method ChangeSampler (line 100) | func (c *petStoreClient) ChangeSampler(ctx context.Context, in *Change... function NewPetStoreClient (line 37) | func NewPetStoreClient(cc grpc.ClientConnInterface) PetStoreClient { type PetStore_SearchPetsClient (line 83) | type PetStore_SearchPetsClient interface type petStoreSearchPetsClient (line 88) | type petStoreSearchPetsClient struct method Recv (line 92) | func (x *petStoreSearchPetsClient) Recv() (*Pet, error) { type PetStoreServer (line 112) | type PetStoreServer interface type UnimplementedPetStoreServer (line 127) | type UnimplementedPetStoreServer struct method AddPets (line 130) | func (UnimplementedPetStoreServer) AddPets(context.Context, *AddPetsRe... method UpdatePets (line 133) | func (UnimplementedPetStoreServer) UpdatePets(context.Context, *Update... method DeletePets (line 136) | func (UnimplementedPetStoreServer) DeletePets(context.Context, *Delete... method SearchPets (line 139) | func (UnimplementedPetStoreServer) SearchPets(*SearchPetsReq, PetStore... method ChangeSampler (line 142) | func (UnimplementedPetStoreServer) ChangeSampler(context.Context, *Cha... method mustEmbedUnimplementedPetStoreServer (line 145) | func (UnimplementedPetStoreServer) mustEmbedUnimplementedPetStoreServe... type UnsafePetStoreServer (line 150) | type UnsafePetStoreServer interface function RegisterPetStoreServer (line 154) | func RegisterPetStoreServer(s grpc.ServiceRegistrar, srv PetStoreServer) { function _PetStore_AddPets_Handler (line 158) | func _PetStore_AddPets_Handler(srv interface{}, ctx context.Context, dec... function _PetStore_UpdatePets_Handler (line 176) | func _PetStore_UpdatePets_Handler(srv interface{}, ctx context.Context, ... function _PetStore_DeletePets_Handler (line 194) | func _PetStore_DeletePets_Handler(srv interface{}, ctx context.Context, ... function _PetStore_SearchPets_Handler (line 212) | func _PetStore_SearchPets_Handler(srv interface{}, stream grpc.ServerStr... type PetStore_SearchPetsServer (line 220) | type PetStore_SearchPetsServer interface type petStoreSearchPetsServer (line 225) | type petStoreSearchPetsServer struct method Send (line 229) | func (x *petStoreSearchPetsServer) Send(m *Pet) error { function _PetStore_ChangeSampler_Handler (line 233) | func _PetStore_ChangeSampler_Handler(srv interface{}, ctx context.Contex... FILE: chapter/12/goss/allfiles/allfiles.go function main (line 35) | func main() { type fileEntry (line 106) | type fileEntry struct function addFileEntries (line 111) | func addFileEntries(fe fileEntry) (*resource.File, error) { function mustUserGroup (line 130) | func mustUserGroup(fe fileEntry) (string, string) { function doSHA256 (line 147) | func doSHA256(p string) (string, error) { FILE: chapter/12/packer/plugins/goenv/goenv.go constant ver (line 25) | ver = "0.0.15" constant release (line 26) | release = "dev" function init (line 31) | func init() { function main (line 35) | func main() { type Provisioner (line 48) | type Provisioner struct method ConfigSpec (line 56) | func (p *Provisioner) ConfigSpec() hcldec.ObjectSpec { method Prepare (line 60) | func (p *Provisioner) Prepare(raws ...interface{}) error { method Provision (line 70) | func (p *Provisioner) Provision(ctx context.Context, u packer.Ui, c pa... method fetch (line 92) | func (p *Provisioner) fetch(ctx context.Context, u packer.Ui, c packer... method push (line 138) | func (p *Provisioner) push(ctx context.Context, u packer.Ui, c packer.... method unpack (line 157) | func (p *Provisioner) unpack(ctx context.Context, u packer.Ui, c packe... method test (line 175) | func (p *Provisioner) test(ctx context.Context, u packer.Ui, c packer.... FILE: chapter/12/packer/plugins/goenv/internal/config/config.go type Provisioner (line 6) | type Provisioner struct method Defaults (line 11) | func (p *Provisioner) Defaults() { FILE: chapter/12/packer/plugins/goenv/internal/config/config.hcl2spec.go type FlatProvisioner (line 12) | type FlatProvisioner struct method HCL2Spec (line 26) | func (*FlatProvisioner) HCL2Spec() map[string]hcldec.Spec { method FlatMapstructure (line 19) | func (*Provisioner) FlatMapstructure() interface{ HCL2Spec() map[string]... FILE: chapter/13/petstore-provider/internal/client/client.go type Client (line 18) | type Client struct method AddPets (line 82) | func (c *Client) AddPets(ctx context.Context, pets []*pb.Pet, options ... method UpdatePets (line 105) | func (c *Client) UpdatePets(ctx context.Context, pets []*pb.Pet, optio... method DeletePets (line 129) | func (c *Client) DeletePets(ctx context.Context, ids []string, options... method SearchPets (line 147) | func (c *Client) SearchPets(ctx context.Context, filter *pb.SearchPets... method ChangeSampler (line 228) | func (c *Client) ChangeSampler(ctx context.Context, sc Sampler, option... function New (line 24) | func New(addr string) (*Client, error) { type Pet (line 38) | type Pet struct method Proto (line 44) | func (p Pet) Proto() *pb.Pet { method Birthday (line 49) | func (p Pet) Birthday() time.Time { method Error (line 57) | func (p Pet) Error() error { type CallOption (line 62) | type CallOption type callOptions (line 64) | type callOptions struct function TraceID (line 71) | func TraceID(s *string) CallOption { type SamplerType (line 180) | type SamplerType constant STUnknown (line 183) | STUnknown SamplerType = 0 constant Never (line 184) | Never SamplerType = 1 constant Always (line 185) | Always SamplerType = 2 constant Float (line 186) | Float SamplerType = 3 type Sampler (line 195) | type Sampler struct method validate (line 202) | func (s *Sampler) validate() error { method proto (line 214) | func (s *Sampler) proto() *pb.Sampler { method fromProto (line 221) | func (s *Sampler) fromProto(p *pb.Sampler) { function handleCallOptions (line 244) | func handleCallOptions(ctx context.Context, header *metadata.MD, options... FILE: chapter/13/petstore-provider/internal/client/internal/server/errors/errors.go function New (line 16) | func New(ctx context.Context, text string) error { function Errorf (line 28) | func Errorf(ctx context.Context, s string, i ...interface{}) error { function As (line 39) | func As(err error, target interface{}) bool { function Is (line 44) | func Is(err, target error) bool { function Unwrap (line 49) | func Unwrap(err error) error { FILE: chapter/13/petstore-provider/internal/client/internal/server/log/log.go constant Ldate (line 55) | Ldate = 1 << iota constant Ltime (line 56) | Ltime constant Lmicroseconds (line 57) | Lmicroseconds constant Llongfile (line 58) | Llongfile constant Lshortfile (line 59) | Lshortfile constant LUTC (line 60) | LUTC constant LstdFlags (line 61) | LstdFlags = Ldate | Ltime type eventPool (line 84) | type eventPool struct method get (line 89) | func (e *eventPool) get() *Event { method put (line 98) | func (e *eventPool) put(ev *Event) { type Event (line 112) | type Event struct method reset (line 124) | func (e *Event) reset() { method Add (line 131) | func (e *Event) Add(k string, i interface{}) { method Done (line 163) | func (e *Event) Done(ctx context.Context) { function NewEvent (line 118) | func NewEvent(name string) *Event { function Println (line 177) | func Println(ctx context.Context, v ...interface{}) { function Printf (line 186) | func Printf(ctx context.Context, format string, v ...interface{}) { function SetFlags (line 195) | func SetFlags(flag int) { type logger (line 200) | type logger struct method output (line 223) | func (l *logger) output(span trace.Span, calldepth int, s string) error { method formatHeader (line 254) | func (l *logger) formatHeader(buf *[]byte, t time.Time, file string, l... function itoa (line 207) | func itoa(buf *[]byte, i int, wid int) { FILE: chapter/13/petstore-provider/internal/client/internal/server/storage/mem/mem.go type birthdays (line 23) | type birthdays method Compare (line 26) | func (bi birthdays) Compare(b llrb.Comparable) int { type birthdayGet (line 51) | type birthdayGet struct method Compare (line 56) | func (bi birthdayGet) Compare(b llrb.Comparable) int { type Data (line 82) | type Data struct method AddPets (line 111) | func (d *Data) AddPets(ctx context.Context, pets []*pb.Pet) error { method UpdatePets (line 136) | func (d *Data) UpdatePets(ctx context.Context, pets []*pb.Pet) error { method populate (line 153) | func (d *Data) populate(ctx context.Context, pets []*pb.Pet) { method DeletePets (line 183) | func (d *Data) DeletePets(ctx context.Context, ids []string) error { method SearchPets (line 227) | func (d *Data) SearchPets(ctx context.Context, filter *pb.SearchPetsRe... method searchPets (line 238) | func (d *Data) searchPets(ctx context.Context, filter *pb.SearchPetsRe... method returnAll (line 333) | func (d *Data) returnAll(ctx context.Context, out chan storage.SearchI... method byNames (line 355) | func (d *Data) byNames(ctx context.Context, filter *pb.SearchPetsReq) ... method byTypes (line 387) | func (d *Data) byTypes(ctx context.Context, filter *pb.SearchPetsReq) ... method byBirthdays (line 418) | func (d *Data) byBirthdays(ctx context.Context, filter *pb.SearchPetsR... function New (line 95) | func New() *Data { FILE: chapter/13/petstore-provider/internal/client/internal/server/storage/mem/mem_test.go function makePets (line 61) | func makePets() *Data { function TestByNames (line 73) | func TestByNames(t *testing.T) { function TestByTypes (line 85) | func TestByTypes(t *testing.T) { function TestByBirthdays (line 97) | func TestByBirthdays(t *testing.T) { function TestDeletePets (line 117) | func TestDeletePets(t *testing.T) { function TestSearchPets (line 154) | func TestSearchPets(t *testing.T) { FILE: chapter/13/petstore-provider/internal/client/internal/server/storage/storage.go type Data (line 15) | type Data interface type SearchItem (line 29) | type SearchItem struct function ValidatePet (line 38) | func ValidatePet(ctx context.Context, p *pb.Pet, forUpdate bool) error { function BirthdayToTime (line 64) | func BirthdayToTime(ctx context.Context, d *dpb.Date) (time.Time, error) { FILE: chapter/13/petstore-provider/internal/client/internal/server/telemetry/metrics/metrics.go type metricType (line 51) | type metricType constant unknown (line 54) | unknown = 0 constant mtInt64 (line 55) | mtInt64 = 1 constant mtInt64Hist (line 56) | mtInt64Hist = 2 constant mtInt64UD (line 57) | mtInt64UD = 3 type metricDef (line 60) | type metricDef struct type Lookups (line 110) | type Lookups struct method Int64 (line 167) | func (l *Lookups) Int64(s string) metric.Int64Counter { method Int64s (line 180) | func (l *Lookups) Int64s(s ...string) []metric.Int64Counter { method Int64UD (line 189) | func (l *Lookups) Int64UD(s string) metric.Int64UpDownCounter { method Int64UDs (line 202) | func (l *Lookups) Int64UDs(s ...string) []metric.Int64UpDownCounter { method Int64Hist (line 211) | func (l *Lookups) Int64Hist(s string) metric.Int64Histogram { method Int64Hists (line 223) | func (l *Lookups) Int64Hists(s ...string) []metric.Int64Histogram { method unused (line 231) | func (l *Lookups) unused() []string { function newLookups (line 119) | func newLookups() *Lookups { FILE: chapter/13/petstore-provider/internal/client/internal/server/telemetry/metrics/start.go type Controller (line 18) | type Controller interface type OTELGRPC (line 23) | type OTELGRPC struct method isController (line 28) | func (o OTELGRPC) isController() {} type Stop (line 31) | type Stop function Start (line 34) | func Start(ctx context.Context, c Controller) (Stop, error) { function newController (line 53) | func newController(ctx context.Context, c Controller) (*basic.Controller... function otelGRPC (line 61) | func otelGRPC(ctx context.Context, args OTELGRPC) (*basic.Controller, er... FILE: chapter/13/petstore-provider/internal/client/internal/server/telemetry/tracing/sampler/sampler.go constant desc (line 33) | desc = `This sampler samples if TracdID.Valid(), gRPC metadata contains ... type Sampler (line 37) | type Sampler struct method ShouldSample (line 57) | func (s *Sampler) ShouldSample(p trace.SamplingParameters) trace.Sampl... method Description (line 92) | func (s *Sampler) Description() string { method Switch (line 97) | func (s *Sampler) Switch(sampler trace.Sampler) { function New (line 46) | func New(child trace.Sampler) (*Sampler, error) { FILE: chapter/13/petstore-provider/internal/client/internal/server/telemetry/tracing/tracing.go function init (line 52) | func init() { type Exporter (line 61) | type Exporter interface type OTELGRPC (line 66) | type OTELGRPC struct method isExporter (line 71) | func (o OTELGRPC) isExporter() {} type Stderr (line 74) | type Stderr struct method isExporter (line 76) | func (s Stderr) isExporter() {} type File (line 79) | type File struct method isExporter (line 84) | func (f File) isExporter() {} type Stop (line 87) | type Stop function Start (line 91) | func Start(ctx context.Context, e Exporter) (Stop, error) { function newTraceExporter (line 111) | func newTraceExporter(ctx context.Context, e Exporter) (*sdktrace.Tracer... function newFileExporter (line 157) | func newFileExporter(w io.Writer) (sdktrace.SpanExporter, error) { function otelGRPC (line 164) | func otelGRPC(ctx context.Context, e OTELGRPC) (sdktrace.SpanExporter, e... FILE: chapter/13/petstore-provider/internal/client/proto/petstore.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type PetType (line 25) | type PetType method Enum (line 58) | func (x PetType) Enum() *PetType { method String (line 64) | func (x PetType) String() string { method Descriptor (line 68) | func (PetType) Descriptor() protoreflect.EnumDescriptor { method Type (line 72) | func (PetType) Type() protoreflect.EnumType { method Number (line 76) | func (x PetType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 81) | func (PetType) EnumDescriptor() ([]byte, []int) { constant PetType_PTUnknown (line 29) | PetType_PTUnknown PetType = 0 constant PetType_PTCanine (line 31) | PetType_PTCanine PetType = 1 constant PetType_PTFeline (line 33) | PetType_PTFeline PetType = 2 constant PetType_PTBird (line 35) | PetType_PTBird PetType = 3 constant PetType_PTReptile (line 37) | PetType_PTReptile PetType = 4 type SamplerType (line 86) | type SamplerType method Enum (line 111) | func (x SamplerType) Enum() *SamplerType { method String (line 117) | func (x SamplerType) String() string { method Descriptor (line 121) | func (SamplerType) Descriptor() protoreflect.EnumDescriptor { method Type (line 125) | func (SamplerType) Type() protoreflect.EnumType { method Number (line 129) | func (x SamplerType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 134) | func (SamplerType) EnumDescriptor() ([]byte, []int) { constant SamplerType_STUnknown (line 89) | SamplerType_STUnknown SamplerType = 0 constant SamplerType_STNever (line 90) | SamplerType_STNever SamplerType = 1 constant SamplerType_STAlways (line 91) | SamplerType_STAlways SamplerType = 2 constant SamplerType_STFloat (line 92) | SamplerType_STFloat SamplerType = 3 type DateRange (line 139) | type DateRange struct method Reset (line 150) | func (x *DateRange) Reset() { method String (line 159) | func (x *DateRange) String() string { method ProtoMessage (line 163) | func (*DateRange) ProtoMessage() {} method ProtoReflect (line 165) | func (x *DateRange) ProtoReflect() protoreflect.Message { method Descriptor (line 178) | func (*DateRange) Descriptor() ([]byte, []int) { method GetStart (line 182) | func (x *DateRange) GetStart() *date.Date { method GetEnd (line 189) | func (x *DateRange) GetEnd() *date.Date { type Pet (line 197) | type Pet struct method Reset (line 212) | func (x *Pet) Reset() { method String (line 221) | func (x *Pet) String() string { method ProtoMessage (line 225) | func (*Pet) ProtoMessage() {} method ProtoReflect (line 227) | func (x *Pet) ProtoReflect() protoreflect.Message { method Descriptor (line 240) | func (*Pet) Descriptor() ([]byte, []int) { method GetId (line 244) | func (x *Pet) GetId() string { method GetName (line 251) | func (x *Pet) GetName() string { method GetType (line 258) | func (x *Pet) GetType() PetType { method GetBirthday (line 265) | func (x *Pet) GetBirthday() *date.Date { type AddPetsReq (line 273) | type AddPetsReq struct method Reset (line 282) | func (x *AddPetsReq) Reset() { method String (line 291) | func (x *AddPetsReq) String() string { method ProtoMessage (line 295) | func (*AddPetsReq) ProtoMessage() {} method ProtoReflect (line 297) | func (x *AddPetsReq) ProtoReflect() protoreflect.Message { method Descriptor (line 310) | func (*AddPetsReq) Descriptor() ([]byte, []int) { method GetPets (line 314) | func (x *AddPetsReq) GetPets() []*Pet { type AddPetsResp (line 322) | type AddPetsResp struct method Reset (line 331) | func (x *AddPetsResp) Reset() { method String (line 340) | func (x *AddPetsResp) String() string { method ProtoMessage (line 344) | func (*AddPetsResp) ProtoMessage() {} method ProtoReflect (line 346) | func (x *AddPetsResp) ProtoReflect() protoreflect.Message { method Descriptor (line 359) | func (*AddPetsResp) Descriptor() ([]byte, []int) { method GetIds (line 363) | func (x *AddPetsResp) GetIds() []string { type UpdatePetsReq (line 371) | type UpdatePetsReq struct method Reset (line 380) | func (x *UpdatePetsReq) Reset() { method String (line 389) | func (x *UpdatePetsReq) String() string { method ProtoMessage (line 393) | func (*UpdatePetsReq) ProtoMessage() {} method ProtoReflect (line 395) | func (x *UpdatePetsReq) ProtoReflect() protoreflect.Message { method Descriptor (line 408) | func (*UpdatePetsReq) Descriptor() ([]byte, []int) { method GetPets (line 412) | func (x *UpdatePetsReq) GetPets() []*Pet { type UpdatePetsResp (line 420) | type UpdatePetsResp struct method Reset (line 426) | func (x *UpdatePetsResp) Reset() { method String (line 435) | func (x *UpdatePetsResp) String() string { method ProtoMessage (line 439) | func (*UpdatePetsResp) ProtoMessage() {} method ProtoReflect (line 441) | func (x *UpdatePetsResp) ProtoReflect() protoreflect.Message { method Descriptor (line 454) | func (*UpdatePetsResp) Descriptor() ([]byte, []int) { type DeletePetsReq (line 459) | type DeletePetsReq struct method Reset (line 468) | func (x *DeletePetsReq) Reset() { method String (line 477) | func (x *DeletePetsReq) String() string { method ProtoMessage (line 481) | func (*DeletePetsReq) ProtoMessage() {} method ProtoReflect (line 483) | func (x *DeletePetsReq) ProtoReflect() protoreflect.Message { method Descriptor (line 496) | func (*DeletePetsReq) Descriptor() ([]byte, []int) { method GetIds (line 500) | func (x *DeletePetsReq) GetIds() []string { type DeletePetsResp (line 508) | type DeletePetsResp struct method Reset (line 514) | func (x *DeletePetsResp) Reset() { method String (line 523) | func (x *DeletePetsResp) String() string { method ProtoMessage (line 527) | func (*DeletePetsResp) ProtoMessage() {} method ProtoReflect (line 529) | func (x *DeletePetsResp) ProtoReflect() protoreflect.Message { method Descriptor (line 542) | func (*DeletePetsResp) Descriptor() ([]byte, []int) { type SearchPetsReq (line 547) | type SearchPetsReq struct method Reset (line 560) | func (x *SearchPetsReq) Reset() { method String (line 569) | func (x *SearchPetsReq) String() string { method ProtoMessage (line 573) | func (*SearchPetsReq) ProtoMessage() {} method ProtoReflect (line 575) | func (x *SearchPetsReq) ProtoReflect() protoreflect.Message { method Descriptor (line 588) | func (*SearchPetsReq) Descriptor() ([]byte, []int) { method GetNames (line 592) | func (x *SearchPetsReq) GetNames() []string { method GetTypes (line 599) | func (x *SearchPetsReq) GetTypes() []PetType { method GetBirthdateRange (line 606) | func (x *SearchPetsReq) GetBirthdateRange() *DateRange { type Sampler (line 613) | type Sampler struct method Reset (line 625) | func (x *Sampler) Reset() { method String (line 634) | func (x *Sampler) String() string { method ProtoMessage (line 638) | func (*Sampler) ProtoMessage() {} method ProtoReflect (line 640) | func (x *Sampler) ProtoReflect() protoreflect.Message { method Descriptor (line 653) | func (*Sampler) Descriptor() ([]byte, []int) { method GetType (line 657) | func (x *Sampler) GetType() SamplerType { method GetFloatValue (line 664) | func (x *Sampler) GetFloatValue() float64 { type ChangeSamplerReq (line 672) | type ChangeSamplerReq struct method Reset (line 680) | func (x *ChangeSamplerReq) Reset() { method String (line 689) | func (x *ChangeSamplerReq) String() string { method ProtoMessage (line 693) | func (*ChangeSamplerReq) ProtoMessage() {} method ProtoReflect (line 695) | func (x *ChangeSamplerReq) ProtoReflect() protoreflect.Message { method Descriptor (line 708) | func (*ChangeSamplerReq) Descriptor() ([]byte, []int) { method GetSampler (line 712) | func (x *ChangeSamplerReq) GetSampler() *Sampler { type ChangeSamplerResp (line 720) | type ChangeSamplerResp struct method Reset (line 726) | func (x *ChangeSamplerResp) Reset() { method String (line 735) | func (x *ChangeSamplerResp) String() string { method ProtoMessage (line 739) | func (*ChangeSamplerResp) ProtoMessage() {} method ProtoReflect (line 741) | func (x *ChangeSamplerResp) ProtoReflect() protoreflect.Message { method Descriptor (line 754) | func (*ChangeSamplerResp) Descriptor() ([]byte, []int) { function file_petstore_proto_rawDescGZIP (line 852) | func file_petstore_proto_rawDescGZIP() []byte { function init (line 906) | func init() { file_petstore_proto_init() } function file_petstore_proto_init (line 907) | func file_petstore_proto_init() { FILE: chapter/13/petstore-provider/internal/client/proto/petstore_grpc.pb.go constant _ (line 15) | _ = grpc.SupportPackageIsVersion7 type PetStoreClient (line 20) | type PetStoreClient interface type petStoreClient (line 33) | type petStoreClient struct method AddPets (line 41) | func (c *petStoreClient) AddPets(ctx context.Context, in *AddPetsReq, ... method UpdatePets (line 50) | func (c *petStoreClient) UpdatePets(ctx context.Context, in *UpdatePet... method DeletePets (line 59) | func (c *petStoreClient) DeletePets(ctx context.Context, in *DeletePet... method SearchPets (line 68) | func (c *petStoreClient) SearchPets(ctx context.Context, in *SearchPet... method ChangeSampler (line 100) | func (c *petStoreClient) ChangeSampler(ctx context.Context, in *Change... function NewPetStoreClient (line 37) | func NewPetStoreClient(cc grpc.ClientConnInterface) PetStoreClient { type PetStore_SearchPetsClient (line 83) | type PetStore_SearchPetsClient interface type petStoreSearchPetsClient (line 88) | type petStoreSearchPetsClient struct method Recv (line 92) | func (x *petStoreSearchPetsClient) Recv() (*Pet, error) { type PetStoreServer (line 112) | type PetStoreServer interface type UnimplementedPetStoreServer (line 127) | type UnimplementedPetStoreServer struct method AddPets (line 130) | func (UnimplementedPetStoreServer) AddPets(context.Context, *AddPetsRe... method UpdatePets (line 133) | func (UnimplementedPetStoreServer) UpdatePets(context.Context, *Update... method DeletePets (line 136) | func (UnimplementedPetStoreServer) DeletePets(context.Context, *Delete... method SearchPets (line 139) | func (UnimplementedPetStoreServer) SearchPets(*SearchPetsReq, PetStore... method ChangeSampler (line 142) | func (UnimplementedPetStoreServer) ChangeSampler(context.Context, *Cha... method mustEmbedUnimplementedPetStoreServer (line 145) | func (UnimplementedPetStoreServer) mustEmbedUnimplementedPetStoreServe... type UnsafePetStoreServer (line 150) | type UnsafePetStoreServer interface function RegisterPetStoreServer (line 154) | func RegisterPetStoreServer(s grpc.ServiceRegistrar, srv PetStoreServer) { function _PetStore_AddPets_Handler (line 158) | func _PetStore_AddPets_Handler(srv interface{}, ctx context.Context, dec... function _PetStore_UpdatePets_Handler (line 176) | func _PetStore_UpdatePets_Handler(srv interface{}, ctx context.Context, ... function _PetStore_DeletePets_Handler (line 194) | func _PetStore_DeletePets_Handler(srv interface{}, ctx context.Context, ... function _PetStore_SearchPets_Handler (line 212) | func _PetStore_SearchPets_Handler(srv interface{}, stream grpc.ServerStr... type PetStore_SearchPetsServer (line 220) | type PetStore_SearchPetsServer interface type petStoreSearchPetsServer (line 225) | type petStoreSearchPetsServer struct method Send (line 229) | func (x *petStoreSearchPetsServer) Send(m *Pet) error { function _PetStore_ChangeSampler_Handler (line 233) | func _PetStore_ChangeSampler_Handler(srv interface{}, ctx context.Contex... FILE: chapter/13/petstore-provider/internal/data_source_pet.go function dataSourcePet (line 17) | func dataSourcePet() *schema.Resource { function clientFromMeta (line 25) | func clientFromMeta(meta interface{}) (*client.Client, error) { function dataSourcePetRead (line 35) | func dataSourcePetRead(ctx context.Context, data *schema.ResourceData, m... function flattenPets (line 61) | func flattenPets(pets []*client.Pet) []interface{} { function setDataFromPet (line 70) | func setDataFromPet(pet *client.Pet, data *schema.ResourceData) diag.Dia... function petToMap (line 83) | func petToMap(pet *client.Pet) map[string]interface{} { function fillPetFromData (line 93) | func fillPetFromData(pet *client.Pet, data *schema.ResourceData) diag.Di... function timeToPbDate (line 111) | func timeToPbDate(t time.Time) *date.Date { type findPetsRequest (line 119) | type findPetsRequest struct function findPetsInStore (line 127) | func findPetsInStore(ctx context.Context, psClient *client.Client, req f... function petTypeToProtoPetType (line 157) | func petTypeToProtoPetType(petType PetType) pb.PetType { function protoPetTypeToPetType (line 170) | func protoPetTypeToPetType(pbPetType pb.PetType) PetType { FILE: chapter/13/petstore-provider/internal/provider.go function Provider (line 13) | func Provider() *schema.Provider { function configure (line 33) | func configure(_ context.Context, data *schema.ResourceData) (interface{... FILE: chapter/13/petstore-provider/internal/resource_pets.go function resourcePet (line 13) | func resourcePet() *schema.Resource { function resourcePetCreate (line 27) | func resourcePetCreate(ctx context.Context, data *schema.ResourceData, m... function resourcePetRead (line 45) | func resourcePetRead(ctx context.Context, data *schema.ResourceData, met... function resourcePetUpdate (line 64) | func resourcePetUpdate(ctx context.Context, data *schema.ResourceData, m... function resourcePetDelete (line 99) | func resourcePetDelete(ctx context.Context, data *schema.ResourceData, m... FILE: chapter/13/petstore-provider/internal/schema.go type PetType (line 12) | type PetType constant DogPetType (line 15) | DogPetType PetType = "dog" constant CatPetType (line 16) | CatPetType PetType = "cat" constant BirdPetType (line 17) | BirdPetType PetType = "bird" constant ReptilePetType (line 18) | ReptilePetType PetType = "reptile" function getPetDataSchema (line 21) | func getPetDataSchema() map[string]*schema.Schema { function getPetResourceSchema (line 69) | func getPetResourceSchema() map[string]*schema.Schema { function validateName (line 94) | func validateName() schema.SchemaValidateDiagFunc { function validateType (line 98) | func validateType() schema.SchemaValidateDiagFunc { function validateBirthday (line 107) | func validateBirthday() schema.SchemaValidateDiagFunc { function validateDiagFunc (line 111) | func validateDiagFunc(validateFunc func(interface{}, string) ([]string, ... FILE: chapter/13/petstore-provider/main.go function main (line 10) | func main() { FILE: chapter/14/petstore-operator/api/v1alpha1/pet_types.go type PetType (line 25) | type PetType constant DogPetType (line 28) | DogPetType PetType = "dog" constant CatPetType (line 29) | CatPetType PetType = "cat" constant BirdPetType (line 30) | BirdPetType PetType = "bird" constant ReptilePetType (line 31) | ReptilePetType PetType = "reptile" type PetSpec (line 35) | type PetSpec struct type PetStatus (line 45) | type PetStatus struct type Pet (line 54) | type Pet struct type PetList (line 65) | type PetList struct function init (line 71) | func init() { FILE: chapter/14/petstore-operator/api/v1alpha1/zz_generated.deepcopy.go method DeepCopyInto (line 29) | func (in *Pet) DeepCopyInto(out *Pet) { method DeepCopy (line 38) | func (in *Pet) DeepCopy() *Pet { method DeepCopyObject (line 48) | func (in *Pet) DeepCopyObject() runtime.Object { method DeepCopyInto (line 56) | func (in *PetList) DeepCopyInto(out *PetList) { method DeepCopy (line 70) | func (in *PetList) DeepCopy() *PetList { method DeepCopyObject (line 80) | func (in *PetList) DeepCopyObject() runtime.Object { method DeepCopyInto (line 88) | func (in *PetSpec) DeepCopyInto(out *PetSpec) { method DeepCopy (line 94) | func (in *PetSpec) DeepCopy() *PetSpec { method DeepCopyInto (line 104) | func (in *PetStatus) DeepCopyInto(out *PetStatus) { method DeepCopy (line 109) | func (in *PetStatus) DeepCopy() *PetStatus { FILE: chapter/14/petstore-operator/client/client.go type Client (line 19) | type Client struct method AddPets (line 83) | func (c *Client) AddPets(ctx context.Context, pets []*pb.Pet, options ... method UpdatePets (line 106) | func (c *Client) UpdatePets(ctx context.Context, pets []*pb.Pet, optio... method DeletePets (line 130) | func (c *Client) DeletePets(ctx context.Context, ids []string, options... method SearchPets (line 148) | func (c *Client) SearchPets(ctx context.Context, filter *pb.SearchPets... method ChangeSampler (line 229) | func (c *Client) ChangeSampler(ctx context.Context, sc Sampler, option... function New (line 25) | func New(addr string) (*Client, error) { type Pet (line 39) | type Pet struct method Proto (line 45) | func (p Pet) Proto() *pb.Pet { method Birthday (line 50) | func (p Pet) Birthday() time.Time { method Error (line 58) | func (p Pet) Error() error { type CallOption (line 63) | type CallOption type callOptions (line 65) | type callOptions struct function TraceID (line 72) | func TraceID(s *string) CallOption { type SamplerType (line 181) | type SamplerType constant STUnknown (line 184) | STUnknown SamplerType = 0 constant Never (line 185) | Never SamplerType = 1 constant Always (line 186) | Always SamplerType = 2 constant Float (line 187) | Float SamplerType = 3 type Sampler (line 196) | type Sampler struct method validate (line 203) | func (s *Sampler) validate() error { method proto (line 215) | func (s *Sampler) proto() *pb.Sampler { method fromProto (line 222) | func (s *Sampler) fromProto(p *pb.Sampler) { function handleCallOptions (line 245) | func handleCallOptions(ctx context.Context, header *metadata.MD, options... FILE: chapter/14/petstore-operator/client/internal/server/errors/errors.go function New (line 16) | func New(ctx context.Context, text string) error { function Errorf (line 28) | func Errorf(ctx context.Context, s string, i ...interface{}) error { function As (line 39) | func As(err error, target interface{}) bool { function Is (line 44) | func Is(err, target error) bool { function Unwrap (line 49) | func Unwrap(err error) error { FILE: chapter/14/petstore-operator/client/internal/server/log/log.go constant Ldate (line 55) | Ldate = 1 << iota constant Ltime (line 56) | Ltime constant Lmicroseconds (line 57) | Lmicroseconds constant Llongfile (line 58) | Llongfile constant Lshortfile (line 59) | Lshortfile constant LUTC (line 60) | LUTC constant LstdFlags (line 61) | LstdFlags = Ldate | Ltime type eventPool (line 84) | type eventPool struct method get (line 89) | func (e *eventPool) get() *Event { method put (line 98) | func (e *eventPool) put(ev *Event) { type Event (line 112) | type Event struct method reset (line 124) | func (e *Event) reset() { method Add (line 131) | func (e *Event) Add(k string, i interface{}) { method Done (line 163) | func (e *Event) Done(ctx context.Context) { function NewEvent (line 118) | func NewEvent(name string) *Event { function Println (line 177) | func Println(ctx context.Context, v ...interface{}) { function Printf (line 186) | func Printf(ctx context.Context, format string, v ...interface{}) { function SetFlags (line 195) | func SetFlags(flag int) { type logger (line 200) | type logger struct method output (line 223) | func (l *logger) output(span trace.Span, calldepth int, s string) error { method formatHeader (line 254) | func (l *logger) formatHeader(buf *[]byte, t time.Time, file string, l... function itoa (line 207) | func itoa(buf *[]byte, i int, wid int) { FILE: chapter/14/petstore-operator/client/internal/server/storage/mem/mem.go type birthdays (line 23) | type birthdays method Compare (line 26) | func (bi birthdays) Compare(b llrb.Comparable) int { type birthdayGet (line 51) | type birthdayGet struct method Compare (line 56) | func (bi birthdayGet) Compare(b llrb.Comparable) int { type Data (line 82) | type Data struct method AddPets (line 111) | func (d *Data) AddPets(ctx context.Context, pets []*pb.Pet) error { method UpdatePets (line 136) | func (d *Data) UpdatePets(ctx context.Context, pets []*pb.Pet) error { method populate (line 153) | func (d *Data) populate(ctx context.Context, pets []*pb.Pet) { method DeletePets (line 183) | func (d *Data) DeletePets(ctx context.Context, ids []string) error { method SearchPets (line 227) | func (d *Data) SearchPets(ctx context.Context, filter *pb.SearchPetsRe... method searchPets (line 238) | func (d *Data) searchPets(ctx context.Context, filter *pb.SearchPetsRe... method returnAll (line 333) | func (d *Data) returnAll(ctx context.Context, out chan storage.SearchI... method byNames (line 355) | func (d *Data) byNames(ctx context.Context, filter *pb.SearchPetsReq) ... method byTypes (line 387) | func (d *Data) byTypes(ctx context.Context, filter *pb.SearchPetsReq) ... method byBirthdays (line 418) | func (d *Data) byBirthdays(ctx context.Context, filter *pb.SearchPetsR... function New (line 95) | func New() *Data { FILE: chapter/14/petstore-operator/client/internal/server/storage/mem/mem_test.go function makePets (line 61) | func makePets() *Data { function TestByNames (line 73) | func TestByNames(t *testing.T) { function TestByTypes (line 85) | func TestByTypes(t *testing.T) { function TestByBirthdays (line 97) | func TestByBirthdays(t *testing.T) { function TestDeletePets (line 117) | func TestDeletePets(t *testing.T) { function TestSearchPets (line 154) | func TestSearchPets(t *testing.T) { FILE: chapter/14/petstore-operator/client/internal/server/storage/storage.go type Data (line 15) | type Data interface type SearchItem (line 29) | type SearchItem struct function ValidatePet (line 38) | func ValidatePet(ctx context.Context, p *pb.Pet, forUpdate bool) error { function BirthdayToTime (line 64) | func BirthdayToTime(ctx context.Context, d *dpb.Date) (time.Time, error) { FILE: chapter/14/petstore-operator/client/internal/server/telemetry/metrics/metrics.go type metricType (line 51) | type metricType constant unknown (line 54) | unknown = 0 constant mtInt64 (line 55) | mtInt64 = 1 constant mtInt64Hist (line 56) | mtInt64Hist = 2 constant mtInt64UD (line 57) | mtInt64UD = 3 type metricDef (line 60) | type metricDef struct type Lookups (line 110) | type Lookups struct method Int64 (line 167) | func (l *Lookups) Int64(s string) metric.Int64Counter { method Int64s (line 180) | func (l *Lookups) Int64s(s ...string) []metric.Int64Counter { method Int64UD (line 189) | func (l *Lookups) Int64UD(s string) metric.Int64UpDownCounter { method Int64UDs (line 202) | func (l *Lookups) Int64UDs(s ...string) []metric.Int64UpDownCounter { method Int64Hist (line 211) | func (l *Lookups) Int64Hist(s string) metric.Int64Histogram { method Int64Hists (line 223) | func (l *Lookups) Int64Hists(s ...string) []metric.Int64Histogram { method unused (line 231) | func (l *Lookups) unused() []string { function newLookups (line 119) | func newLookups() *Lookups { FILE: chapter/14/petstore-operator/client/internal/server/telemetry/metrics/start.go type Controller (line 18) | type Controller interface type OTELGRPC (line 23) | type OTELGRPC struct method isController (line 28) | func (o OTELGRPC) isController() {} type Stop (line 31) | type Stop function Start (line 34) | func Start(ctx context.Context, c Controller) (Stop, error) { function newController (line 53) | func newController(ctx context.Context, c Controller) (*basic.Controller... function otelGRPC (line 61) | func otelGRPC(ctx context.Context, args OTELGRPC) (*basic.Controller, er... FILE: chapter/14/petstore-operator/client/internal/server/telemetry/tracing/sampler/sampler.go constant desc (line 33) | desc = `This sampler samples if TracdID.Valid(), gRPC metadata contains ... type Sampler (line 37) | type Sampler struct method ShouldSample (line 57) | func (s *Sampler) ShouldSample(p trace.SamplingParameters) trace.Sampl... method Description (line 92) | func (s *Sampler) Description() string { method Switch (line 97) | func (s *Sampler) Switch(sampler trace.Sampler) { function New (line 46) | func New(child trace.Sampler) (*Sampler, error) { FILE: chapter/14/petstore-operator/client/internal/server/telemetry/tracing/tracing.go function init (line 52) | func init() { type Exporter (line 61) | type Exporter interface type OTELGRPC (line 66) | type OTELGRPC struct method isExporter (line 71) | func (o OTELGRPC) isExporter() {} type Stderr (line 74) | type Stderr struct method isExporter (line 76) | func (s Stderr) isExporter() {} type File (line 79) | type File struct method isExporter (line 84) | func (f File) isExporter() {} type Stop (line 87) | type Stop function Start (line 91) | func Start(ctx context.Context, e Exporter) (Stop, error) { function newTraceExporter (line 111) | func newTraceExporter(ctx context.Context, e Exporter) (*sdktrace.Tracer... function newFileExporter (line 157) | func newFileExporter(w io.Writer) (sdktrace.SpanExporter, error) { function otelGRPC (line 164) | func otelGRPC(ctx context.Context, e OTELGRPC) (sdktrace.SpanExporter, e... FILE: chapter/14/petstore-operator/client/proto/petstore.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type PetType (line 25) | type PetType method Enum (line 58) | func (x PetType) Enum() *PetType { method String (line 64) | func (x PetType) String() string { method Descriptor (line 68) | func (PetType) Descriptor() protoreflect.EnumDescriptor { method Type (line 72) | func (PetType) Type() protoreflect.EnumType { method Number (line 76) | func (x PetType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 81) | func (PetType) EnumDescriptor() ([]byte, []int) { constant PetType_PTUnknown (line 29) | PetType_PTUnknown PetType = 0 constant PetType_PTCanine (line 31) | PetType_PTCanine PetType = 1 constant PetType_PTFeline (line 33) | PetType_PTFeline PetType = 2 constant PetType_PTBird (line 35) | PetType_PTBird PetType = 3 constant PetType_PTReptile (line 37) | PetType_PTReptile PetType = 4 type SamplerType (line 86) | type SamplerType method Enum (line 111) | func (x SamplerType) Enum() *SamplerType { method String (line 117) | func (x SamplerType) String() string { method Descriptor (line 121) | func (SamplerType) Descriptor() protoreflect.EnumDescriptor { method Type (line 125) | func (SamplerType) Type() protoreflect.EnumType { method Number (line 129) | func (x SamplerType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 134) | func (SamplerType) EnumDescriptor() ([]byte, []int) { constant SamplerType_STUnknown (line 89) | SamplerType_STUnknown SamplerType = 0 constant SamplerType_STNever (line 90) | SamplerType_STNever SamplerType = 1 constant SamplerType_STAlways (line 91) | SamplerType_STAlways SamplerType = 2 constant SamplerType_STFloat (line 92) | SamplerType_STFloat SamplerType = 3 type DateRange (line 139) | type DateRange struct method Reset (line 150) | func (x *DateRange) Reset() { method String (line 159) | func (x *DateRange) String() string { method ProtoMessage (line 163) | func (*DateRange) ProtoMessage() {} method ProtoReflect (line 165) | func (x *DateRange) ProtoReflect() protoreflect.Message { method Descriptor (line 178) | func (*DateRange) Descriptor() ([]byte, []int) { method GetStart (line 182) | func (x *DateRange) GetStart() *date.Date { method GetEnd (line 189) | func (x *DateRange) GetEnd() *date.Date { type Pet (line 197) | type Pet struct method Reset (line 212) | func (x *Pet) Reset() { method String (line 221) | func (x *Pet) String() string { method ProtoMessage (line 225) | func (*Pet) ProtoMessage() {} method ProtoReflect (line 227) | func (x *Pet) ProtoReflect() protoreflect.Message { method Descriptor (line 240) | func (*Pet) Descriptor() ([]byte, []int) { method GetId (line 244) | func (x *Pet) GetId() string { method GetName (line 251) | func (x *Pet) GetName() string { method GetType (line 258) | func (x *Pet) GetType() PetType { method GetBirthday (line 265) | func (x *Pet) GetBirthday() *date.Date { type AddPetsReq (line 273) | type AddPetsReq struct method Reset (line 282) | func (x *AddPetsReq) Reset() { method String (line 291) | func (x *AddPetsReq) String() string { method ProtoMessage (line 295) | func (*AddPetsReq) ProtoMessage() {} method ProtoReflect (line 297) | func (x *AddPetsReq) ProtoReflect() protoreflect.Message { method Descriptor (line 310) | func (*AddPetsReq) Descriptor() ([]byte, []int) { method GetPets (line 314) | func (x *AddPetsReq) GetPets() []*Pet { type AddPetsResp (line 322) | type AddPetsResp struct method Reset (line 331) | func (x *AddPetsResp) Reset() { method String (line 340) | func (x *AddPetsResp) String() string { method ProtoMessage (line 344) | func (*AddPetsResp) ProtoMessage() {} method ProtoReflect (line 346) | func (x *AddPetsResp) ProtoReflect() protoreflect.Message { method Descriptor (line 359) | func (*AddPetsResp) Descriptor() ([]byte, []int) { method GetIds (line 363) | func (x *AddPetsResp) GetIds() []string { type UpdatePetsReq (line 371) | type UpdatePetsReq struct method Reset (line 380) | func (x *UpdatePetsReq) Reset() { method String (line 389) | func (x *UpdatePetsReq) String() string { method ProtoMessage (line 393) | func (*UpdatePetsReq) ProtoMessage() {} method ProtoReflect (line 395) | func (x *UpdatePetsReq) ProtoReflect() protoreflect.Message { method Descriptor (line 408) | func (*UpdatePetsReq) Descriptor() ([]byte, []int) { method GetPets (line 412) | func (x *UpdatePetsReq) GetPets() []*Pet { type UpdatePetsResp (line 420) | type UpdatePetsResp struct method Reset (line 426) | func (x *UpdatePetsResp) Reset() { method String (line 435) | func (x *UpdatePetsResp) String() string { method ProtoMessage (line 439) | func (*UpdatePetsResp) ProtoMessage() {} method ProtoReflect (line 441) | func (x *UpdatePetsResp) ProtoReflect() protoreflect.Message { method Descriptor (line 454) | func (*UpdatePetsResp) Descriptor() ([]byte, []int) { type DeletePetsReq (line 459) | type DeletePetsReq struct method Reset (line 468) | func (x *DeletePetsReq) Reset() { method String (line 477) | func (x *DeletePetsReq) String() string { method ProtoMessage (line 481) | func (*DeletePetsReq) ProtoMessage() {} method ProtoReflect (line 483) | func (x *DeletePetsReq) ProtoReflect() protoreflect.Message { method Descriptor (line 496) | func (*DeletePetsReq) Descriptor() ([]byte, []int) { method GetIds (line 500) | func (x *DeletePetsReq) GetIds() []string { type DeletePetsResp (line 508) | type DeletePetsResp struct method Reset (line 514) | func (x *DeletePetsResp) Reset() { method String (line 523) | func (x *DeletePetsResp) String() string { method ProtoMessage (line 527) | func (*DeletePetsResp) ProtoMessage() {} method ProtoReflect (line 529) | func (x *DeletePetsResp) ProtoReflect() protoreflect.Message { method Descriptor (line 542) | func (*DeletePetsResp) Descriptor() ([]byte, []int) { type SearchPetsReq (line 547) | type SearchPetsReq struct method Reset (line 560) | func (x *SearchPetsReq) Reset() { method String (line 569) | func (x *SearchPetsReq) String() string { method ProtoMessage (line 573) | func (*SearchPetsReq) ProtoMessage() {} method ProtoReflect (line 575) | func (x *SearchPetsReq) ProtoReflect() protoreflect.Message { method Descriptor (line 588) | func (*SearchPetsReq) Descriptor() ([]byte, []int) { method GetNames (line 592) | func (x *SearchPetsReq) GetNames() []string { method GetTypes (line 599) | func (x *SearchPetsReq) GetTypes() []PetType { method GetBirthdateRange (line 606) | func (x *SearchPetsReq) GetBirthdateRange() *DateRange { type Sampler (line 613) | type Sampler struct method Reset (line 625) | func (x *Sampler) Reset() { method String (line 634) | func (x *Sampler) String() string { method ProtoMessage (line 638) | func (*Sampler) ProtoMessage() {} method ProtoReflect (line 640) | func (x *Sampler) ProtoReflect() protoreflect.Message { method Descriptor (line 653) | func (*Sampler) Descriptor() ([]byte, []int) { method GetType (line 657) | func (x *Sampler) GetType() SamplerType { method GetFloatValue (line 664) | func (x *Sampler) GetFloatValue() float64 { type ChangeSamplerReq (line 672) | type ChangeSamplerReq struct method Reset (line 680) | func (x *ChangeSamplerReq) Reset() { method String (line 689) | func (x *ChangeSamplerReq) String() string { method ProtoMessage (line 693) | func (*ChangeSamplerReq) ProtoMessage() {} method ProtoReflect (line 695) | func (x *ChangeSamplerReq) ProtoReflect() protoreflect.Message { method Descriptor (line 708) | func (*ChangeSamplerReq) Descriptor() ([]byte, []int) { method GetSampler (line 712) | func (x *ChangeSamplerReq) GetSampler() *Sampler { type ChangeSamplerResp (line 720) | type ChangeSamplerResp struct method Reset (line 726) | func (x *ChangeSamplerResp) Reset() { method String (line 735) | func (x *ChangeSamplerResp) String() string { method ProtoMessage (line 739) | func (*ChangeSamplerResp) ProtoMessage() {} method ProtoReflect (line 741) | func (x *ChangeSamplerResp) ProtoReflect() protoreflect.Message { method Descriptor (line 754) | func (*ChangeSamplerResp) Descriptor() ([]byte, []int) { function file_petstore_proto_rawDescGZIP (line 852) | func file_petstore_proto_rawDescGZIP() []byte { function init (line 906) | func init() { file_petstore_proto_init() } function file_petstore_proto_init (line 907) | func file_petstore_proto_init() { FILE: chapter/14/petstore-operator/client/proto/petstore_grpc.pb.go constant _ (line 15) | _ = grpc.SupportPackageIsVersion7 type PetStoreClient (line 20) | type PetStoreClient interface type petStoreClient (line 33) | type petStoreClient struct method AddPets (line 41) | func (c *petStoreClient) AddPets(ctx context.Context, in *AddPetsReq, ... method UpdatePets (line 50) | func (c *petStoreClient) UpdatePets(ctx context.Context, in *UpdatePet... method DeletePets (line 59) | func (c *petStoreClient) DeletePets(ctx context.Context, in *DeletePet... method SearchPets (line 68) | func (c *petStoreClient) SearchPets(ctx context.Context, in *SearchPet... method ChangeSampler (line 100) | func (c *petStoreClient) ChangeSampler(ctx context.Context, in *Change... function NewPetStoreClient (line 37) | func NewPetStoreClient(cc grpc.ClientConnInterface) PetStoreClient { type PetStore_SearchPetsClient (line 83) | type PetStore_SearchPetsClient interface type petStoreSearchPetsClient (line 88) | type petStoreSearchPetsClient struct method Recv (line 92) | func (x *petStoreSearchPetsClient) Recv() (*Pet, error) { type PetStoreServer (line 112) | type PetStoreServer interface type UnimplementedPetStoreServer (line 127) | type UnimplementedPetStoreServer struct method AddPets (line 130) | func (UnimplementedPetStoreServer) AddPets(context.Context, *AddPetsRe... method UpdatePets (line 133) | func (UnimplementedPetStoreServer) UpdatePets(context.Context, *Update... method DeletePets (line 136) | func (UnimplementedPetStoreServer) DeletePets(context.Context, *Delete... method SearchPets (line 139) | func (UnimplementedPetStoreServer) SearchPets(*SearchPetsReq, PetStore... method ChangeSampler (line 142) | func (UnimplementedPetStoreServer) ChangeSampler(context.Context, *Cha... method mustEmbedUnimplementedPetStoreServer (line 145) | func (UnimplementedPetStoreServer) mustEmbedUnimplementedPetStoreServe... type UnsafePetStoreServer (line 150) | type UnsafePetStoreServer interface function RegisterPetStoreServer (line 154) | func RegisterPetStoreServer(s grpc.ServiceRegistrar, srv PetStoreServer) { function _PetStore_AddPets_Handler (line 158) | func _PetStore_AddPets_Handler(srv interface{}, ctx context.Context, dec... function _PetStore_UpdatePets_Handler (line 176) | func _PetStore_UpdatePets_Handler(srv interface{}, ctx context.Context, ... function _PetStore_DeletePets_Handler (line 194) | func _PetStore_DeletePets_Handler(srv interface{}, ctx context.Context, ... function _PetStore_SearchPets_Handler (line 212) | func _PetStore_SearchPets_Handler(srv interface{}, stream grpc.ServerStr... type PetStore_SearchPetsServer (line 220) | type PetStore_SearchPetsServer interface type petStoreSearchPetsServer (line 225) | type petStoreSearchPetsServer struct method Send (line 229) | func (x *petStoreSearchPetsServer) Send(m *Pet) error { function _PetStore_ChangeSampler_Handler (line 233) | func _PetStore_ChangeSampler_Handler(srv interface{}, ctx context.Contex... FILE: chapter/14/petstore-operator/controllers/pet_controller.go constant PetFinalizer (line 40) | PetFinalizer = "pet.petstore.example.com" type PetReconciler (line 44) | type PetReconciler struct method Reconcile (line 54) | func (r *PetReconciler) Reconcile(ctx context.Context, req ctrl.Reques... method ReconcileNormal (line 90) | func (r *PetReconciler) ReconcileNormal(ctx context.Context, pet *pets... method ReconcileDelete (line 125) | func (r *PetReconciler) ReconcileDelete(ctx context.Context, pet *pets... method SetupWithManager (line 168) | func (r *PetReconciler) SetupWithManager(mgr ctrl.Manager) error { function createPetInStore (line 142) | func createPetInStore(ctx context.Context, pet *petstorev1.Pet, psc *psc... function updatePetInStore (line 157) | func updatePetInStore(ctx context.Context, psc *psclient.Client, pet *pe... function findPetInStore (line 175) | func findPetInStore(ctx context.Context, psc *psclient.Client, pet *pets... function petTypeToProtoPetType (line 200) | func petTypeToProtoPetType(petType petstorev1.PetType) pb.PetType { function timeToPbDate (line 213) | func timeToPbDate(t metav1.Time) *date.Date { function getPetstoreClient (line 221) | func getPetstoreClient() (*psclient.Client, error) { FILE: chapter/14/petstore-operator/controllers/suite_test.go function TestAPIs (line 44) | func TestAPIs(t *testing.T) { FILE: chapter/14/petstore-operator/main.go function init (line 44) | func init() { function main (line 51) | func main() { FILE: chapter/14/workloads/main.go function main (line 24) | func main() { function createNamespace (line 47) | func createNamespace(ctx context.Context, clientSet *kubernetes.Clientse... function deleteNamespace (line 59) | func deleteNamespace(ctx context.Context, clientSet *kubernetes.Clientse... function deployNginx (line 64) | func deployNginx(ctx context.Context, clientSet *kubernetes.Clientset, n... function createNginxDeployment (line 71) | func createNginxDeployment(ctx context.Context, clientSet *kubernetes.Cl... function waitForReadyReplicas (line 111) | func waitForReadyReplicas(ctx context.Context, clientSet *kubernetes.Cli... function getReadyReplicasForDeployment (line 126) | func getReadyReplicasForDeployment(ctx context.Context, clientSet *kuber... function createNginxService (line 133) | func createNginxService(ctx context.Context, clientSet *kubernetes.Clien... function createNginxIngress (line 160) | func createNginxIngress(ctx context.Context, clientSet *kubernetes.Clien... function listenToPodLogs (line 199) | func listenToPodLogs(ctx context.Context, clientSet *kubernetes.Clientse... function listPods (line 218) | func listPods(ctx context.Context, clientSet *kubernetes.Clientset, ns *... function waitForExitSignal (line 230) | func waitForExitSignal() { function getClientSet (line 237) | func getClientSet() *kubernetes.Clientset { function panicIfError (line 256) | func panicIfError(err error) { FILE: chapter/15/cmd/compute/main.go function init (line 16) | func init() { function main (line 20) | func main() { FILE: chapter/15/cmd/storage/main.go function init (line 19) | func init() { function main (line 23) | func main() { function uploadBlobs (line 38) | func uploadBlobs(stack *mgmt.StorageStack) { function printSASUris (line 58) | func printSASUris(stack *mgmt.StorageStack) { FILE: chapter/15/pkg/helpers/helpers.go constant DefaultPollingFreq (line 16) | DefaultPollingFreq = 10 * time.Second type ClientBuilderFunc (line 19) | type ClientBuilderFunc function MustGetenv (line 21) | func MustGetenv(key string) string { function BuildClient (line 29) | func BuildClient[T any](subID string, cred *azidentity.DefaultAzureCrede... function HandleErrPoller (line 33) | func HandleErrPoller[T any](ctx context.Context, poller *armruntime.Poll... function HandleErrWithResult (line 39) | func HandleErrWithResult[T any](result T, err error) T { function HandleErr (line 44) | func HandleErr(err error) { FILE: chapter/15/pkg/mgmt/compute.go type VirtualMachineFactory (line 27) | type VirtualMachineFactory struct method CreateVirtualMachineStack (line 70) | func (vmf *VirtualMachineFactory) CreateVirtualMachineStack(ctx contex... method DestroyVirtualMachineStack (line 88) | func (vmf *VirtualMachineFactory) DestroyVirtualMachineStack(ctx conte... method createResourceGroup (line 94) | func (vmf *VirtualMachineFactory) createResourceGroup(ctx context.Cont... method createVirtualNetwork (line 106) | func (vmf *VirtualMachineFactory) createVirtualNetwork(ctx context.Con... method createSecurityGroup (line 134) | func (vmf *VirtualMachineFactory) createSecurityGroup(ctx context.Cont... method createVirtualMachine (line 166) | func (vmf *VirtualMachineFactory) createVirtualMachine(ctx context.Con... method getFirstNetworkInterface (line 177) | func (vmf *VirtualMachineFactory) getFirstNetworkInterface(ctx context... method getPublicIPAddress (line 186) | func (vmf *VirtualMachineFactory) getPublicIPAddress(ctx context.Conte... function NewVirtualMachineFactory (line 41) | func NewVirtualMachineFactory(subscriptionID, sshPubKeyPath string) *Vir... type VirtualMachineStack (line 57) | type VirtualMachineStack struct function linuxVM (line 194) | func linuxVM(vmStack *VirtualMachineStack) armcompute.VirtualMachine { function networkProfile (line 217) | func networkProfile(vmStack *VirtualMachineStack) *armcompute.NetworkPro... function linuxOSProfile (line 251) | func linuxOSProfile(vmStack *VirtualMachineStack) *armcompute.OSProfile { FILE: chapter/15/pkg/mgmt/storage.go type StorageStack (line 18) | type StorageStack struct method ServiceClient (line 98) | func (ss *StorageStack) ServiceClient() *azblob.ServiceClient { type StorageFactory (line 27) | type StorageFactory struct method CreateStorageStack (line 45) | func (sf *StorageFactory) CreateStorageStack(ctx context.Context, loca... method DestroyStorageStack (line 55) | func (sf *StorageFactory) DestroyStorageStack(ctx context.Context, sta... method createResourceGroup (line 61) | func (sf *StorageFactory) createResourceGroup(ctx context.Context, nam... method createStorageAccount (line 73) | func (sf *StorageFactory) createStorageAccount(ctx context.Context, na... method getPrimaryAccountKey (line 91) | func (sf *StorageFactory) getPrimaryAccountKey(ctx context.Context, st... function NewStorageFactory (line 35) | func NewStorageFactory(subscriptionID string) *StorageFactory { FILE: chapter/16/workflow/client/client.go type Workflow (line 35) | type Workflow struct method Submit (line 80) | func (w *Workflow) Submit(ctx context.Context, req *pb.WorkReq) (strin... method Exec (line 94) | func (w *Workflow) Exec(ctx context.Context, id string) error { method Status (line 108) | func (w *Workflow) Status(ctx context.Context, id string) (*pb.StatusR... method call (line 127) | func (w *Workflow) call(ctx context.Context, req proto.Message, call g... function New (line 44) | func New(addr string) (*Workflow, error) { function isFatal (line 191) | func isFatal(err error) bool { FILE: chapter/16/workflow/data/generators/mk/mk.go type site (line 8) | type site struct type machine (line 14) | type machine struct function main (line 19) | func main() { FILE: chapter/16/workflow/data/packages/sites/sites.go function Init (line 28) | func Init(loc string) { type Site (line 37) | type Site struct method Validate (line 49) | func (s Site) Validate() error { type Machine (line 67) | type Machine struct method FullName (line 75) | func (m Machine) FullName() string { method Validate (line 80) | func (m Machine) Validate() error { type SiteData (line 91) | type SiteData struct function newSiteData (line 99) | func newSiteData(dir string) (SiteData, error) { FILE: chapter/16/workflow/internal/es/es.go function init (line 34) | func init() { type Status (line 43) | type Status constant Unknown (line 47) | Unknown Status = "" constant Go (line 49) | Go Status = "go" constant Stop (line 52) | Stop Status = "stop" type Info (line 56) | type Info struct method validate (line 63) | func (i Info) validate() error { type Reader (line 78) | type Reader struct method Subscribe (line 106) | func (r *Reader) Subscribe(name string) (chan Status, Cancel) { method Status (line 144) | func (r *Reader) Status(name string) Status { method loop (line 156) | func (r *Reader) loop() { method sendStop (line 185) | func (r *Reader) sendStop(name string) { method load (line 212) | func (r *Reader) load() (map[string]Info, error) { function newReader (line 85) | func newReader() (*Reader, error) { type Cancel (line 99) | type Cancel FILE: chapter/16/workflow/internal/policy/config/config.go function Init (line 44) | func Init() { type Config (line 53) | type Config struct method validate (line 68) | func (c Config) validate() error { function newConfig (line 62) | func newConfig() Config { type Workflow (line 79) | type Workflow struct method validate (line 86) | func (w Workflow) validate() error { type Policy (line 102) | type Policy struct method validate (line 112) | func (p *Policy) validate() error { type Reader (line 155) | type Reader struct method Read (line 163) | func (r *Reader) Read() (Config, error) { method update (line 168) | func (r *Reader) update() { method load (line 178) | func (r *Reader) load() error { function newReader (line 212) | func newReader(loc string) (*Reader, error) { FILE: chapter/16/workflow/internal/policy/policy.go type registration (line 22) | type registration struct type Settings (line 29) | type Settings interface function Register (line 36) | func Register(name string, p Policy, s Settings) { function GetSettings (line 59) | func GetSettings(name string) (Settings, error) { type Policy (line 68) | type Policy interface type PolicyArgs (line 75) | type PolicyArgs struct function Run (line 83) | func Run(ctx context.Context, req *pb.WorkReq, args ...PolicyArgs) error { FILE: chapter/16/workflow/internal/policy/register/restrictjobtypes/restrictjobtypes.go function init (line 17) | func init() { type Settings (line 26) | type Settings struct method Validate (line 31) | func (s Settings) Validate() error { method allowed (line 41) | func (s Settings) allowed(name string) bool { type Policy (line 51) | type Policy struct method Run (line 59) | func (p Policy) Run(ctx context.Context, req *pb.WorkReq, settings pol... function New (line 54) | func New() (Policy, error) { FILE: chapter/16/workflow/internal/policy/register/sameargs/sameargs.go function init (line 19) | func init() { type ArgKeys (line 28) | type ArgKeys type Settings (line 31) | type Settings struct method Validate (line 38) | func (s Settings) Validate() error { method checkJob (line 48) | func (s Settings) checkJob(name string) bool { method needKey (line 55) | func (s Settings) needKey(name string, k string) bool { type sameCheck (line 70) | type sameCheck method isSame (line 74) | func (s sameCheck) isSame(name, k, v string) bool { type Policy (line 93) | type Policy struct method Run (line 101) | func (p Policy) Run(ctx context.Context, req *pb.WorkReq, settings pol... method argSame (line 125) | func (p Policy) argSame(settings Settings, job *pb.Job, same sameCheck... function New (line 96) | func New() (Policy, error) { FILE: chapter/16/workflow/internal/policy/register/startorend/startOrEnd.go function init (line 19) | func init() { type Settings (line 28) | type Settings struct method Validate (line 44) | func (s Settings) Validate() error { method compile (line 64) | func (s Settings) compile() Settings { type Policy (line 73) | type Policy struct method Run (line 82) | func (p Policy) Run(ctx context.Context, req *pb.WorkReq, settings pol... method eachWorkReq (line 91) | func (p Policy) eachWorkReq(ctx context.Context, req *pb.WorkReq, s Se... method startOfBlock (line 108) | func (p Policy) startOfBlock(ctx context.Context, block []*pb.Job, s S... method endOfBlock (line 121) | func (p Policy) endOfBlock(ctx context.Context, block []*pb.Job, s Set... method mustHave (line 135) | func (p Policy) mustHave(ctx context.Context, job *pb.Job, s Settings)... function New (line 77) | func New() (Policy, error) { FILE: chapter/16/workflow/internal/service/executor/executor.go type Work (line 37) | type Work struct method Run (line 55) | func (w *Work) Run(ctx context.Context) chan *pb.StatusResp { method setWorkStatus (line 115) | func (w *Work) setWorkStatus(status pb.Status, esStopped bool) { method setBlockStatus (line 123) | func (w *Work) setBlockStatus(block *pb.BlockStatus, status pb.Status) { method setJobStatus (line 130) | func (w *Work) setJobStatus(job *pb.JobStatus, status pb.Status, err s... method sendStatus (line 140) | func (w *Work) sendStatus(status *pb.StatusResp) { method runJobs (line 157) | func (w *Work) runJobs(ctx context.Context, block *pb.Block, blockStat... function New (line 46) | func New(req *pb.WorkReq, status *pb.StatusResp) *Work { function Validate (line 225) | func Validate(ctx context.Context, req *pb.WorkReq) error { FILE: chapter/16/workflow/internal/service/jobs/jobs.go function Register (line 29) | func Register(name string, job Job) { function GetJob (line 42) | func GetJob(name string) (Job, error) { type FatalErr (line 51) | type FatalErr struct method Is (line 66) | func (f FatalErr) Is(target error) bool { method Error (line 75) | func (f FatalErr) Error() string { method Unwrap (line 83) | func (f FatalErr) Unwrap() error { function Fatalf (line 56) | func Fatalf(msg string, a ...interface{}) FatalErr { function IsFatal (line 61) | func IsFatal(err error) bool { type Job (line 88) | type Job interface FILE: chapter/16/workflow/internal/service/jobs/register/diskerase/diskerase.go function init (line 25) | func init() { type args (line 29) | type args struct method validate (line 34) | func (a *args) validate(args map[string]string) error { type Job (line 73) | type Job struct method Validate (line 82) | func (j *Job) Validate(job *pb.Job) error { method Run (line 92) | func (j *Job) Run(ctx context.Context, job *pb.Job) error { function newJob (line 77) | func newJob() *Job { FILE: chapter/16/workflow/internal/service/jobs/register/sleep/sleep.go function init (line 26) | func init() { type args (line 30) | type args struct method validate (line 34) | func (a *args) validate(args map[string]string) error { type Job (line 65) | type Job struct method Validate (line 75) | func (j *Job) Validate(job *pb.Job) error { method Run (line 85) | func (j *Job) Run(ctx context.Context, job *pb.Job) error { function newJob (line 70) | func newJob() *Job { FILE: chapter/16/workflow/internal/service/jobs/register/tokenbucket/tokenbucket.go function init (line 28) | func init() { type args (line 38) | type args struct method validate (line 43) | func (a *args) validate(args map[string]string) error { type Job (line 82) | type Job struct method Validate (line 92) | func (j *Job) Validate(job *pb.Job) error { method Run (line 102) | func (j *Job) Run(ctx context.Context, job *pb.Job) error { function newJob (line 87) | func newJob() *Job { FILE: chapter/16/workflow/internal/service/jobs/register/validatedecom/validatedecom.go function init (line 24) | func init() { type args (line 28) | type args struct method validate (line 33) | func (a *args) validate(args map[string]string) error { type Job (line 76) | type Job struct method Validate (line 86) | func (j *Job) Validate(job *pb.Job) error { method Run (line 96) | func (j *Job) Run(ctx context.Context, job *pb.Job) error { function newJob (line 81) | func newJob(sites map[string]sites.Site) *Job { FILE: chapter/16/workflow/internal/service/service.go type active (line 26) | type active struct type Workflow (line 32) | type Workflow struct method Submit (line 70) | func (w *Workflow) Submit(ctx context.Context, req *pb.WorkReq) (*pb.W... method Exec (line 135) | func (w *Workflow) Exec(ctx context.Context, req *pb.ExecReq) (*pb.Exe... method Status (line 235) | func (w *Workflow) Status(ctx context.Context, req *pb.StatusReq) (*pb... function New (line 46) | func New(storageDir string) (*Workflow, error) { function statusFromWork (line 263) | func statusFromWork(req *pb.WorkReq) *pb.StatusResp { function statusWriter (line 285) | func statusWriter(p string) (in chan *pb.StatusResp) { FILE: chapter/16/workflow/internal/token/token.go type Bucket (line 12) | type Bucket struct method Close (line 55) | func (b *Bucket) Close() { method Token (line 62) | func (b *Bucket) Token(ctx context.Context) error { function New (line 22) | func New(size, incr int, interval time.Duration) (*Bucket, error) { FILE: chapter/16/workflow/proto/custom.go method CLISummary (line 15) | func (x *StatusResp) CLISummary(id string) string { method writeOthers (line 41) | func (x *StatusResp) writeOthers(buff *strings.Builder, blocks []*BlockS... method findRunning (line 57) | func (x *StatusResp) findRunning(blocks []*BlockStatus) (int, *BlockStat... method writeRunning (line 66) | func (x *StatusResp) writeRunning(buff *strings.Builder, block *BlockSta... FILE: chapter/16/workflow/proto/diskerase.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type Status (line 25) | type Status method Enum (line 59) | func (x Status) Enum() *Status { method String (line 65) | func (x Status) String() string { method Descriptor (line 69) | func (Status) Descriptor() protoreflect.EnumDescriptor { method Type (line 73) | func (Status) Type() protoreflect.EnumType { method Number (line 77) | func (x Status) Number() protoreflect.EnumNumber { method EnumDescriptor (line 82) | func (Status) EnumDescriptor() ([]byte, []int) { constant Status_StatusUnknown (line 30) | Status_StatusUnknown Status = 0 constant Status_StatusNotStarted (line 32) | Status_StatusNotStarted Status = 1 constant Status_StatusRunning (line 34) | Status_StatusRunning Status = 2 constant Status_StatusFailed (line 36) | Status_StatusFailed Status = 3 constant Status_StatusCompleted (line 38) | Status_StatusCompleted Status = 4 type WorkReq (line 87) | type WorkReq struct method Reset (line 103) | func (x *WorkReq) Reset() { method String (line 112) | func (x *WorkReq) String() string { method ProtoMessage (line 116) | func (*WorkReq) ProtoMessage() {} method ProtoReflect (line 118) | func (x *WorkReq) ProtoReflect() protoreflect.Message { method Descriptor (line 131) | func (*WorkReq) Descriptor() ([]byte, []int) { method GetName (line 135) | func (x *WorkReq) GetName() string { method GetDesc (line 142) | func (x *WorkReq) GetDesc() string { method GetBlocks (line 149) | func (x *WorkReq) GetBlocks() []*Block { type WorkResp (line 157) | type WorkResp struct method Reset (line 166) | func (x *WorkResp) Reset() { method String (line 175) | func (x *WorkResp) String() string { method ProtoMessage (line 179) | func (*WorkResp) ProtoMessage() {} method ProtoReflect (line 181) | func (x *WorkResp) ProtoReflect() protoreflect.Message { method Descriptor (line 194) | func (*WorkResp) Descriptor() ([]byte, []int) { method GetId (line 198) | func (x *WorkResp) GetId() string { type Block (line 207) | type Block struct method Reset (line 220) | func (x *Block) Reset() { method String (line 229) | func (x *Block) String() string { method ProtoMessage (line 233) | func (*Block) ProtoMessage() {} method ProtoReflect (line 235) | func (x *Block) ProtoReflect() protoreflect.Message { method Descriptor (line 248) | func (*Block) Descriptor() ([]byte, []int) { method GetDesc (line 252) | func (x *Block) GetDesc() string { method GetRateLimit (line 259) | func (x *Block) GetRateLimit() int32 { method GetJobs (line 266) | func (x *Block) GetJobs() []*Job { type Job (line 274) | type Job struct method Reset (line 291) | func (x *Job) Reset() { method String (line 300) | func (x *Job) String() string { method ProtoMessage (line 304) | func (*Job) ProtoMessage() {} method ProtoReflect (line 306) | func (x *Job) ProtoReflect() protoreflect.Message { method Descriptor (line 319) | func (*Job) Descriptor() ([]byte, []int) { method GetName (line 323) | func (x *Job) GetName() string { method GetDesc (line 330) | func (x *Job) GetDesc() string { method GetArgs (line 337) | func (x *Job) GetArgs() map[string]string { type ExecReq (line 346) | type ExecReq struct method Reset (line 356) | func (x *ExecReq) Reset() { method String (line 365) | func (x *ExecReq) String() string { method ProtoMessage (line 369) | func (*ExecReq) ProtoMessage() {} method ProtoReflect (line 371) | func (x *ExecReq) ProtoReflect() protoreflect.Message { method Descriptor (line 384) | func (*ExecReq) Descriptor() ([]byte, []int) { method GetId (line 388) | func (x *ExecReq) GetId() string { type ExecResp (line 396) | type ExecResp struct method Reset (line 402) | func (x *ExecResp) Reset() { method String (line 411) | func (x *ExecResp) String() string { method ProtoMessage (line 415) | func (*ExecResp) ProtoMessage() {} method ProtoReflect (line 417) | func (x *ExecResp) ProtoReflect() protoreflect.Message { method Descriptor (line 430) | func (*ExecResp) Descriptor() ([]byte, []int) { type StatusReq (line 435) | type StatusReq struct method Reset (line 444) | func (x *StatusReq) Reset() { method String (line 453) | func (x *StatusReq) String() string { method ProtoMessage (line 457) | func (*StatusReq) ProtoMessage() {} method ProtoReflect (line 459) | func (x *StatusReq) ProtoReflect() protoreflect.Message { method Descriptor (line 472) | func (*StatusReq) Descriptor() ([]byte, []int) { method GetId (line 476) | func (x *StatusReq) GetId() string { type StatusResp (line 484) | type StatusResp struct method Reset (line 504) | func (x *StatusResp) Reset() { method String (line 513) | func (x *StatusResp) String() string { method ProtoMessage (line 517) | func (*StatusResp) ProtoMessage() {} method ProtoReflect (line 519) | func (x *StatusResp) ProtoReflect() protoreflect.Message { method Descriptor (line 532) | func (*StatusResp) Descriptor() ([]byte, []int) { method GetName (line 536) | func (x *StatusResp) GetName() string { method GetDesc (line 543) | func (x *StatusResp) GetDesc() string { method GetStatus (line 550) | func (x *StatusResp) GetStatus() Status { method GetBlocks (line 557) | func (x *StatusResp) GetBlocks() []*BlockStatus { method GetHadErrors (line 564) | func (x *StatusResp) GetHadErrors() bool { method GetWasEsStopped (line 571) | func (x *StatusResp) GetWasEsStopped() bool { type BlockStatus (line 579) | type BlockStatus struct method Reset (line 594) | func (x *BlockStatus) Reset() { method String (line 603) | func (x *BlockStatus) String() string { method ProtoMessage (line 607) | func (*BlockStatus) ProtoMessage() {} method ProtoReflect (line 609) | func (x *BlockStatus) ProtoReflect() protoreflect.Message { method Descriptor (line 622) | func (*BlockStatus) Descriptor() ([]byte, []int) { method GetDesc (line 626) | func (x *BlockStatus) GetDesc() string { method GetStatus (line 633) | func (x *BlockStatus) GetStatus() Status { method GetHasError (line 640) | func (x *BlockStatus) GetHasError() bool { method GetJobs (line 647) | func (x *BlockStatus) GetJobs() []*JobStatus { type JobStatus (line 655) | type JobStatus struct method Reset (line 672) | func (x *JobStatus) Reset() { method String (line 681) | func (x *JobStatus) String() string { method ProtoMessage (line 685) | func (*JobStatus) ProtoMessage() {} method ProtoReflect (line 687) | func (x *JobStatus) ProtoReflect() protoreflect.Message { method Descriptor (line 700) | func (*JobStatus) Descriptor() ([]byte, []int) { method GetName (line 704) | func (x *JobStatus) GetName() string { method GetDesc (line 711) | func (x *JobStatus) GetDesc() string { method GetArgs (line 718) | func (x *JobStatus) GetArgs() map[string]string { method GetStatus (line 725) | func (x *JobStatus) GetStatus() Status { method GetError (line 732) | func (x *JobStatus) GetError() string { function file_diskerase_proto_rawDescGZIP (line 839) | func file_diskerase_proto_rawDescGZIP() []byte { function init (line 886) | func init() { file_diskerase_proto_init() } function file_diskerase_proto_init (line 887) | func file_diskerase_proto_init() { FILE: chapter/16/workflow/proto/diskerase_grpc.pb.go constant _ (line 16) | _ = grpc.SupportPackageIsVersion7 type WorkflowClient (line 21) | type WorkflowClient interface type workflowClient (line 31) | type workflowClient struct method Submit (line 39) | func (c *workflowClient) Submit(ctx context.Context, in *WorkReq, opts... method Exec (line 48) | func (c *workflowClient) Exec(ctx context.Context, in *ExecReq, opts .... method Status (line 57) | func (c *workflowClient) Status(ctx context.Context, in *StatusReq, op... function NewWorkflowClient (line 35) | func NewWorkflowClient(cc grpc.ClientConnInterface) WorkflowClient { type WorkflowServer (line 69) | type WorkflowServer interface type UnimplementedWorkflowServer (line 81) | type UnimplementedWorkflowServer struct method Submit (line 84) | func (UnimplementedWorkflowServer) Submit(context.Context, *WorkReq) (... method Exec (line 87) | func (UnimplementedWorkflowServer) Exec(context.Context, *ExecReq) (*E... method Status (line 90) | func (UnimplementedWorkflowServer) Status(context.Context, *StatusReq)... method mustEmbedUnimplementedWorkflowServer (line 93) | func (UnimplementedWorkflowServer) mustEmbedUnimplementedWorkflowServe... type UnsafeWorkflowServer (line 98) | type UnsafeWorkflowServer interface function RegisterWorkflowServer (line 102) | func RegisterWorkflowServer(s grpc.ServiceRegistrar, srv WorkflowServer) { function _Workflow_Submit_Handler (line 106) | func _Workflow_Submit_Handler(srv interface{}, ctx context.Context, dec ... function _Workflow_Exec_Handler (line 124) | func _Workflow_Exec_Handler(srv interface{}, ctx context.Context, dec fu... function _Workflow_Status_Handler (line 142) | func _Workflow_Status_Handler(srv interface{}, ctx context.Context, dec ... FILE: chapter/16/workflow/samples/diskerase/cmd/eraseSatellite.go constant submitLog (line 40) | submitLog = "submit.log" function init (line 114) | func init() { function generateWork (line 121) | func generateWork(sat string) (*pb.WorkReq, error) { function getBlockDesc (line 222) | func getBlockDesc(block *pb.Block) string { FILE: chapter/16/workflow/samples/diskerase/cmd/protoStatus.go function init (line 66) | func init() { function monitorProto (line 72) | func monitorProto(ctx context.Context, c *client.Workflow, id string) er... FILE: chapter/16/workflow/samples/diskerase/cmd/root.go function Execute (line 46) | func Execute() { function init (line 50) | func init() { function initConfig (line 66) | func initConfig() { FILE: chapter/16/workflow/samples/diskerase/cmd/status.go function init (line 65) | func init() { function monitor (line 71) | func monitor(ctx context.Context, c *client.Workflow, id string) error { FILE: chapter/16/workflow/samples/diskerase/diskerase.go function main (line 29) | func main() { FILE: chapter/16/workflow/workflow.go constant dirMode (line 37) | dirMode = os.ModeDir | 0700 function main (line 39) | func main() { FILE: chapter/5/excel/simple/excel.go function main (line 9) | func main() { function mustParse (line 33) | func mustParse(s string) time.Time { FILE: chapter/5/excel/visualization/excel.go type CPUVendor (line 16) | type CPUVendor constant UnknownCPUVendor (line 19) | UnknownCPUVendor CPUVendor = "Unknown" constant Intel (line 20) | Intel CPUVendor = "Intel" constant AMD (line 21) | AMD CPUVendor = "AMD" function main (line 29) | func main() { type summaries (line 43) | type summaries struct type cpuVendorSum (line 47) | type cpuVendorSum struct type serverSheet (line 51) | type serverSheet struct method add (line 75) | func (s *serverSheet) add(name string, gen int, acquisition time.Time,... method render (line 110) | func (s *serverSheet) render() error { method writeSummaries (line 120) | func (s *serverSheet) writeSummaries() { method createCPUChart (line 131) | func (s *serverSheet) createCPUChart() error { function newServerSheet (line 59) | func newServerSheet() (*serverSheet, error) { function mustParse (line 177) | func mustParse(s string) time.Time { FILE: chapter/5/excel/visualization/internal/chart/chart.go function New (line 4) | func New() *FormatChart { type FormatChartAxis (line 31) | type FormatChartAxis struct type FormatChartDimension (line 54) | type FormatChartDimension struct type FormatChart (line 59) | type FormatChart struct type FormatChartLegend (line 108) | type FormatChartLegend struct type FormatChartSeries (line 119) | type FormatChartSeries struct type FormatChartTitle (line 143) | type FormatChartTitle struct type FormatLayout (line 151) | type FormatLayout struct type FormatPicture (line 159) | type FormatPicture struct type FormatShape (line 173) | type FormatShape struct type FormatShapeParagraph (line 184) | type FormatShapeParagraph struct type FormatShapeColor (line 190) | type FormatShapeColor struct type FormatFont (line 197) | type FormatFont struct type FormatStyle (line 207) | type FormatStyle struct FILE: chapter/6/grpc/client/bin/qotd.go function main (line 16) | func main() { FILE: chapter/6/grpc/client/client.go type Client (line 13) | type Client struct method QOTD (line 33) | func (c *Client) QOTD(ctx context.Context, wantAuthor string) (author,... function New (line 19) | func New(addr string) (*Client, error) { FILE: chapter/6/grpc/proto/qotd.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type GetReq (line 23) | type GetReq struct method Reset (line 31) | func (x *GetReq) Reset() { method String (line 40) | func (x *GetReq) String() string { method ProtoMessage (line 44) | func (*GetReq) ProtoMessage() {} method ProtoReflect (line 46) | func (x *GetReq) ProtoReflect() protoreflect.Message { method Descriptor (line 59) | func (*GetReq) Descriptor() ([]byte, []int) { method GetAuthor (line 63) | func (x *GetReq) GetAuthor() string { type GetResp (line 70) | type GetResp struct method Reset (line 79) | func (x *GetResp) Reset() { method String (line 88) | func (x *GetResp) String() string { method ProtoMessage (line 92) | func (*GetResp) ProtoMessage() {} method ProtoReflect (line 94) | func (x *GetResp) ProtoReflect() protoreflect.Message { method Descriptor (line 107) | func (*GetResp) Descriptor() ([]byte, []int) { method GetAuthor (line 111) | func (x *GetResp) GetAuthor() string { method GetQuote (line 118) | func (x *GetResp) GetQuote() string { function file_qotd_proto_rawDescGZIP (line 148) | func file_qotd_proto_rawDescGZIP() []byte { function init (line 170) | func init() { file_qotd_proto_init() } function file_qotd_proto_init (line 171) | func file_qotd_proto_init() { FILE: chapter/6/grpc/proto/qotd_grpc.pb.go constant _ (line 15) | _ = grpc.SupportPackageIsVersion7 type QOTDClient (line 20) | type QOTDClient interface type qOTDClient (line 24) | type qOTDClient struct method GetQOTD (line 32) | func (c *qOTDClient) GetQOTD(ctx context.Context, in *GetReq, opts ...... function NewQOTDClient (line 28) | func NewQOTDClient(cc grpc.ClientConnInterface) QOTDClient { type QOTDServer (line 44) | type QOTDServer interface type UnimplementedQOTDServer (line 50) | type UnimplementedQOTDServer struct method GetQOTD (line 53) | func (UnimplementedQOTDServer) GetQOTD(context.Context, *GetReq) (*Get... method mustEmbedUnimplementedQOTDServer (line 56) | func (UnimplementedQOTDServer) mustEmbedUnimplementedQOTDServer() {} type UnsafeQOTDServer (line 61) | type UnsafeQOTDServer interface function RegisterQOTDServer (line 65) | func RegisterQOTDServer(s grpc.ServiceRegistrar, srv QOTDServer) { function _QOTD_GetQOTD_Handler (line 69) | func _QOTD_GetQOTD_Handler(srv interface{}, ctx context.Context, dec fun... FILE: chapter/6/grpc/qotd.go function main (line 12) | func main() { FILE: chapter/6/grpc/server/server.go type API (line 17) | type API struct method Start (line 53) | func (a *API) Start() error { method Stop (line 65) | func (a *API) Stop() { method GetQOTD (line 72) | func (a *API) GetQOTD(ctx context.Context, req *pb.GetReq) (*pb.GetRes... function New (line 27) | func New(addr string) (*API, error) { FILE: chapter/7/cobra/app/cmd/get.go function mustString (line 95) | func mustString(fs *pflag.FlagSet, name string) string { function mustBool (line 103) | func mustBool(fs *pflag.FlagSet, name string) bool { function init (line 111) | func init() { FILE: chapter/7/cobra/app/cmd/root.go function Execute (line 52) | func Execute(ctx context.Context) { function init (line 56) | func init() { function initConfig (line 71) | func initConfig() { FILE: chapter/7/cobra/app/main.go function main (line 30) | func main() { FILE: chapter/7/filter_errors/main.go function main (line 13) | func main() { FILE: chapter/7/signals/main.go function main (line 16) | func main() { function createFiles (line 55) | func createFiles(ctx context.Context, tmpFiles string) { type signaling (line 69) | type signaling struct method register (line 85) | func (s signaling) register(f func(), sigs ...os.Signal) { method handle (line 95) | func (s signaling) handle() { function newSignaling (line 76) | func newSignaling() (sig signaling, stop context.CancelFunc) { function cleanup (line 111) | func cleanup(cancel context.CancelFunc, wg *sync.WaitGroup, tmpFiles str... FILE: chapter/8/agent/agent.go function main (line 20) | func main() { FILE: chapter/8/agent/client/cli/cmd/auth.go function agentAuth (line 11) | func agentAuth() (ssh.AuthMethod, error) { function publicKey (line 21) | func publicKey(privateKeyFile string) (ssh.AuthMethod, error) { function getAuthFromFlags (line 35) | func getAuthFromFlags() (ssh.AuthMethod, error) { FILE: chapter/8/agent/client/cli/cmd/install.go function init (line 92) | func init() { FILE: chapter/8/agent/client/cli/cmd/remove.go function init (line 71) | func init() { FILE: chapter/8/agent/client/cli/cmd/root.go function Execute (line 56) | func Execute() { function init (line 60) | func init() { function initConfig (line 77) | func initConfig() { FILE: chapter/8/agent/client/cli/main.go function main (line 26) | func main() { FILE: chapter/8/agent/client/cli/sample/helloweb/helloweb.go function main (line 12) | func main() { FILE: chapter/8/agent/client/client.go type Client (line 24) | type Client struct method Close (line 71) | func (c *Client) Close() error { method Install (line 77) | func (c *Client) Install(ctx context.Context, req *pb.InstallReq) (*pb... method Remove (line 81) | func (c *Client) Remove(ctx context.Context, req *pb.RemoveReq) (*pb.R... function New (line 36) | func New(endpoint string, auth []ssh.AuthMethod) (*Client, error) { FILE: chapter/8/agent/internal/service/service.go constant pkgDir (line 36) | pkgDir = "sa/packages/" constant serviceExt (line 37) | serviceExt = ".service" type Agent (line 42) | type Agent struct method Start (line 74) | func (a *Agent) Start() error { method Install (line 99) | func (a *Agent) Install(ctx context.Context, req *pb.InstallReq) (*pb.... method Remove (line 122) | func (a *Agent) Remove(ctx context.Context, req *pb.RemoveReq) (*pb.Re... method lock (line 137) | func (a *Agent) lock(name string) { method unlock (line 150) | func (a *Agent) unlock(name string, del bool) { method unpack (line 164) | func (a *Agent) unpack(name string, zipFile []byte) (string, error) { method writeFile (line 185) | func (a *Agent) writeFile(z *zip.File, dir string) error { method migrate (line 219) | func (a *Agent) migrate(req *pb.InstallReq, loc string) error { method startProgram (line 249) | func (a *Agent) startProgram(ctx context.Context, name string) error { method stopProgram (line 284) | func (a *Agent) stopProgram(ctx context.Context, name string) error { method collectCPU (line 299) | func (a *Agent) collectCPU(resolution int32) error { method collectMem (line 324) | func (a *Agent) collectMem(resolution int32) error { method perfLoop (line 344) | func (a *Agent) perfLoop() error { function New (line 56) | func New() (*Agent, error) { FILE: chapter/8/agent/internal/service/unit_file.go function init (line 21) | func init() { type unitArgs (line 60) | type unitArgs struct function writeUnitFile (line 69) | func writeUnitFile(dbusConn *dbus.Conn, user string, req *pb.InstallReq)... function rmUnitFile (line 98) | func rmUnitFile(dbusConn *dbus.Conn, user string, req *pb.RemoveReq) err... FILE: chapter/8/agent/proto/agent.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type InstallReq (line 23) | type InstallReq struct method Reset (line 34) | func (x *InstallReq) Reset() { method String (line 43) | func (x *InstallReq) String() string { method ProtoMessage (line 47) | func (*InstallReq) ProtoMessage() {} method ProtoReflect (line 49) | func (x *InstallReq) ProtoReflect() protoreflect.Message { method Descriptor (line 62) | func (*InstallReq) Descriptor() ([]byte, []int) { method GetName (line 66) | func (x *InstallReq) GetName() string { method GetPackage (line 73) | func (x *InstallReq) GetPackage() []byte { method GetBinary (line 80) | func (x *InstallReq) GetBinary() string { method GetArgs (line 87) | func (x *InstallReq) GetArgs() []string { type InstallResp (line 94) | type InstallResp struct method Reset (line 100) | func (x *InstallResp) Reset() { method String (line 109) | func (x *InstallResp) String() string { method ProtoMessage (line 113) | func (*InstallResp) ProtoMessage() {} method ProtoReflect (line 115) | func (x *InstallResp) ProtoReflect() protoreflect.Message { method Descriptor (line 128) | func (*InstallResp) Descriptor() ([]byte, []int) { type RemoveReq (line 132) | type RemoveReq struct method Reset (line 140) | func (x *RemoveReq) Reset() { method String (line 149) | func (x *RemoveReq) String() string { method ProtoMessage (line 153) | func (*RemoveReq) ProtoMessage() {} method ProtoReflect (line 155) | func (x *RemoveReq) ProtoReflect() protoreflect.Message { method Descriptor (line 168) | func (*RemoveReq) Descriptor() ([]byte, []int) { method GetName (line 172) | func (x *RemoveReq) GetName() string { type RemoveResp (line 179) | type RemoveResp struct method Reset (line 185) | func (x *RemoveResp) Reset() { method String (line 194) | func (x *RemoveResp) String() string { method ProtoMessage (line 198) | func (*RemoveResp) ProtoMessage() {} method ProtoReflect (line 200) | func (x *RemoveResp) ProtoReflect() protoreflect.Message { method Descriptor (line 213) | func (*RemoveResp) Descriptor() ([]byte, []int) { type CPUPerfs (line 217) | type CPUPerfs struct method Reset (line 227) | func (x *CPUPerfs) Reset() { method String (line 236) | func (x *CPUPerfs) String() string { method ProtoMessage (line 240) | func (*CPUPerfs) ProtoMessage() {} method ProtoReflect (line 242) | func (x *CPUPerfs) ProtoReflect() protoreflect.Message { method Descriptor (line 255) | func (*CPUPerfs) Descriptor() ([]byte, []int) { method GetResolutionSecs (line 259) | func (x *CPUPerfs) GetResolutionSecs() int32 { method GetUnixTimeNano (line 266) | func (x *CPUPerfs) GetUnixTimeNano() int64 { method GetCpu (line 273) | func (x *CPUPerfs) GetCpu() []*CPUPerf { type CPUPerf (line 280) | type CPUPerf struct method Reset (line 293) | func (x *CPUPerf) Reset() { method String (line 302) | func (x *CPUPerf) String() string { method ProtoMessage (line 306) | func (*CPUPerf) ProtoMessage() {} method ProtoReflect (line 308) | func (x *CPUPerf) ProtoReflect() protoreflect.Message { method Descriptor (line 321) | func (*CPUPerf) Descriptor() ([]byte, []int) { method GetId (line 325) | func (x *CPUPerf) GetId() string { method GetUser (line 332) | func (x *CPUPerf) GetUser() int32 { method GetSystem (line 339) | func (x *CPUPerf) GetSystem() int32 { method GetIdle (line 346) | func (x *CPUPerf) GetIdle() int32 { method GetIoWait (line 353) | func (x *CPUPerf) GetIoWait() int32 { method GetIrq (line 360) | func (x *CPUPerf) GetIrq() int32 { type MemPerf (line 367) | type MemPerf struct method Reset (line 379) | func (x *MemPerf) Reset() { method String (line 388) | func (x *MemPerf) String() string { method ProtoMessage (line 392) | func (*MemPerf) ProtoMessage() {} method ProtoReflect (line 394) | func (x *MemPerf) ProtoReflect() protoreflect.Message { method Descriptor (line 407) | func (*MemPerf) Descriptor() ([]byte, []int) { method GetResolutionSecs (line 411) | func (x *MemPerf) GetResolutionSecs() int32 { method GetUnixTimeNano (line 418) | func (x *MemPerf) GetUnixTimeNano() int64 { method GetTotal (line 425) | func (x *MemPerf) GetTotal() int32 { method GetFree (line 432) | func (x *MemPerf) GetFree() int32 { method GetAvail (line 439) | func (x *MemPerf) GetAvail() int32 { function file_agent_proto_rawDescGZIP (line 509) | func file_agent_proto_rawDescGZIP() []byte { function init (line 539) | func init() { file_agent_proto_init() } function file_agent_proto_init (line 540) | func file_agent_proto_init() { FILE: chapter/8/agent/proto/agent_grpc.pb.go constant _ (line 15) | _ = grpc.SupportPackageIsVersion7 type AgentClient (line 20) | type AgentClient interface type agentClient (line 25) | type agentClient struct method Install (line 33) | func (c *agentClient) Install(ctx context.Context, in *InstallReq, opt... method Remove (line 42) | func (c *agentClient) Remove(ctx context.Context, in *RemoveReq, opts ... function NewAgentClient (line 29) | func NewAgentClient(cc grpc.ClientConnInterface) AgentClient { type AgentServer (line 54) | type AgentServer interface type UnimplementedAgentServer (line 61) | type UnimplementedAgentServer struct method Install (line 64) | func (UnimplementedAgentServer) Install(context.Context, *InstallReq) ... method Remove (line 67) | func (UnimplementedAgentServer) Remove(context.Context, *RemoveReq) (*... method mustEmbedUnimplementedAgentServer (line 70) | func (UnimplementedAgentServer) mustEmbedUnimplementedAgentServer() {} type UnsafeAgentServer (line 75) | type UnsafeAgentServer interface function RegisterAgentServer (line 79) | func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer) { function _Agent_Install_Handler (line 83) | func _Agent_Install_Handler(srv interface{}, ctx context.Context, dec fu... function _Agent_Remove_Handler (line 101) | func _Agent_Remove_Handler(srv interface{}, ctx context.Context, dec fun... FILE: chapter/8/agent/proto/extra.go method Validate (line 15) | func (i *InstallReq) Validate() error { function validName (line 36) | func validName(s string) bool { method MarshalJSON (line 54) | func (x *CPUPerfs) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 60) | func (x *CPUPerfs) UnmarshalJSON(b []byte) error { method MarshalJSON (line 66) | func (x *MemPerf) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 72) | func (x *MemPerf) UnmarshalJSON(b []byte) error { FILE: chapter/8/rollout/config.go type config (line 13) | type config struct method validate (line 44) | func (s config) validate() error { function checkIP (line 69) | func checkIP(s string) (net.IP, error) { function checkIPPort (line 78) | func checkIPPort(b string) (net.IP, int32, error) { FILE: chapter/8/rollout/endstate_string.go function _ (line 7) | func _() { constant _endState_name (line 18) | _endState_name = "esUnknownesSuccessesPreconditionFailureesCanaryFailure... method String (line 22) | func (i endState) String() string { FILE: chapter/8/rollout/lb/client/cli/cli.go function main (line 36) | func main() { FILE: chapter/8/rollout/lb/client/client.go type HealthChecks (line 16) | type HealthChecks struct method toPB (line 23) | func (h HealthChecks) toPB() *pb.HealthChecks { type HealthCheck (line 36) | type HealthCheck interface type StatusCheck (line 43) | type StatusCheck struct method toPB (line 51) | func (s StatusCheck) toPB() *pb.HealthCheck { method isHealthCheck (line 62) | func (s StatusCheck) isHealthCheck() {} type Client (line 65) | type Client struct method AddPool (line 85) | func (c *Client) AddPool(ctx context.Context, pattern string, pt pb.Po... method RemovePool (line 107) | func (c *Client) RemovePool(ctx context.Context, pattern string) error { method AddBackend (line 136) | func (c *Client) AddBackend(ctx context.Context, pattern string, b Bac... method addIPBackend (line 144) | func (c *Client) addIPBackend(ctx context.Context, pattern string, b I... method RemoveBackend (line 167) | func (c *Client) RemoveBackend(ctx context.Context, pattern string, b ... method removeIPBackend (line 175) | func (c *Client) removeIPBackend(ctx context.Context, pattern string, ... method PoolHealth (line 199) | func (c *Client) PoolHealth(ctx context.Context, pattern string, healt... function New (line 71) | func New(addr string) (*Client, error) { type Backend (line 122) | type Backend interface type IPBackend (line 127) | type IPBackend struct method isBackend (line 133) | func (i IPBackend) isBackend() {} FILE: chapter/8/rollout/lb/lb.go function main (line 11) | func main() { FILE: chapter/8/rollout/lb/proto/lb.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type PoolType (line 25) | type PoolType method Enum (line 46) | func (x PoolType) Enum() *PoolType { method String (line 52) | func (x PoolType) String() string { method Descriptor (line 56) | func (PoolType) Descriptor() protoreflect.EnumDescriptor { method Type (line 60) | func (PoolType) Type() protoreflect.EnumType { method Number (line 64) | func (x PoolType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 69) | func (PoolType) EnumDescriptor() ([]byte, []int) { constant PoolType_PT_UNKNOWN (line 29) | PoolType_PT_UNKNOWN PoolType = 0 constant PoolType_PT_P2C (line 31) | PoolType_PT_P2C PoolType = 1 type PoolStatus (line 73) | type PoolStatus method Enum (line 102) | func (x PoolStatus) Enum() *PoolStatus { method String (line 108) | func (x PoolStatus) String() string { method Descriptor (line 112) | func (PoolStatus) Descriptor() protoreflect.EnumDescriptor { method Type (line 116) | func (PoolStatus) Type() protoreflect.EnumType { method Number (line 120) | func (x PoolStatus) Number() protoreflect.EnumNumber { method EnumDescriptor (line 125) | func (PoolStatus) EnumDescriptor() ([]byte, []int) { constant PoolStatus_PS_UNKNOWN (line 77) | PoolStatus_PS_UNKNOWN PoolStatus = 0 constant PoolStatus_PS_FULL (line 79) | PoolStatus_PS_FULL PoolStatus = 1 constant PoolStatus_PS_EMPTY (line 81) | PoolStatus_PS_EMPTY PoolStatus = 2 constant PoolStatus_PS_DEGRADED (line 83) | PoolStatus_PS_DEGRADED PoolStatus = 3 type BackendStatus (line 130) | type BackendStatus method Enum (line 155) | func (x BackendStatus) Enum() *BackendStatus { method String (line 161) | func (x BackendStatus) String() string { method Descriptor (line 165) | func (BackendStatus) Descriptor() protoreflect.EnumDescriptor { method Type (line 169) | func (BackendStatus) Type() protoreflect.EnumType { method Number (line 173) | func (x BackendStatus) Number() protoreflect.EnumNumber { method EnumDescriptor (line 178) | func (BackendStatus) EnumDescriptor() ([]byte, []int) { constant BackendStatus_BS_UNKNOWN (line 134) | BackendStatus_BS_UNKNOWN BackendStatus = 0 constant BackendStatus_BS_HEALTHY (line 136) | BackendStatus_BS_HEALTHY BackendStatus = 1 constant BackendStatus_BS_SICK (line 138) | BackendStatus_BS_SICK BackendStatus = 2 type HealthChecks (line 182) | type HealthChecks struct method Reset (line 191) | func (x *HealthChecks) Reset() { method String (line 200) | func (x *HealthChecks) String() string { method ProtoMessage (line 204) | func (*HealthChecks) ProtoMessage() {} method ProtoReflect (line 206) | func (x *HealthChecks) ProtoReflect() protoreflect.Message { method Descriptor (line 219) | func (*HealthChecks) Descriptor() ([]byte, []int) { method GetHealthChecks (line 223) | func (x *HealthChecks) GetHealthChecks() []*HealthCheck { method GetIntervalSecs (line 230) | func (x *HealthChecks) GetIntervalSecs() int32 { type HealthCheck (line 237) | type HealthCheck struct method Reset (line 247) | func (x *HealthCheck) Reset() { method String (line 256) | func (x *HealthCheck) String() string { method ProtoMessage (line 260) | func (*HealthCheck) ProtoMessage() {} method ProtoReflect (line 262) | func (x *HealthCheck) ProtoReflect() protoreflect.Message { method Descriptor (line 275) | func (*HealthCheck) Descriptor() ([]byte, []int) { method GetHealthCheck (line 279) | func (m *HealthCheck) GetHealthCheck() isHealthCheck_HealthCheck { method GetStatusCheck (line 286) | func (x *HealthCheck) GetStatusCheck() *StatusCheck { type isHealthCheck_HealthCheck (line 293) | type isHealthCheck_HealthCheck interface type HealthCheck_StatusCheck (line 297) | type HealthCheck_StatusCheck struct method isHealthCheck_HealthCheck (line 301) | func (*HealthCheck_StatusCheck) isHealthCheck_HealthCheck() {} type StatusCheck (line 305) | type StatusCheck struct method Reset (line 314) | func (x *StatusCheck) Reset() { method String (line 323) | func (x *StatusCheck) String() string { method ProtoMessage (line 327) | func (*StatusCheck) ProtoMessage() {} method ProtoReflect (line 329) | func (x *StatusCheck) ProtoReflect() protoreflect.Message { method Descriptor (line 342) | func (*StatusCheck) Descriptor() ([]byte, []int) { method GetUrlPath (line 346) | func (x *StatusCheck) GetUrlPath() string { method GetHealthyValues (line 353) | func (x *StatusCheck) GetHealthyValues() []string { type Backend (line 360) | type Backend struct method Reset (line 370) | func (x *Backend) Reset() { method String (line 379) | func (x *Backend) String() string { method ProtoMessage (line 383) | func (*Backend) ProtoMessage() {} method ProtoReflect (line 385) | func (x *Backend) ProtoReflect() protoreflect.Message { method Descriptor (line 398) | func (*Backend) Descriptor() ([]byte, []int) { method GetBackend (line 402) | func (m *Backend) GetBackend() isBackend_Backend { method GetIpBackend (line 409) | func (x *Backend) GetIpBackend() *IPBackend { type isBackend_Backend (line 416) | type isBackend_Backend interface type Backend_IpBackend (line 420) | type Backend_IpBackend struct method isBackend_Backend (line 424) | func (*Backend_IpBackend) isBackend_Backend() {} type IPBackend (line 427) | type IPBackend struct method Reset (line 440) | func (x *IPBackend) Reset() { method String (line 449) | func (x *IPBackend) String() string { method ProtoMessage (line 453) | func (*IPBackend) ProtoMessage() {} method ProtoReflect (line 455) | func (x *IPBackend) ProtoReflect() protoreflect.Message { method Descriptor (line 468) | func (*IPBackend) Descriptor() ([]byte, []int) { method GetIp (line 472) | func (x *IPBackend) GetIp() string { method GetPort (line 479) | func (x *IPBackend) GetPort() int32 { method GetUrlPath (line 486) | func (x *IPBackend) GetUrlPath() string { type PoolHealth (line 494) | type PoolHealth struct method Reset (line 506) | func (x *PoolHealth) Reset() { method String (line 515) | func (x *PoolHealth) String() string { method ProtoMessage (line 519) | func (*PoolHealth) ProtoMessage() {} method ProtoReflect (line 521) | func (x *PoolHealth) ProtoReflect() protoreflect.Message { method Descriptor (line 534) | func (*PoolHealth) Descriptor() ([]byte, []int) { method GetStatus (line 538) | func (x *PoolHealth) GetStatus() PoolStatus { method GetBackends (line 545) | func (x *PoolHealth) GetBackends() []*BackendHealth { type BackendHealth (line 553) | type BackendHealth struct method Reset (line 562) | func (x *BackendHealth) Reset() { method String (line 571) | func (x *BackendHealth) String() string { method ProtoMessage (line 575) | func (*BackendHealth) ProtoMessage() {} method ProtoReflect (line 577) | func (x *BackendHealth) ProtoReflect() protoreflect.Message { method Descriptor (line 590) | func (*BackendHealth) Descriptor() ([]byte, []int) { method GetBackend (line 594) | func (x *BackendHealth) GetBackend() *Backend { method GetStatus (line 601) | func (x *BackendHealth) GetStatus() BackendStatus { type AddPoolReq (line 609) | type AddPoolReq struct method Reset (line 622) | func (x *AddPoolReq) Reset() { method String (line 631) | func (x *AddPoolReq) String() string { method ProtoMessage (line 635) | func (*AddPoolReq) ProtoMessage() {} method ProtoReflect (line 637) | func (x *AddPoolReq) ProtoReflect() protoreflect.Message { method Descriptor (line 650) | func (*AddPoolReq) Descriptor() ([]byte, []int) { method GetPattern (line 654) | func (x *AddPoolReq) GetPattern() string { method GetPoolType (line 661) | func (x *AddPoolReq) GetPoolType() PoolType { method GetHealthChecks (line 668) | func (x *AddPoolReq) GetHealthChecks() *HealthChecks { type AddPoolResp (line 676) | type AddPoolResp struct method Reset (line 682) | func (x *AddPoolResp) Reset() { method String (line 691) | func (x *AddPoolResp) String() string { method ProtoMessage (line 695) | func (*AddPoolResp) ProtoMessage() {} method ProtoReflect (line 697) | func (x *AddPoolResp) ProtoReflect() protoreflect.Message { method Descriptor (line 710) | func (*AddPoolResp) Descriptor() ([]byte, []int) { type RemovePoolReq (line 715) | type RemovePoolReq struct method Reset (line 724) | func (x *RemovePoolReq) Reset() { method String (line 733) | func (x *RemovePoolReq) String() string { method ProtoMessage (line 737) | func (*RemovePoolReq) ProtoMessage() {} method ProtoReflect (line 739) | func (x *RemovePoolReq) ProtoReflect() protoreflect.Message { method Descriptor (line 752) | func (*RemovePoolReq) Descriptor() ([]byte, []int) { method GetPattern (line 756) | func (x *RemovePoolReq) GetPattern() string { type RemovePoolResp (line 764) | type RemovePoolResp struct method Reset (line 770) | func (x *RemovePoolResp) Reset() { method String (line 779) | func (x *RemovePoolResp) String() string { method ProtoMessage (line 783) | func (*RemovePoolResp) ProtoMessage() {} method ProtoReflect (line 785) | func (x *RemovePoolResp) ProtoReflect() protoreflect.Message { method Descriptor (line 798) | func (*RemovePoolResp) Descriptor() ([]byte, []int) { type AddBackendReq (line 803) | type AddBackendReq struct method Reset (line 814) | func (x *AddBackendReq) Reset() { method String (line 823) | func (x *AddBackendReq) String() string { method ProtoMessage (line 827) | func (*AddBackendReq) ProtoMessage() {} method ProtoReflect (line 829) | func (x *AddBackendReq) ProtoReflect() protoreflect.Message { method Descriptor (line 842) | func (*AddBackendReq) Descriptor() ([]byte, []int) { method GetPattern (line 846) | func (x *AddBackendReq) GetPattern() string { method GetBackend (line 853) | func (x *AddBackendReq) GetBackend() *Backend { type AddBackendResp (line 860) | type AddBackendResp struct method Reset (line 866) | func (x *AddBackendResp) Reset() { method String (line 875) | func (x *AddBackendResp) String() string { method ProtoMessage (line 879) | func (*AddBackendResp) ProtoMessage() {} method ProtoReflect (line 881) | func (x *AddBackendResp) ProtoReflect() protoreflect.Message { method Descriptor (line 894) | func (*AddBackendResp) Descriptor() ([]byte, []int) { type RemoveBackendReq (line 899) | type RemoveBackendReq struct method Reset (line 910) | func (x *RemoveBackendReq) Reset() { method String (line 919) | func (x *RemoveBackendReq) String() string { method ProtoMessage (line 923) | func (*RemoveBackendReq) ProtoMessage() {} method ProtoReflect (line 925) | func (x *RemoveBackendReq) ProtoReflect() protoreflect.Message { method Descriptor (line 938) | func (*RemoveBackendReq) Descriptor() ([]byte, []int) { method GetPattern (line 942) | func (x *RemoveBackendReq) GetPattern() string { method GetBackend (line 949) | func (x *RemoveBackendReq) GetBackend() *Backend { type RemoveBackendResp (line 957) | type RemoveBackendResp struct method Reset (line 963) | func (x *RemoveBackendResp) Reset() { method String (line 972) | func (x *RemoveBackendResp) String() string { method ProtoMessage (line 976) | func (*RemoveBackendResp) ProtoMessage() {} method ProtoReflect (line 978) | func (x *RemoveBackendResp) ProtoReflect() protoreflect.Message { method Descriptor (line 991) | func (*RemoveBackendResp) Descriptor() ([]byte, []int) { type PoolHealthReq (line 996) | type PoolHealthReq struct method Reset (line 1009) | func (x *PoolHealthReq) Reset() { method String (line 1018) | func (x *PoolHealthReq) String() string { method ProtoMessage (line 1022) | func (*PoolHealthReq) ProtoMessage() {} method ProtoReflect (line 1024) | func (x *PoolHealthReq) ProtoReflect() protoreflect.Message { method Descriptor (line 1037) | func (*PoolHealthReq) Descriptor() ([]byte, []int) { method GetPattern (line 1041) | func (x *PoolHealthReq) GetPattern() string { method GetHealthy (line 1048) | func (x *PoolHealthReq) GetHealthy() bool { method GetSick (line 1055) | func (x *PoolHealthReq) GetSick() bool { type PoolHealthResp (line 1062) | type PoolHealthResp struct method Reset (line 1070) | func (x *PoolHealthResp) Reset() { method String (line 1079) | func (x *PoolHealthResp) String() string { method ProtoMessage (line 1083) | func (*PoolHealthResp) ProtoMessage() {} method ProtoReflect (line 1085) | func (x *PoolHealthResp) ProtoReflect() protoreflect.Message { method Descriptor (line 1098) | func (*PoolHealthResp) Descriptor() ([]byte, []int) { method GetHealth (line 1102) | func (x *PoolHealthResp) GetHealth() *PoolHealth { function file_lb_proto_rawDescGZIP (line 1241) | func file_lb_proto_rawDescGZIP() []byte { function init (line 1302) | func init() { file_lb_proto_init() } function file_lb_proto_init (line 1303) | func file_lb_proto_init() { FILE: chapter/8/rollout/lb/proto/lb_grpc.pb.go constant _ (line 15) | _ = grpc.SupportPackageIsVersion7 type LoadBalancerClient (line 20) | type LoadBalancerClient interface type loadBalancerClient (line 28) | type loadBalancerClient struct method AddPool (line 36) | func (c *loadBalancerClient) AddPool(ctx context.Context, in *AddPoolR... method RemovePool (line 45) | func (c *loadBalancerClient) RemovePool(ctx context.Context, in *Remov... method AddBackend (line 54) | func (c *loadBalancerClient) AddBackend(ctx context.Context, in *AddBa... method RemoveBackend (line 63) | func (c *loadBalancerClient) RemoveBackend(ctx context.Context, in *Re... method PoolHealth (line 72) | func (c *loadBalancerClient) PoolHealth(ctx context.Context, in *PoolH... function NewLoadBalancerClient (line 32) | func NewLoadBalancerClient(cc grpc.ClientConnInterface) LoadBalancerClie... type LoadBalancerServer (line 84) | type LoadBalancerServer interface type UnimplementedLoadBalancerServer (line 94) | type UnimplementedLoadBalancerServer struct method AddPool (line 97) | func (UnimplementedLoadBalancerServer) AddPool(context.Context, *AddPo... method RemovePool (line 100) | func (UnimplementedLoadBalancerServer) RemovePool(context.Context, *Re... method AddBackend (line 103) | func (UnimplementedLoadBalancerServer) AddBackend(context.Context, *Ad... method RemoveBackend (line 106) | func (UnimplementedLoadBalancerServer) RemoveBackend(context.Context, ... method PoolHealth (line 109) | func (UnimplementedLoadBalancerServer) PoolHealth(context.Context, *Po... method mustEmbedUnimplementedLoadBalancerServer (line 112) | func (UnimplementedLoadBalancerServer) mustEmbedUnimplementedLoadBalan... type UnsafeLoadBalancerServer (line 117) | type UnsafeLoadBalancerServer interface function RegisterLoadBalancerServer (line 121) | func RegisterLoadBalancerServer(s grpc.ServiceRegistrar, srv LoadBalance... function _LoadBalancer_AddPool_Handler (line 125) | func _LoadBalancer_AddPool_Handler(srv interface{}, ctx context.Context,... function _LoadBalancer_RemovePool_Handler (line 143) | func _LoadBalancer_RemovePool_Handler(srv interface{}, ctx context.Conte... function _LoadBalancer_AddBackend_Handler (line 161) | func _LoadBalancer_AddBackend_Handler(srv interface{}, ctx context.Conte... function _LoadBalancer_RemoveBackend_Handler (line 179) | func _LoadBalancer_RemoveBackend_Handler(srv interface{}, ctx context.Co... function _LoadBalancer_PoolHealth_Handler (line 197) | func _LoadBalancer_PoolHealth_Handler(srv interface{}, ctx context.Conte... FILE: chapter/8/rollout/lb/sample/web/main.go function main (line 17) | func main() { FILE: chapter/8/rollout/lb/server/grpc/server.go type Server (line 21) | type Server struct method Start (line 46) | func (s *Server) Start() error { method Stop (line 59) | func (s *Server) Stop() { method AddPool (line 67) | func (s *Server) AddPool(ctx context.Context, req *pb.AddPoolReq) (*pb... method RemovePool (line 120) | func (s *Server) RemovePool(ctx context.Context, req *pb.RemovePoolReq... method AddBackend (line 131) | func (s *Server) AddBackend(ctx context.Context, req *pb.AddBackendReq... method RemoveBackend (line 168) | func (s *Server) RemoveBackend(ctx context.Context, req *pb.RemoveBack... method PoolHealth (line 206) | func (s *Server) PoolHealth(ctx context.Context, req *pb.PoolHealthReq... function New (line 32) | func New(addr string, lb *http.LoadBalancer) (*Server, error) { FILE: chapter/8/rollout/lb/server/http/p2c.go type weightedBackend (line 27) | type weightedBackend struct method get (line 33) | func (w *weightedBackend) get() int32 { method call (line 37) | func (w *weightedBackend) call() { method done (line 42) | func (w *weightedBackend) done() { method handler (line 50) | func (w *weightedBackend) handler() http.Handler { type P2C (line 61) | type P2C struct method Close (line 93) | func (s *P2C) Close() error { method Add (line 99) | func (s *P2C) Add(ctx context.Context, b Backend) error { method Remove (line 121) | func (s *P2C) Remove(ctx context.Context, b Backend) error { method Health (line 131) | func (s *P2C) Health(ctx context.Context, req *pb.PoolHealthReq) (*pb.... method addToValue (line 201) | func (s *P2C) addToValue(b *weightedBackend, v *atomic.Value) error { method removeFromValue (line 219) | func (s *P2C) removeFromValue(b Backend, v *atomic.Value) error { method ServeHTTP (line 243) | func (s *P2C) ServeHTTP(w http.ResponseWriter, r *http.Request) { method healthLoop (line 259) | func (s *P2C) healthLoop() { method healthChecks (line 272) | func (s *P2C) healthChecks(ctx context.Context) { method healthyToSick (line 300) | func (s *P2C) healthyToSick(b *weightedBackend) { method sickToHealthy (line 312) | func (s *P2C) sickToHealthy(b *weightedBackend) { function NewP2C (line 75) | func NewP2C(hc HealthCheck, interval time.Duration) (*P2C, error) { FILE: chapter/8/rollout/lb/server/http/server.go type routeHandler (line 19) | type routeHandler struct method mux (line 32) | func (r *routeHandler) mux() *http.ServeMux { method replace (line 36) | func (r *routeHandler) replace(mux *http.ServeMux) { method ServeHTTP (line 43) | func (r *routeHandler) ServeHTTP(w http.ResponseWriter, req *http.Requ... function newRouteHandler (line 23) | func newRouteHandler(mux *http.ServeMux) *routeHandler { function newServ (line 47) | func newServ(handler *routeHandler) *http.Server { type LoadBalancer (line 56) | type LoadBalancer struct method AddPool (line 75) | func (l *LoadBalancer) AddPool(pattern string, pool Pool) error { method GetPool (line 89) | func (l *LoadBalancer) GetPool(pattern string) (Pool, error) { method RemovePool (line 102) | func (l *LoadBalancer) RemovePool(pattern string) error { method PoolHealth (line 124) | func (l *LoadBalancer) PoolHealth(ctx context.Context, req *pb.PoolHea... method Serve (line 135) | func (l *LoadBalancer) Serve(lis net.Listener) error { method ServeTLS (line 140) | func (l *LoadBalancer) ServeTLS(lis net.Listener, certFile, keyFile st... function New (line 64) | func New() (*LoadBalancer, error) { type Pool (line 145) | type Pool interface type HealthCheck (line 162) | type HealthCheck function HealthMultiplexer (line 165) | func HealthMultiplexer(healthChecks ...HealthCheck) HealthCheck { function StatusCheck (line 188) | func StatusCheck(urlPath string, healthyValues []string) (HealthCheck, e... type healthState (line 233) | type healthState constant unknownHS (line 236) | unknownHS healthState = 0 constant healthy (line 237) | healthy healthState = 1 constant sick (line 238) | sick healthState = 2 type Backend (line 241) | type Backend interface type IPBackend (line 258) | type IPBackend struct method validate (line 288) | func (i *IPBackend) validate() error { method url (line 298) | func (i *IPBackend) url() *url.URL { method setHealth (line 302) | func (i *IPBackend) setHealth(hs healthState) { method health (line 306) | func (i *IPBackend) health() healthState { method call (line 310) | func (i *IPBackend) call() {} method done (line 311) | func (i *IPBackend) done() {} method handler (line 313) | func (i *IPBackend) handler() http.Handler { method resolveURL (line 317) | func (i *IPBackend) resolveURL() error { function NewIPBackend (line 271) | func NewIPBackend(ip net.IP, port int32, urlPath string) (*IPBackend, er... FILE: chapter/8/rollout/rollout.go function main (line 32) | func main() { function setup (line 133) | func setup() (*config, *workflow, error) { function getSSHConfig (line 163) | func getSSHConfig(config *config) error { function getAuthFromFlags (line 180) | func getAuthFromFlags() (ssh.AuthMethod, error) { function agentAuth (line 187) | func agentAuth() (ssh.AuthMethod, error) { function publicKey (line 197) | func publicKey(privateKeyFile string) (ssh.AuthMethod, error) { FILE: chapter/8/rollout/workflow.go type endState (line 33) | type endState constant esUnknown (line 37) | esUnknown endState = 0 constant esSuccess (line 40) | esSuccess endState = 1 constant esPreconditionFailure (line 42) | esPreconditionFailure endState = 2 constant esCanaryFailure (line 44) | esCanaryFailure endState = 3 constant esMaxFailures (line 47) | esMaxFailures endState = 4 type workflow (line 51) | type workflow struct method run (line 76) | func (w *workflow) run(ctx context.Context) error { method retryFailed (line 135) | func (w *workflow) retryFailed(ctx context.Context) { method checkLBState (line 162) | func (w *workflow) checkLBState(ctx context.Context) error { method buildActions (line 195) | func (w *workflow) buildActions() error { method status (line 214) | func (w *workflow) status() workflowStatus { function newWorkflow (line 62) | func newWorkflow(config *config, lb *client.Client) (*workflow, error) { type workflowStatus (line 206) | type workflowStatus struct type stateFn (line 224) | type stateFn type actions (line 226) | type actions struct method run (line 253) | func (a *actions) run(ctx context.Context) (err error) { method rmBackend (line 291) | func (a *actions) rmBackend(ctx context.Context) (stateFn, error) { method jobKill (line 300) | func (a *actions) jobKill(ctx context.Context) (stateFn, error) { method cp (line 326) | func (a *actions) cp(ctx context.Context) (stateFn, error) { method jobStart (line 333) | func (a *actions) jobStart(ctx context.Context) (stateFn, error) { method reachable (line 340) | func (a *actions) reachable(ctx context.Context) (stateFn, error) { method addBackend (line 383) | func (a *actions) addBackend(ctx context.Context) (stateFn, error) { method findPIDs (line 392) | func (a *actions) findPIDs(ctx context.Context) ([]string, error) { method killPIDs (line 410) | func (a *actions) killPIDs(ctx context.Context, pids []string, signal ... method waitForDeath (line 424) | func (a *actions) waitForDeath(ctx context.Context, pids []string, tim... method runBinary (line 446) | func (a *actions) runBinary(ctx context.Context) error { method sftp (line 458) | func (a *actions) sftp() error { method combinedOutput (line 485) | func (*actions) combinedOutput(ctx context.Context, conn *ssh.Client, ... method startOnly (line 511) | func (*actions) startOnly(ctx context.Context, conn *ssh.Client, cmd s... method failure (line 521) | func (a *actions) failure() string { function newServerActions (line 240) | func newServerActions(endpoint string, config *config, lb *client.Client... FILE: chapter/8/scanner/scanner.go constant ping (line 19) | ping = "ping" constant ssh (line 20) | ssh = "ssh" constant uname (line 22) | uname = "uname" function main (line 25) | func main() { type record (line 59) | type record struct function hosts (line 73) | func hosts(cidr string) (chan net.IP, error) { function scanPrefixes (line 99) | func scanPrefixes(ipCh chan net.IP) chan record { function unamePrefixes (line 132) | func unamePrefixes(user string, recs chan record) chan record { function hostAlive (line 167) | func hostAlive(ctx context.Context, host net.IP) bool { function runUname (line 178) | func runUname(ctx context.Context, host net.IP, user string) (string, er... FILE: chapter/8/ssh/client/expect/expect.go function main (line 25) | func main() { function passwordFromTerm (line 93) | func passwordFromTerm() (ssh.AuthMethod, error) { function publicKey (line 106) | func publicKey(privateKeyFile string) (ssh.AuthMethod, error) { function installExpect (line 120) | func installExpect(conn *ssh.Client) (err error) { FILE: chapter/8/ssh/client/remotecmd/remotecmd.go function main (line 21) | func main() { function passwordFromTerm (line 90) | func passwordFromTerm() (ssh.AuthMethod, error) { function publicKey (line 103) | func publicKey(privateKeyFile string) (ssh.AuthMethod, error) { function combinedOutput (line 121) | func combinedOutput(ctx context.Context, conn *ssh.Client, cmd string) (... FILE: chapter/9/alerting/client/main.go function main (line 32) | func main() { function initTraceAndMetricsProvider (line 41) | func initTraceAndMetricsProvider() func() { function initTracer (line 62) | func initTracer(ctx context.Context, otelAgentAddr string) func(context.... function initMetrics (line 101) | func initMetrics(ctx context.Context, otelAgentAddr string) func(context... function handleErr (line 142) | func handleErr(err error, message string) { function continuouslySendRequests (line 149) | func continuouslySendRequests() { function makeRequest (line 192) | func makeRequest(ctx context.Context) { type ClientInstruments (line 219) | type ClientInstruments struct function NewClientInstruments (line 227) | func NewClientInstruments(meter metric.Meter) ClientInstruments { FILE: chapter/9/alerting/server/main.go function main (line 35) | func main() { function handleRequestWithRandomSleep (line 50) | func handleRequestWithRandomSleep() http.HandlerFunc { function initProvider (line 89) | func initProvider() func() { function initTracer (line 110) | func initTracer(ctx context.Context, otelAgentAddr string) func(context.... function initMetrics (line 149) | func initMetrics(ctx context.Context, otelAgentAddr string) func(context... function handleErr (line 188) | func handleErr(err error, message string) { type ServerInstruments (line 195) | type ServerInstruments struct function NewServerInstruments (line 200) | func NewServerInstruments(meter metric.Meter) ServerInstruments { FILE: chapter/9/metrics/client/main.go function main (line 32) | func main() { function initTraceAndMetricsProvider (line 41) | func initTraceAndMetricsProvider() func() { function initTracer (line 62) | func initTracer(ctx context.Context, otelAgentAddr string) func(context.... function initMetrics (line 101) | func initMetrics(ctx context.Context, otelAgentAddr string) func(context... function handleErr (line 130) | func handleErr(err error, message string) { function continuouslySendRequests (line 137) | func continuouslySendRequests() { function makeRequest (line 180) | func makeRequest(ctx context.Context) { type ClientInstruments (line 207) | type ClientInstruments struct function NewClientInstruments (line 215) | func NewClientInstruments(meter metric.Meter) ClientInstruments { FILE: chapter/9/metrics/server/main.go function main (line 35) | func main() { function handleRequestWithRandomSleep (line 50) | func handleRequestWithRandomSleep() http.HandlerFunc { function initProvider (line 89) | func initProvider() func() { function initTracer (line 110) | func initTracer(ctx context.Context, otelAgentAddr string) func(context.... function initMetrics (line 149) | func initMetrics(ctx context.Context, otelAgentAddr string) func(context... function handleErr (line 177) | func handleErr(err error, message string) { type ServerInstruments (line 184) | type ServerInstruments struct function NewServerInstruments (line 189) | func NewServerInstruments(meter metric.Meter) ServerInstruments { FILE: chapter/9/tracing/client/main.go function main (line 26) | func main() { function initTraceProvider (line 34) | func initTraceProvider() func() { function initTracer (line 53) | func initTracer(ctx context.Context, otelAgentAddr string) func(context.... function handleErr (line 92) | func handleErr(err error, message string) { function continuouslySendRequests (line 99) | func continuouslySendRequests() { function makeRequest (line 112) | func makeRequest(ctx context.Context) { function SuccessfullyFinishedRequestEvent (line 140) | func SuccessfullyFinishedRequestEvent(span trace.Span, opts ...trace.Eve... function WithCorrelation (line 146) | func WithCorrelation(span trace.Span, log *zap.Logger) *zap.Logger { function convertTraceID (line 153) | func convertTraceID(id string) string { FILE: chapter/9/tracing/server/main.go function main (line 28) | func main() { function handleRequestWithRandomSleep (line 42) | func handleRequestWithRandomSleep() http.HandlerFunc { function initTraceProvider (line 71) | func initTraceProvider() func() { function initTracer (line 90) | func initTracer(ctx context.Context, otelAgentAddr string) func(context.... function handleErr (line 128) | func handleErr(err error, message string) {