webplatform

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configs = configset.Set[Config]{
	Default: &Config{},
	Dev:     &Config{Port: defaultPort},
	Test:    &Config{},
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Port int `koanf:"port"` // 0 - disabled
}

type Svc

type Svc struct {
	Config *Config
	// contains filtered or unexported fields
}

func New

func New(cfg *Config, l *zap.Logger) *Svc

func (*Svc) Addr

func (w *Svc) Addr() string

func (*Svc) Start

func (w *Svc) Start(context.Context) error

func (*Svc) Stop

func (w *Svc) Stop(context.Context) error

func (*Svc) Version added in v0.10.4

func (w *Svc) Version() string

Jump to

Keyboard shortcuts

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