api

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PingApi

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

func NewPingApi

func NewPingApi(svc *service.Service) *PingApi

type Server

type Server struct {
	*http.Server
	// contains filtered or unexported fields
}

Server provides an http.Server.

func NewServer

func NewServer(konf *koanf.Koanf) (*Server, error)

NewServer creates and configures an APIServer serving all application routes.

func (*Server) Init

func (srv *Server) Init() error

func (*Server) Start

func (srv *Server) Start()

Start runs ListenAndServe on the http.Server with graceful shutdown.

type WebAPI

type WebAPI struct {
	Handler *chi.Mux
	// contains filtered or unexported fields
}

func NewWebAPI

func NewWebAPI(svc *service.Service) *WebAPI

func (*WebAPI) Shutdown

func (webapi *WebAPI) Shutdown()

Jump to

Keyboard shortcuts

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