server

package
v0.0.0-...-a47d1aa Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "server"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HTTPPort int `yaml:"http_port"`
}

func (*Config) RegisterFlagsWithPrefix

func (c *Config) RegisterFlagsWithPrefix(f *flag.FlagSet, prefix string)

type Service

type Service struct {
	services.NamedService

	HTTP *mux.Router
	// contains filtered or unexported fields
}

func NewService

func NewService(cfg Config, clock clock.Clock, logger log.Logger, reg prometheus.Registerer, tp trace.TracerProvider, waitFor func() []services.Service) *Service

Jump to

Keyboard shortcuts

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