api

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	*gin.Engine
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer(db *store.Store, log logger.Logger) (*HTTPServer, error)

func (*HTTPServer) APIAuthenticateHandler

func (s *HTTPServer) APIAuthenticateHandler() gin.HandlerFunc

APIAuthenticateHandler is a middleware for authenticating the request based on ApiKey.

func (*HTTPServer) Start

func (s *HTTPServer) Start(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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