server

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEnvPrefix = "BULLDOZER_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheConfig

type CacheConfig struct {
	MaxSize datasize.ByteSize `yaml:"max_size"`
}

type Config

type Config struct {
	Server     baseapp.HTTPConfig `yaml:"server"`
	Github     githubapp.Config   `yaml:"github"`
	Options    handler.Options    `yaml:"options"`
	Logging    LoggingConfig      `yaml:"logging"`
	Datadog    datadog.Config     `yaml:"datadog"`
	Prometheus prometheus.Config  `yaml:"prometheus"`
	Cache      CacheConfig        `yaml:"cache"`
	Workers    WorkerConfig       `yaml:"workers"`
}

func ParseConfig

func ParseConfig(bytes []byte) (*Config, error)

type LoggingConfig

type LoggingConfig struct {
	Level string `yaml:"level"`
	Text  bool   `yaml:"text"`
}

type Server

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

func New

func New(c *Config) (*Server, error)

New instantiates a new Server. Callers must then invoke Start to run the Server.

func (*Server) Start

func (s *Server) Start() error

Start is blocking and long-running

type WorkerConfig

type WorkerConfig struct {
	Workers   int `yaml:"workers"`
	QueueSize int `yaml:"queue_size"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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