MCPcopy Create free account

hub / github.com/PacktPublishing/Go-Programming-Cookbook-Second-Edition / types & classes

Types & classes269 in github.com/PacktPublishing/Go-Programming-Cookbook-Second-Edition

↓ 3 callersFuncTypeTransportFunc
TransportFunc implements the RountTripper interface
chapter7/decorator/decorator.go:6
↓ 2 callersTypeAliasCountTheWays
CountTheWays is a custom type that we'll read a flag into
chapter2/flags/custom.go:11
↓ 1 callersFuncTypeRestorer
Restorer holds a function that can be used to restore some previous state.
chapter9/mocking/patch.go:7
↓ 1 callersTypeAliasop
chapter10/state/state.go:3
↓ 1 callersTypeAliasop
chapter10/pool/work.go:5
↓ 1 callersTypeAliasstate
chapter11/consensus/state.go:3
StructAPIClient
APIClient is our custom client
chapter7/rest/client.go:6
StructAPITransport
APITransport does a SetBasicAuth for every request
chapter7/rest/transport.go:7
StructArgs
Args are a list of options for how to tweak the string
chapter5/rpc/tweak/tweak.go:13
StructAtomicCounter
AtomicCounter implements an atmoic lock using the atomic package
chapter14/bench/atomic.go:7
StructBook
A Book has an Author and Title
chapter1/csvformat/write_csv.go:11
TypeAliasBooks
Books is a named type for an array of books
chapter1/csvformat/write_csv.go:17
StructCard
Card represents a standard playing card
chapter12/graphql/cards/card.go:5
InterfaceClient
Client exposes api methods we care about
chapter11/discovery/client.go:7
InterfaceClient
Client Interface for mocking
chapter13/firebase/client.go:11
StructClient
Client stores a client and has two channels to aggregate responses and errors
chapter7/async/config.go:18
TypeAliasColor
Color of text
chapter2/ansicolor/color.go:6
StructColorText
ColorText holds a string and its color
chapter2/ansicolor/color.go:30
StructConfig
Config wraps the default oauth2.Config and adds our storage
chapter7/oauthstore/config.go:12
StructConfig
Config will be the holder for our flags
chapter2/flags/flags.go:9
StructConfig
Config will hold the config we capture from a json file and env vars
chapter2/envvar/example/main.go:14
TypeAliasContextID
ContextID is our type to retrieve our context objects
chapter8/middleware/context.go:11
StructController
Controller embeds an http.Client and uses it internally
chapter7/client/store.go:10
StructController
Controller passes state to our handlers
chapter8/controllers/controller.go:4
StructController
Controller holds our validation functions
chapter8/validation/controller.go:4
StructController
Controller holds an internal KeyValueObject
chapter8/grpcjson/http/set.go:13
StructController
Controller holds our storage and other state
chapter13/appengine/controller.go:14
StructController
Controller is a struct demonstrating one way to initialize interfaces
chapter9/mockgen/exec.go:5
StructCounter
Counter uses a sync.RWMutex to safely modify a value
chapter14/bench/lock.go:7
StructCrawlError
CrawlError is our custom error type for aggregating errors
chapter10/waitgroup/tasks.go:22
StructCustomError
CustomError is a struct that will implement the Error() interface
chapter4/basicerrors/custom.go:9
StructCustomHandler
CustomHandler splits to two streams
chapter4/structured/apex.go:19
InterfaceDB
DB is an interface that is satisfied by an sql.DB or an sql.Transaction
chapter6/dbinterface/transaction.go:7
FuncTypeDecorator
Decorator is a convenience function to represent our middleware inner function
chapter7/decorator/decorator.go:15
InterfaceDoStuffer
DoStuffer is a simple interface
chapter9/mocking/mock.go:4
StructEncoder
Encoder base64 encodes all input
chapter12/goflow/components.go:9
StructErrorTyped
ErrorTyped is a error we can check against
chapter4/errwrap/errwrap.go:16
StructExample
Example hold the results of our queries
chapter6/database/config.go:13
StructExample
Example is a basic struct with age and name fields
chapter3/nulls/base.go:16
StructExampleNullInt
ExampleNullInt is the same, but uses a sql.NullInt64
chapter3/nulls/nullencoding.go:13
StructExamplePointer
ExamplePointer is the same, but uses a *Int
chapter3/nulls/pointer.go:10
StructFSM
FSM implements the raft FSM interface and holds a state
chapter11/consensus/fsm.go:11
StructFileStorage
FileStorage satisfies our storage interface
chapter7/oauthstore/filestorage.go:13
StructGetKeyValueRequest
chapter8/grpcjson/keyvalue/keyvalue.pb.go:62
InterfaceGetSetter
GetSetter implements get a set of a key value pair
chapter9/mockgen/interface.go:5
StructGreetRequest
please upgrade the proto package
chapter7/twirp/rpc/greeter/greeter.pb.go:21
StructGreetRequest
please upgrade the proto package
chapter7/grpc/greeter/greeter.pb.go:37
StructGreetResponse
chapter7/twirp/rpc/greeter/greeter.pb.go:67
StructGreetResponse
chapter7/grpc/greeter/greeter.pb.go:61
StructGreeter
Greeter implements the interface generated by protoc
chapter7/twirp/server/greeter.go:12
StructGreeter
Greeter implements the interface generated by protoc
chapter7/grpc/server/greeter.go:12
InterfaceGreeterService
======================== GreeterService Interface ========================
chapter7/twirp/rpc/greeter/greeter.twirp.go:35
InterfaceGreeterServiceClient
Client API for GreeterService service
chapter7/grpc/greeter/greeter.pb.go:92
InterfaceGreeterServiceServer
Server API for GreeterService service
chapter7/grpc/greeter/greeter.pb.go:115
StructGreetingResponse
GreetingResponse is the JSON Response that GreetingHandler returns
chapter8/handlers/post.go:10
InterfaceHTTPClient
===== Utils ===== HTTPClient is the interface used by generated clients to send HTTP requests. It is fulfilled by *(net/http).Client, which is suffici
chapter7/twirp/rpc/greeter/greeter.twirp.go:342
StructHandlerRequest
HandlerRequest will be json decoded into by Handler
chapter9/bdd/handler.go:11
StructHook
Hook will implement the logrus hook interface
chapter4/structured/logrus.go:7
StructInput
Input takes in a secret
chapter13/logging/functions/secret/main.go:13
StructItem
Item represents an item at a shop
chapter6/storage/storage.go:7
StructJSONData
JSONData is our common data struct with JSON struct tags
chapter2/confformat/json.go:11
TypeAliasJob
Job is a job a worker can do
chapter10/pipeline/worker.go:14
StructKafkaController
KafkaController allows us to attach a producer to our handlers
chapter12/asynckafka/producer/handler.go:11
StructKeyValue
KeyValue is a struct that holds a map
chapter8/grpcjson/internal/keyvalue.go:13
InterfaceKeyValueClient
Client API for KeyValue service
chapter8/grpcjson/keyvalue/keyvalue.pb.go:118
StructKeyValueResponse
chapter8/grpcjson/keyvalue/keyvalue.pb.go:78
InterfaceKeyValueServer
Server API for KeyValue service
chapter8/grpcjson/keyvalue/keyvalue.pb.go:151
StructLookup
Lookup holds the DNS information we care about
chapter5/dns/dns.go:11
StructMemStorage
MemStorage implements Storage
chapter8/controllers/storage.go:11
StructMenuConf
MenuConf holds all the levels for a nested cmd line argument
chapter2/cmdargs/cmdargs.go:32
StructMessage
Message is the input to the function and includes a FirstName and LastName
chapter13/lambda/functions/greeter2/main.go:12
StructMessage
Message is the input to the function and includes a Name
chapter13/lambda/functions/greeter1/main.go:12
StructMessage
Message is the object we store
chapter13/appengine/message.go:11
FuncTypeMiddleware
Middleware is what all middleware functions will return
chapter8/middleware/middleware.go:10
StructMockAsyncProducer
Mock of AsyncProducer interface
chapter12/asynckafka/producer/mocks_test.go:12
StructMockClient
chapter11/discovery/exec_test.go:10
StructMockDB
Mock of DB interface
chapter6/dbinterface/mocks_test.go:13
StructMockDoStuffer
chapter9/mocking/mock_test.go:3
StructMockGetSetter
MockGetSetter is a mock of GetSetter interface
chapter9/mockgen/internal/mocks.go:13
StructMockGetSetterMockRecorder
MockGetSetterMockRecorder is the mock recorder for MockGetSetter
chapter9/mockgen/internal/mocks.go:19
StructMockTransaction
Mock of Transaction interface
chapter6/dbinterface/mocks_test.go:92
StructMongoStorage
MongoStorage implements our storage interface
chapter6/storage/mongoconfig.go:11
StructMovie
Movie will hold our parsed CSV
chapter1/csvformat/read_csv.go:12
StructNegotiator
Negotiator wraps render and does some switching on ContentType
chapter8/negotiate/negotiate.go:11
StructNopTransport
NopTransport is a No-Op Transport
chapter7/client/client.go:30
StructOrdinal
Ordinal holds a global a value and can only be initialized once
chapter10/atomic/ordinal.go:10
StructPayload
Payload is our common response
chapter8/controllers/controller.go:16
StructPayload
Payload is the value we process
chapter8/validation/validate.go:14
StructPayload
Payload defines it's layout in xml and json
chapter8/negotiate/handler.go:9
StructPerson
Person is a struct that stores a persons name, city, state, and a misc attribute
chapter3/tags/tags.go:7
StructPrinter
Printer is a component for printing to stdout
chapter12/kafkaflow/components.go:26
StructPrinter
Printer is a component for printing to stdout
chapter12/goflow/components.go:23
StructProxy
Proxy holds our configured client and BaseURL to proxy to
chapter8/proxy/proxy.go:10
StructResponse
Response is sent back and contains a greeting string
chapter13/lambda/functions/greeter2/main.go:19
StructResponse
Response is sent back and contains a greeting string
chapter13/lambda/functions/greeter1/main.go:18
StructSafeMap
SafeMap uses a mutex to allow getting and setting in a thread-safe way
chapter10/atomic/map.go:10
StructSetKeyValueRequest
please upgrade the proto package
chapter8/grpcjson/keyvalue/keyvalue.pb.go:38
StructState
State is our data model
chapter11/orchestrate/exec.go:11
StructState
State is our data model
chapter6/mongodb/exec.go:11
InterfaceStorage
Storage is our generic storage interface
chapter7/oauthstore/storage.go:11
next →1–100 of 269, ranked by callers