server

package
v0.0.0-...-dabe4b8 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 Options            `yaml:"options"`
	Logging LoggingConfig      `yaml:"logging"`
	Datadog datadog.Config     `yaml:"datadog"`
	Cache   CacheConfig        `yaml:"cache"`
}

func ParseConfig

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

type LoggingConfig

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

type Options

type Options struct {
	AppName                  string            `yaml:"app_name"`
	ConfigurationPath        string            `yaml:"configuration_path"`
	DefaultRepositoryConfig  *bulldozer.Config `yaml:"default_repository_config"`
	PushRestrictionUserToken string            `yaml:"push_restriction_user_token"`
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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