Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Go-Programming-Cookbook-Second-Edition
/ types & classes
Types & classes
269 in github.com/PacktPublishing/Go-Programming-Cookbook-Second-Edition
⨍
Functions
795
◇
Types & classes
269
↓ 3 callers
FuncType
TransportFunc
TransportFunc implements the RountTripper interface
chapter7/decorator/decorator.go:6
↓ 2 callers
TypeAlias
CountTheWays
CountTheWays is a custom type that we'll read a flag into
chapter2/flags/custom.go:11
↓ 1 callers
FuncType
Restorer
Restorer holds a function that can be used to restore some previous state.
chapter9/mocking/patch.go:7
↓ 1 callers
TypeAlias
op
chapter10/state/state.go:3
↓ 1 callers
TypeAlias
op
chapter10/pool/work.go:5
↓ 1 callers
TypeAlias
state
chapter11/consensus/state.go:3
Struct
APIClient
APIClient is our custom client
chapter7/rest/client.go:6
Struct
APITransport
APITransport does a SetBasicAuth for every request
chapter7/rest/transport.go:7
Struct
Args
Args are a list of options for how to tweak the string
chapter5/rpc/tweak/tweak.go:13
Struct
AtomicCounter
AtomicCounter implements an atmoic lock using the atomic package
chapter14/bench/atomic.go:7
Struct
Book
A Book has an Author and Title
chapter1/csvformat/write_csv.go:11
TypeAlias
Books
Books is a named type for an array of books
chapter1/csvformat/write_csv.go:17
Struct
Card
Card represents a standard playing card
chapter12/graphql/cards/card.go:5
Interface
Client
Client exposes api methods we care about
chapter11/discovery/client.go:7
Interface
Client
Client Interface for mocking
chapter13/firebase/client.go:11
Struct
Client
Client stores a client and has two channels to aggregate responses and errors
chapter7/async/config.go:18
TypeAlias
Color
Color of text
chapter2/ansicolor/color.go:6
Struct
ColorText
ColorText holds a string and its color
chapter2/ansicolor/color.go:30
Struct
Config
Config wraps the default oauth2.Config and adds our storage
chapter7/oauthstore/config.go:12
Struct
Config
Config will be the holder for our flags
chapter2/flags/flags.go:9
Struct
Config
Config will hold the config we capture from a json file and env vars
chapter2/envvar/example/main.go:14
TypeAlias
ContextID
ContextID is our type to retrieve our context objects
chapter8/middleware/context.go:11
Struct
Controller
Controller embeds an http.Client and uses it internally
chapter7/client/store.go:10
Struct
Controller
Controller passes state to our handlers
chapter8/controllers/controller.go:4
Struct
Controller
Controller holds our validation functions
chapter8/validation/controller.go:4
Struct
Controller
Controller holds an internal KeyValueObject
chapter8/grpcjson/http/set.go:13
Struct
Controller
Controller holds our storage and other state
chapter13/appengine/controller.go:14
Struct
Controller
Controller is a struct demonstrating one way to initialize interfaces
chapter9/mockgen/exec.go:5
Struct
Counter
Counter uses a sync.RWMutex to safely modify a value
chapter14/bench/lock.go:7
Struct
CrawlError
CrawlError is our custom error type for aggregating errors
chapter10/waitgroup/tasks.go:22
Struct
CustomError
CustomError is a struct that will implement the Error() interface
chapter4/basicerrors/custom.go:9
Struct
CustomHandler
CustomHandler splits to two streams
chapter4/structured/apex.go:19
Interface
DB
DB is an interface that is satisfied by an sql.DB or an sql.Transaction
chapter6/dbinterface/transaction.go:7
FuncType
Decorator
Decorator is a convenience function to represent our middleware inner function
chapter7/decorator/decorator.go:15
Interface
DoStuffer
DoStuffer is a simple interface
chapter9/mocking/mock.go:4
Struct
Encoder
Encoder base64 encodes all input
chapter12/goflow/components.go:9
Struct
ErrorTyped
ErrorTyped is a error we can check against
chapter4/errwrap/errwrap.go:16
Struct
Example
Example hold the results of our queries
chapter6/database/config.go:13
Struct
Example
Example is a basic struct with age and name fields
chapter3/nulls/base.go:16
Struct
ExampleNullInt
ExampleNullInt is the same, but uses a sql.NullInt64
chapter3/nulls/nullencoding.go:13
Struct
ExamplePointer
ExamplePointer is the same, but uses a *Int
chapter3/nulls/pointer.go:10
Struct
FSM
FSM implements the raft FSM interface and holds a state
chapter11/consensus/fsm.go:11
Struct
FileStorage
FileStorage satisfies our storage interface
chapter7/oauthstore/filestorage.go:13
Struct
GetKeyValueRequest
chapter8/grpcjson/keyvalue/keyvalue.pb.go:62
Interface
GetSetter
GetSetter implements get a set of a key value pair
chapter9/mockgen/interface.go:5
Struct
GreetRequest
please upgrade the proto package
chapter7/twirp/rpc/greeter/greeter.pb.go:21
Struct
GreetRequest
please upgrade the proto package
chapter7/grpc/greeter/greeter.pb.go:37
Struct
GreetResponse
chapter7/twirp/rpc/greeter/greeter.pb.go:67
Struct
GreetResponse
chapter7/grpc/greeter/greeter.pb.go:61
Struct
Greeter
Greeter implements the interface generated by protoc
chapter7/twirp/server/greeter.go:12
Struct
Greeter
Greeter implements the interface generated by protoc
chapter7/grpc/server/greeter.go:12
Interface
GreeterService
======================== GreeterService Interface ========================
chapter7/twirp/rpc/greeter/greeter.twirp.go:35
Interface
GreeterServiceClient
Client API for GreeterService service
chapter7/grpc/greeter/greeter.pb.go:92
Interface
GreeterServiceServer
Server API for GreeterService service
chapter7/grpc/greeter/greeter.pb.go:115
Struct
GreetingResponse
GreetingResponse is the JSON Response that GreetingHandler returns
chapter8/handlers/post.go:10
Interface
HTTPClient
===== 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
Struct
HandlerRequest
HandlerRequest will be json decoded into by Handler
chapter9/bdd/handler.go:11
Struct
Hook
Hook will implement the logrus hook interface
chapter4/structured/logrus.go:7
Struct
Input
Input takes in a secret
chapter13/logging/functions/secret/main.go:13
Struct
Item
Item represents an item at a shop
chapter6/storage/storage.go:7
Struct
JSONData
JSONData is our common data struct with JSON struct tags
chapter2/confformat/json.go:11
TypeAlias
Job
Job is a job a worker can do
chapter10/pipeline/worker.go:14
Struct
KafkaController
KafkaController allows us to attach a producer to our handlers
chapter12/asynckafka/producer/handler.go:11
Struct
KeyValue
KeyValue is a struct that holds a map
chapter8/grpcjson/internal/keyvalue.go:13
Interface
KeyValueClient
Client API for KeyValue service
chapter8/grpcjson/keyvalue/keyvalue.pb.go:118
Struct
KeyValueResponse
chapter8/grpcjson/keyvalue/keyvalue.pb.go:78
Interface
KeyValueServer
Server API for KeyValue service
chapter8/grpcjson/keyvalue/keyvalue.pb.go:151
Struct
Lookup
Lookup holds the DNS information we care about
chapter5/dns/dns.go:11
Struct
MemStorage
MemStorage implements Storage
chapter8/controllers/storage.go:11
Struct
MenuConf
MenuConf holds all the levels for a nested cmd line argument
chapter2/cmdargs/cmdargs.go:32
Struct
Message
Message is the input to the function and includes a FirstName and LastName
chapter13/lambda/functions/greeter2/main.go:12
Struct
Message
Message is the input to the function and includes a Name
chapter13/lambda/functions/greeter1/main.go:12
Struct
Message
Message is the object we store
chapter13/appengine/message.go:11
FuncType
Middleware
Middleware is what all middleware functions will return
chapter8/middleware/middleware.go:10
Struct
MockAsyncProducer
Mock of AsyncProducer interface
chapter12/asynckafka/producer/mocks_test.go:12
Struct
MockClient
chapter11/discovery/exec_test.go:10
Struct
MockDB
Mock of DB interface
chapter6/dbinterface/mocks_test.go:13
Struct
MockDoStuffer
chapter9/mocking/mock_test.go:3
Struct
MockGetSetter
MockGetSetter is a mock of GetSetter interface
chapter9/mockgen/internal/mocks.go:13
Struct
MockGetSetterMockRecorder
MockGetSetterMockRecorder is the mock recorder for MockGetSetter
chapter9/mockgen/internal/mocks.go:19
Struct
MockTransaction
Mock of Transaction interface
chapter6/dbinterface/mocks_test.go:92
Struct
MongoStorage
MongoStorage implements our storage interface
chapter6/storage/mongoconfig.go:11
Struct
Movie
Movie will hold our parsed CSV
chapter1/csvformat/read_csv.go:12
Struct
Negotiator
Negotiator wraps render and does some switching on ContentType
chapter8/negotiate/negotiate.go:11
Struct
NopTransport
NopTransport is a No-Op Transport
chapter7/client/client.go:30
Struct
Ordinal
Ordinal holds a global a value and can only be initialized once
chapter10/atomic/ordinal.go:10
Struct
Payload
Payload is our common response
chapter8/controllers/controller.go:16
Struct
Payload
Payload is the value we process
chapter8/validation/validate.go:14
Struct
Payload
Payload defines it's layout in xml and json
chapter8/negotiate/handler.go:9
Struct
Person
Person is a struct that stores a persons name, city, state, and a misc attribute
chapter3/tags/tags.go:7
Struct
Printer
Printer is a component for printing to stdout
chapter12/kafkaflow/components.go:26
Struct
Printer
Printer is a component for printing to stdout
chapter12/goflow/components.go:23
Struct
Proxy
Proxy holds our configured client and BaseURL to proxy to
chapter8/proxy/proxy.go:10
Struct
Response
Response is sent back and contains a greeting string
chapter13/lambda/functions/greeter2/main.go:19
Struct
Response
Response is sent back and contains a greeting string
chapter13/lambda/functions/greeter1/main.go:18
Struct
SafeMap
SafeMap uses a mutex to allow getting and setting in a thread-safe way
chapter10/atomic/map.go:10
Struct
SetKeyValueRequest
please upgrade the proto package
chapter8/grpcjson/keyvalue/keyvalue.pb.go:38
Struct
State
State is our data model
chapter11/orchestrate/exec.go:11
Struct
State
State is our data model
chapter6/mongodb/exec.go:11
Interface
Storage
Storage is our generic storage interface
chapter7/oauthstore/storage.go:11
next →
1–100 of 269, ranked by callers