Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: Apache-2.0 Imports: 23 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,
	fileStore filestore.FileStore,
	authManager auth.AuthManager,
	predictor predictor,
	logger *logging.Logger,
) *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, r *http.Request, err error)

func (*Server) WriteResponse

func (s *Server) WriteResponse(w http.ResponseWriter, r *http.Request, 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