Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Limiter *limiter.Config `yaml:"limiter,omitempty" json:"limiter,omitempty" toml:"limiter,omitempty"`
Retry *retry.Config `yaml:"retry,omitempty" json:"retry,omitempty" toml:"retry,omitempty"`
TLS *tls.Config `yaml:"tls,omitempty" json:"tls,omitempty" toml:"tls,omitempty"`
Token *token.Config `yaml:"token,omitempty" json:"token,omitempty" toml:"token,omitempty"`
Timeout string `yaml:"timeout,omitempty" json:"timeout,omitempty" toml:"timeout,omitempty"`
Address string `yaml:"address,omitempty" json:"address,omitempty" toml:"address,omitempty"`
}
Config for server.
type Server ¶
type Server interface {
fmt.Stringer
// Serve the underlying server.
Serve() error
// Shutdown the underlying server.
Shutdown(ctx context.Context) error
}
Server allows transports to create their own.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service handles the starting and stopping of a server.
func NewService ¶
NewService that can start and stop an underlying server.
Click to show internal directories.
Click to hide internal directories.