web_apis

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctx context.Context, prefix string) model.Module

func WithSupbIndex

func WithSupbIndex(index *supbindex.Index) model.Option

func WithSupbLogClr

func WithSupbLogClr(logClr *supblog.SupbLog) model.Option

func WithSupbMetricsClr

func WithSupbMetricsClr(metricsClr *supbmetric.SupbMetrics) model.Option

func WithSupbResMgr

func WithSupbResMgr(resources *supbres.SupbResources) model.Option

func WithSupbStrategyClr

func WithSupbStrategyClr(strategyClr *supbstrategy.SupbStrategy) model.Option

func WithTrace

func WithTrace(trace *supbtrace.SupbTrace) model.Option

Types

type WebServer

type WebServer struct {
	// contains filtered or unexported fields
}

func (*WebServer) Close

func (r *WebServer) Close() error

func (*WebServer) InitFlags

func (r *WebServer) InitFlags(flags *pflag.FlagSet)

func (*WebServer) InitViper

func (r *WebServer) InitViper(viper *viper.Viper)

func (*WebServer) Initialize

func (r *WebServer) Initialize(opts ...model.Option)

func (*WebServer) OptionConfig

func (r *WebServer) OptionConfig(opts ...model.Option)

func (*WebServer) Run

func (r *WebServer) Run()

func (*WebServer) ViperConfig

func (r *WebServer) ViperConfig(viper *viper.Viper)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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