Documentation ¶
Overview ¶
Package box is a bootstrap to help you build mirco services easily.
Index ¶
- type Application
- type Box
- type Option
- func WithAutoMaxProcs(autoMaxProcs bool) Option
- func WithBoxes(boxes ...Box) Option
- func WithId(id string) Option
- func WithLog(l log.Logger) Option
- func WithMeta(meta map[string]string) Option
- func WithName(name string) Option
- func WithNameSpace(namespace string) Option
- func WithShutdownTimeout(timeout int) Option
- func WithStartupTimeout(timeout int) Option
- func WithVersion(version string) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Option ¶
type Option func(ops *Options)
Option setter
func WithAutoMaxProcs ¶
WithAutoMaxProcs auto set `P`
func WithNameSpace ¶
WithNameSpace with service namespace.
func WithShutdownTimeout ¶
WithShutdownTimeout app shutdown timeout
func WithStartupTimeout ¶
WithStartupTimeout app startup timeout
Directories ¶
Path | Synopsis |
---|---|
Package build contains application build information ```sh go build -ldflags="-X 'github.com/boxgo/box/v2/build.ID={ID}' -X 'github.com/boxgo/box/v2/build.Name={Name}' -X 'github.com/boxgo/box/v2/build.Version={Version}' -X 'github.com/boxgo/box/v2/build.Namespace={Namespace}'" ```
|
Package build contains application build information ```sh go build -ldflags="-X 'github.com/boxgo/box/v2/build.ID={ID}' -X 'github.com/boxgo/box/v2/build.Name={Name}' -X 'github.com/boxgo/box/v2/build.Version={Version}' -X 'github.com/boxgo/box/v2/build.Namespace={Namespace}'" ``` |
client
|
|
rabbitmq
Package rabbitmq is an AMQP 0.9.1 client with RabbitMQ extensions in Go.
|
Package rabbitmq is an AMQP 0.9.1 client with RabbitMQ extensions in Go. |
Package codec handles data encoding
|
Package codec handles data encoding |
Package config is an interface for dynamic configuration.
|
Package config is an interface for dynamic configuration. |
reader
Package reader parses change sets and provides config values
|
Package reader parses change sets and provides config values |
source
Package source is the interface for sources
|
Package source is the interface for sources |
source/file
Package file is a file source.
|
Package file is a file source. |
contrib
|
|
grpc
|
|
internal
|
|
Package schedule is to help you manage schedule tasks.
|
Package schedule is to help you manage schedule tasks. |
ginserver/mid/ginlog
Package ginlog is gin server logger middleware.
|
Package ginlog is gin server logger middleware. |
ginserver/mid/ginsession
Package ginsession is gin server session middleware.
|
Package ginsession is gin server session middleware. |
util
|
|
Click to show internal directories.
Click to hide internal directories.