Documentation ¶
Index ¶
- func StartDefaultHttpServer(ctx context.Context, opts ...ServerOption)
- type ServerOption
- func WithConfiguration(microserviceConfiguration *configuration.MicroserviceConfiguration) ServerOption
- func WithEnvironment(environment string) ServerOption
- func WithGracefulShutdownTimeout(timeout time.Duration) ServerOption
- func WithName(name string) ServerOption
- func WithPort(port int32) ServerOption
- func WithRevision(revision int) ServerOption
- func WithVersion(version string) ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartDefaultHttpServer ¶
func StartDefaultHttpServer(ctx context.Context, opts ...ServerOption)
Types ¶
type ServerOption ¶
type ServerOption func(cfg *serverConfig)
func WithConfiguration ¶
func WithConfiguration(microserviceConfiguration *configuration.MicroserviceConfiguration) ServerOption
func WithEnvironment ¶
func WithEnvironment(environment string) ServerOption
func WithGracefulShutdownTimeout ¶
func WithGracefulShutdownTimeout(timeout time.Duration) ServerOption
func WithName ¶
func WithName(name string) ServerOption
func WithPort ¶
func WithPort(port int32) ServerOption
func WithRevision ¶
func WithRevision(revision int) ServerOption
func WithVersion ¶
func WithVersion(version string) ServerOption
Click to show internal directories.
Click to hide internal directories.