server

package
v1.6.2-0...-b66c343 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	serverww.Config   `yaml:",inline"`
	ExternalURL       string `yaml:"external_url"`
	HealthCheckTarget *bool  `yaml:"health_check_target"`
	Disable           bool   `yaml:"disable"`
	ProfilingEnabled  bool   `yaml:"profiling_enabled"`
	Reload            bool   `yaml:"enable_runtime_reload"`
}

Config extends weaveworks server config

func (*Config) RegisterFlags

func (cfg *Config) RegisterFlags(f *flag.FlagSet)

RegisterFlags adds the flags required to config this to the given FlagSet

func (*Config) RegisterFlagsWithPrefix

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

RegisterFlags with prefix registers flags where every name is prefixed by prefix. If prefix is a non-empty string, prefix should end with a period.

type NoopServer

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

func (*NoopServer) Run

func (s *NoopServer) Run() error

func (*NoopServer) Shutdown

func (s *NoopServer) Shutdown()

type PromtailServer

type PromtailServer struct {
	*serverww.Server
	// contains filtered or unexported fields
}

Server embed weaveworks server with static file and templating capability

func (*PromtailServer) PromtailConfig

func (s *PromtailServer) PromtailConfig() string

Reload returns the receive-only channel that signals configuration reload requests.

func (*PromtailServer) Reload

func (s *PromtailServer) Reload() <-chan chan error

Reload returns the receive-only channel that signals configuration reload requests.

func (*PromtailServer) ReloadServer

func (s *PromtailServer) ReloadServer(tms *targets.TargetManagers, promtailCfg string)

type Server

type Server interface {
	Shutdown()
	Run() error
}

func New

func New(cfg Config, log log.Logger, tms *targets.TargetManagers, promtailCfg string) (Server, error)

New makes a new Server

Directories

Path Synopsis
Package ui provides the assets via a virtual filesystem.
Package ui provides the assets via a virtual filesystem.

Jump to

Keyboard shortcuts

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