server

package
v0.0.0-...-dc53eb0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(conf *Config) error

func NewServer

func NewServer(store store.Store) *server

func Start

func Start(conf *Config) error

Types

type Config

type Config struct {
	Name     string `envconfig:"NAME" default:"search api"`
	BindAddr string `envconfig:"BIND_ADDR" default:"127.0.0.1:8080"`
	DB       common.DBConfig
	Redis    common.RedisConfig
}

Jump to

Keyboard shortcuts

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