server

package
v0.0.0-...-f49f4f7 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flags

func Flags() []cli.Flag

Types

type Config

type Config struct {
	Data  *DataConfig    `hcl:"data,optional"`
	Log   *logger.Config `hcl:"log,optional"`
	HTTP  *HTTPConfig    `hcl:"http,optional"`
	Nomad *NomadConfig   `hcl:"nomad,optional"`
	RPC   *RPCConfig     `hcl:"rpc,optional"`
	State *state.Config  `hcl:"state,optional"`
}

func ConfigFromCLI

func ConfigFromCLI(cmd *cli.Command) *Config

func DefaultConfig

func DefaultConfig() *Config

func (*Config) Merge

func (c *Config) Merge(other *Config) *Config

type DataConfig

type DataConfig struct {
	Path string `hcl:"path,optional"`
}

type HTTPConfig

type HTTPConfig struct {
	Addr           string `hcl:"addr,optional"`
	AccessLogLevel string `hcl:"access_log_level,optional"`
}

type NomadConfig

type NomadConfig struct {
	Addr  string `hcl:"addr,optional"`
	Token string `hcl:"token,optional"`
}

type RPCConfig

type RPCConfig struct {
	Addr string `hcl:"addr,optional"`
}

type Server

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

func NewServer

func NewServer(cfg *Config) (*Server, error)

func (*Server) Start

func (s *Server) Start()

func (*Server) Stop

func (s *Server) Stop()

func (*Server) WaitForSignals

func (s *Server) WaitForSignals()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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