server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiServer

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

func NewApiServer

func NewApiServer(c ApiServerConfig) *ApiServer

func (*ApiServer) Serve

func (s *ApiServer) Serve()

type ApiServerConfig

type ApiServerConfig struct {
	MasterKey     string
	Host          string
	Port          int
	ApiKeyStorage apikey.Storer
	App           app.App
	Logger        *logger.Logger
}

type JsonEncoderResult

type JsonEncoderResult struct {
	JsonContent []byte
	Err         error
}

Jump to

Keyboard shortcuts

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