api

package
v0.0.0-...-ee556cc Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(
	cfg config.Config,
	store store.Store,
	authManager auth.AuthManager,
) *Server

@securityDefinitions.apikey BearerAuth @in header @name Authorization @description Type "Bearer" followed by a space and JWT token.

func (*Server) Shutdown

func (s *Server) Shutdown() error

func (*Server) Start

func (s *Server) Start() error

func (*Server) WriteError

func (s *Server) WriteError(w http.ResponseWriter, err errlocal.LocalError)

func (*Server) WriteResponse

func (s *Server) WriteResponse(w http.ResponseWriter, status int, data any)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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