api

package
v0.0.0-...-f239e5c Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 16 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 NewAPI

func NewAPI(ctx context.Context, logger *zap.SugaredLogger, storage *storage.Storage, config *Config) *API

func (*API) Authenticator

func (a *API) Authenticator() gin.HandlerFunc

func (*API) Close

func (a *API) Close() error

func (*API) Listen

func (a *API) Listen()

type Config

type Config struct {
	Port uint16
}

func NewConfig

func NewConfig(port uint16) *Config

Jump to

Keyboard shortcuts

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