Documentation ¶
Index ¶
- Constants
- func NewContext(ctx context.Context, s App) context.Context
- type App
- type Gaia
- type Option
- func WithContext(ctx context.Context) Option
- func WithEndpoint(endpoints ...*url.URL) Option
- func WithID(id string) Option
- func WithLogger(logger log.Logger) Option
- func WithMetadata(md map[string]string) Option
- func WithName(name string) Option
- func WithRegistry(r registry.Registry) Option
- func WithRegistryTimeout(t time.Duration) Option
- func WithServer(srv ...transport.Server) Option
- func WithSignal(sigs ...os.Signal) Option
- func WithStopTimeout(t time.Duration) Option
- func WithVersion(version string) Option
Constants ¶
View Source
const ( Name = "Gaia" Version = "v1.7.3" )
Name and Version info of this framework, used for statistics and debug
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶ added in v1.2.1
type Gaia ¶
type Gaia struct {
// contains filtered or unexported fields
}
type Option ¶
type Option func(o *options)
Option is an application option.
func WithEndpoint ¶
WithEndpoint with service endpoint.
func WithMetadata ¶
WithMetadata with service metadata.
func WithRegistry ¶
WithRegistry with service registry.
func WithRegistryTimeout ¶
WithRegistryTimeout with registrar timeout.
func WithServer ¶
WithServer with a server , http or grpc
func WithStopTimeout ¶
WithStopTimeout with app stop timeout.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
gaia
Module
|
|
protoc-gen-go-gin
Module
|
|
proto
Package proto defines the protobuf codec.
|
Package proto defines the protobuf codec. |
internal
|
|
pkg
module
|
|
plugins
|
|
registry/consul
Module
|
|
registry/etcd
Module
|
|
registry/k8s
Module
|
|
registry/nacos
Module
|
|
transport/fasthttp
Module
|
|
transport/hertz
Module
|
|
transport/websocket
Module
|
|
Click to show internal directories.
Click to hide internal directories.