api

package
v0.0.0-...-8a57dd0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func New

func New(cfg *config.ServerConfig) *API

func (*API) RegisterHandlers

func (api *API) RegisterHandlers(engine *engine.Engine, pg *postgres.Client, accessManager *access.AccessManager, cfg *config.ServerConfig)

func (*API) Serve

func (api *API) Serve(host string, port int) error

func (*API) Shutdown

func (api *API) Shutdown() error

Directories

Path Synopsis
handler

Jump to

Keyboard shortcuts

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