server

package
v0.0.0-...-2686f8f Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, logger *zap.Logger, opts *options.Opts) error

Run start program with specified parameters

Types

type Server

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

Server main app struct that represents http server

func NewServer

func NewServer(opts *options.Opts, logger *zap.Logger) *Server

NewServer create new Server

func (*Server) RunHTTP

func (s *Server) RunHTTP(ctx context.Context) error

RunHTTP start listen and server http server

func (*Server) SetRoutes

func (s *Server) SetRoutes(a *api.API, md *middleware.MD)

SetRoutes create router

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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