server

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiResult

type ApiResult struct {
	Status  string      `json:"status"`
	Message string      `json:"message"`
	Result  interface{} `json:"result,omitempty"`
}

type Server

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

func NewServer

func NewServer(service, addr string, db *sql.DB, dbSchema string, log zLogger.ZLogger, accessLog io.Writer, jwtKey string, jwtAlg []string) (*Server, error)

func (*Server) Init

func (s *Server) Init() error

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(cert, key string) (err error)

func (*Server) Shutdown

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

Jump to

Keyboard shortcuts

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