server

package
v5.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts ...ServerOption)

Run run server

Types

type Functions

type Functions struct {
	List []func()
}

func (*Functions) Add

func (fs *Functions) Add(f func())

func (*Functions) Ret

func (fs *Functions) Ret() func()

type Server

type Server struct {
	ConfigFile string
	Version    string
	Key        string
}

type ServerOption

type ServerOption func(*Server)

func SetConfigFile

func SetConfigFile(f string) ServerOption

func SetKey added in v5.14.0

func SetKey(k string) ServerOption

func SetVersion

func SetVersion(v string) ServerOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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