server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachingConfig

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

type Config

type Config struct {
	Server  baseapp.HTTPConfig            `yaml:"server"`
	Logging LoggingConfig                 `yaml:"logging"`
	Cache   CachingConfig                 `yaml:"cache"`
	Github  githubapp.Config              `yaml:"github"`
	Options handler.PullEvaluationOptions `yaml:"options"`
	Datadog datadog.Config                `yaml:"datadog"`
	Workers WorkerConfig                  `yaml:"workers"`
	TFE     plan.ClientProviderConfig     `yaml:"tfe"`
}

func ParseConfig

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

type LoggingConfig

type LoggingConfig struct {
	Level string `yaml:"level" json:"level"`
	Text  bool   `yaml:"text" json:"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 SessionsConfig

type SessionsConfig struct {
	Key      string `yaml:"key"`
	Lifetime string `yaml:"lifetime"`
}

type WorkerConfig

type WorkerConfig struct {
	Workers       int           `yaml:"workers"`
	QueueSize     int           `yaml:"queue_size"`
	GithubTimeout time.Duration `yaml:"github_timeout"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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