server

package
v0.0.0-...-9f22dab Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigServer

type ConfigServer struct {
	Labs         []handlers.Lab  `yaml:"labs"`
	Redis        Redis           `yaml:"redis"`
	ServerConfig ServerConfig    `yaml:"server"`
	Logging      LogConfig       `yaml:"logging"`
	Marker       handlers.Marker `yaml:"marker"`
}

type HTMLServer

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

func StartServer

func StartServer(config_path string) *HTMLServer

TODO make sure docker image is built before server starts

func (*HTMLServer) Stop

func (htmlServer *HTMLServer) Stop() error

type LogConfig

type LogConfig struct {
	LogDir   string `yaml:"log_dir"`
	LogLevel string `yaml:"log_level"`
}

type LogHTTPSever

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

type Redis

type Redis struct {
	MaxRetry    int    `yaml:"max_retry"`
	RateLimiter string `yaml:"rate_limiter"`
	RedisServer string `yaml:"redis_server"`
}

type ServerConfig

type ServerConfig struct {
	ServerPort   string `yaml:"server_port"`
	Host         string `yaml:"host"`
	WriteTimeout int32  `yaml:"write_timeout"`
	ReadTimeout  int32  `yaml:"read_timeout"`
	TemplatePath string `yaml:"template_path"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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