Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ardanlabs/kit
/ types & classes
Types & classes
115 in github.com/ardanlabs/kit
⨍
Functions
292
◇
Types & classes
115
↓ 1 callers
TypeAlias
TraceID
TraceID is represents the trace id.
examples/pool/main.go:27
Struct
APointerError
mapstructure/mapstructure_test.go:1058
Struct
Address
Address contains information about a user's address.
examples/web/internal/user/model.go:9
Struct
AnError
mapstructure/mapstructure_test.go:1030
Struct
Animal
mapstructure/mapstructure_test.go:980
Struct
Animal
mapstructure/mapstructure_examples_test.go:276
Struct
Animal
examples/mapstructure/main.go:126
Struct
App
App is the entrypoint into our application and what configures our context object for each of our http handlers. Feel free to add any configuration da
web/web.go:73
Struct
Basic
mapstructure/mapstructure_test.go:10
TypeAlias
CltError
CltError provides support for multi client operations that might error.
tcp/tcp.go:42
Struct
CobrandContext
mapstructure/mapstructure_examples_test.go:309
Struct
Config
Config provides a data structure of required configuration parameters.
udp/udp_config.go:9
Struct
Config
Config provides configuration for the pool.
pool/pool.go:55
Struct
Config
Config is a goroutine safe configuration store, with a map of values set from a config Provider.
cfg/cfg.go:15
Struct
Config
Config provides a data structure of required configuration parameters.
tcp/tcp_config.go:17
Interface
ConnHandler
ConnHandler is implemented by the user to bind the listener to a reader and writer for processing.
udp/handlers.go:28
Interface
ConnHandler
ConnHandler is implemented by the user to bind the connection to a reader and writer for processing.
tcp/handlers.go:30
Struct
Context
mapstructure/mapstructure_test.go:1034
FuncType
DecodeHookFunc
DecodeHookFunc declares a function to help with decoding.
mapstructure/mapstructure.go:13
Struct
Decoder
A Decoder takes a raw interface value and turns it into structured data, keeping track of rich error information along the way in case anything goes w
mapstructure/mapstructure.go:64
Struct
DecoderConfig
DecoderConfig is the configuration that is used to create a new decoder and allows customization of various aspects of decoding.
mapstructure/mapstructure.go:17
Struct
Embedded
mapstructure/mapstructure_test.go:21
Struct
EmbeddedPointer
mapstructure/mapstructure_test.go:26
Struct
EmbeddedSquash
mapstructure/mapstructure_test.go:31
Struct
EnvProvider
EnvProvider provides configuration from the environment. All keys will be made uppercase.
cfg/env_provider.go:12
Struct
Error
Error implements the error interface and can represents multiple errors that occur in the course of a single decode.
mapstructure/error.go:10
Struct
FileProvider
FileProvider describes a file based loader which loads the configuration from a file listed.
cfg/file_provider.go:11
Struct
GeoNamesTimezone
GeoNamesTimezone is the repsonse from the GeoNames timezone API.
timezone/timezone.go:27
Struct
GoogleTimezone
GoogleTimezone is the repsonse from the Google timezone API.
timezone/timezone.go:18
Struct
Group
Group allows a segment of middleware to be shared amongst handlers.
web/web.go:141
FuncType
Handler
A Handler is a type that handles an http request within our own little mini framework.
web/web.go:64
Struct
Invalid
Invalid describes a validation error belonging to a specific field.
web/reponse.go:41
TypeAlias
InvalidError
InvalidError is a custom error type for invalid fields.
web/reponse.go:47
Struct
Items
mapstructure/mapstructure_test.go:989
Struct
Items
mapstructure/mapstructure_examples_test.go:285
Struct
Items
examples/mapstructure/main.go:136
Struct
JSONError
JSONError is the response for errors that occur within the API.
web/reponse.go:59
Interface
Jobber
Jobber defines an interface for providing the implementation details for processing a user job.
runner/runner.go:22
Struct
Logger
Logger contains a standard logger for all logging.
log/log.go:38
Struct
Map
mapstructure/mapstructure_test.go:36
Struct
MapOfStruct
mapstructure/mapstructure_test.go:41
Struct
MapProvider
MapProvider provides a simple implementation of the Provider whereby it just returns a stored map.
cfg/map_provider.go:5
Struct
Metadata
Metadata contains information about decoding a structure that is tedious or difficult to get otherwise.
mapstructure/mapstructure.go:70
FuncType
Middleware
A Middleware is a type that wraps a handler to remove boilerplate or other concerns not direct to any given Handler.
web/web.go:68
Struct
NameDoc
mapstructure/mapstructure_test.go:903
Struct
NameDoc
mapstructure/mapstructure_examples_test.go:225
Struct
NameDoc
examples/mapstructure/main.go:97
Struct
Nested
mapstructure/mapstructure_test.go:45
Struct
NumberFormat
mapstructure/mapstructure_test.go:835
Struct
NumberFormat
mapstructure/mapstructure_examples_test.go:196
Struct
NumberFormat
examples/mapstructure/main.go:27
Struct
OptEvent
OptEvent defines an handler used to provide events.
udp/udp_config.go:4
Struct
OptEvent
OptEvent defines an handler used to provide events.
pool/pool.go:50
Struct
OptEvent
OptEvent defines an handler used to provide events.
tcp/tcp_config.go:12
Struct
OptRateLimit
OptRateLimit declares fields for the user to provide configuration for connection rate limit.
tcp/tcp_config.go:7
Struct
People
mapstructure/mapstructure_test.go:984
Struct
People
mapstructure/mapstructure_examples_test.go:280
Struct
People
examples/mapstructure/main.go:130
Struct
Person
mapstructure/mapstructure_benchmark_test.go:8
Struct
Person
mapstructure/mapstructure_examples_test.go:9
Struct
Pool
Pool provides a pool of routines that can execute any Worker tasks that are submitted.
pool/pool.go:75
Interface
Provider
Provider is implemented by the user to provide the configuration as a map. There are currently two Providers implemented, EnvProvider and MapProvider.
cfg/cfg.go:22
Struct
ProxyResponseWriter
ProxyResponseWriter records the status code written by a call to the WriteHeader function on a http.ResponseWriter interface. This type also implement
web/proxy.go:8
Interface
ReqHandler
ReqHandler is implemented by the user to implement the processing of request messages from the client.
udp/handlers.go:36
Interface
ReqHandler
ReqHandler is implemented by the user to implement the processing of request messages from the client.
tcp/handlers.go:38
Struct
Request
Request is the message received by the client.
udp/handlers.go:10
Struct
Request
Request is the message received by the client.
tcp/handlers.go:11
Interface
RespHandler
RespHandler is implemented by the user to implement the processing of the response messages to the client.
udp/handlers.go:50
Interface
RespHandler
RespHandler is implemented by the user to implement the processing of the response messages to the client.
tcp/handlers.go:56
Struct
Response
Response is message to send to the client.
udp/handlers.go:20
Struct
Response
Response is message to send to the client.
tcp/handlers.go:22
Struct
Runner
Runner maintains state for the running process.
runner/runner.go:27
Struct
Slice
mapstructure/mapstructure_test.go:50
Struct
SliceOfStruct
mapstructure/mapstructure_test.go:55
Struct
Stat
Stat contains information about the pool.
pool/pool.go:41
Struct
Stat
Stat represents a client statistic.
tcp/tcp.go:386
Struct
TCP
TCP contains a set of networked client connections.
tcp/tcp.go:55
Struct
Tagged
mapstructure/mapstructure_test.go:59
Struct
Task
============================================================================== Task represents a task we need to run.
examples/runner/main.go:49
Struct
Task
Task represents a task we need to run.
examples/pool/main.go:65
TypeAlias
TraceIDKey
TraceIDKey is the type of value to use for the key. The key is type specific and only values of the same type will match.
examples/pool/main.go:31
Struct
TypeConversionResult
mapstructure/mapstructure_test.go:64
Struct
UDP
UDP manages message to a specific ip address and port.
udp/udp.go:29
Struct
User
mapstructure/mapstructure_test.go:841
Struct
User
mapstructure/mapstructure_examples_test.go:202
Struct
User
examples/mapstructure/main.go:33
Struct
User
User contains information about a user.
examples/web/internal/user/model.go:22
Struct
UserType
mapstructure/mapstructure_test.go:830
Struct
UserType
mapstructure/mapstructure_examples_test.go:191
Struct
UserType
examples/mapstructure/main.go:22
Struct
Values
============================================================================== Values extends the kit's value type stored inside the context.
examples/web/internal/sys/app/values.go:18
Struct
Values
Values represent state for each request.
web/web.go:56
Interface
Worker
Worker must be implemented by types that want to use this worker processes.
pool/pool.go:30
Struct
YodleeError
mapstructure/mapstructure_examples_test.go:305
Struct
client
client represents a single networked connection.
tcp/client.go:14
TypeAlias
ctxKey
Key represents the type of value for the context key.
examples/web/internal/sys/app/values.go:9
TypeAlias
ctxKey
Key represents the type of value for the context key.
web/web.go:50
Struct
doWork
doWork is used internally to route work to the pool.
pool/pool.go:35
Struct
task
============================================================================== task represents a test task.
runner/runner_test.go:22
Struct
tcpConnHandler
tcpConnHandler is required to process data.
examples/tcp/handlers.go:14
next →
1–100 of 115, ranked by callers