api

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 5 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
}

Server hold the gin engine and any clients we need for the API.

func NewServer

func NewServer(e *gin.Engine) *Server

NewServer returns a new instance of Server.

func (*Server) Setup

func (s *Server) Setup()

Setup sets any global middlewares then initializes the API.

func (*Server) WithController

func (s *Server) WithController(c *internal.Controller)

WithController sets the internal controller instance for the server.

func (*Server) WithVerboseRequestLogging

func (s *Server) WithVerboseRequestLogging()

WithVerboseRequestLogging sets the server to use verbose request logging.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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