server

package
v0.0.0-...-a0fa9d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseConfig

type BaseConfig struct {
	Enabled bool `yaml:"enabled" mapstructure:"enabled"`
}

func NewDefConfig

func NewDefConfig() BaseConfig

type Config

type Config interface {
	Name() string
}

type Server

type Server interface {
	// Start service and keep the goroutine of the blocked
	Start(ctx context.Context, group *errgroup.Group) error
	// Close service and release resources(e.g. http connect)
	Close() error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL