server

package
v0.0.0-...-d09092c Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port int
	Host string
}

type Response

type Response struct {
	Items interface{} `json:"items"`
}

type Server

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

func New

func New(cfg *Config, sqlDb *sql.DB) (*Server, error)

func (*Server) Shutdown

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

func (*Server) Start

func (srv *Server) Start() error

Jump to

Keyboard shortcuts

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