server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RouteAPIRegister string = "/api/register"
	RouteAPISend     string = "/api/send"
	RouteAPIPosts    string = "/api"

	PostsPerPage int = 30
)

Variables

This section is empty.

Functions

func IPAddress

func IPAddress() config.IPAddress

func Port

func Port() config.Port

func SetIPAddress

func SetIPAddress(newIP config.IPAddress)

func SetPort

func SetPort(newPort config.Port)

Types

type Handler

type Handler struct{}

type Option

type Option func(*Service) error

type Service

type Service struct {
	*http.Server
	Errors chan error
}

func New

func New() *Service

func (*Service) Shutdown

func (s *Service) Shutdown(ctx context.Context, wg *sync.WaitGroup) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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