server

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger promLogger

Functions

func Run

func Run(config Config)

Types

type Config

type Config struct {
	Endpoint string

	TLSConfig           string
	DisableGZIPEncoding bool
}

type Options

type Options struct {
	Host string
	Port int

	TLSConfig           string
	DisableGZIPEncoding bool

	Metrics *metrics.Options
}

func NewOptions

func NewOptions() *Options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

func (*Options) Config

func (o *Options) Config() (config Config)

func (*Options) Validate

func (o *Options) Validate() []error

Jump to

Keyboard shortcuts

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