wcdh

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port    int    `yaml:"port"`
	ApiKey  string `yaml:"api_key"`
	BaseURL string `yaml:"base_url"`
}

type Server

type Server struct {
	*ctx.Ctx
	Cfg *Config
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx *ctx.Ctx, cfg *Config, db *badger.DB) *Server

func (*Server) Run

func (s *Server) Run() error

func (*Server) Shutdown

func (s *Server) Shutdown(timeout time.Duration) error

Jump to

Keyboard shortcuts

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