server

package
v0.0.0-...-ac0b3eb Latest Latest
Warning

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

Go to latest
Published: Apr 13, 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 Router

type Router struct {
	Routes     []*echo.Route
	Root       *echo.Group
	Management *echo.Group
	APIV1Push  *echo.Group
}

type Server

type Server struct {
	Config config.Server
	DB     *pgxpool.Pool
	Echo   *echo.Echo
	SB     *supabase.Client
	Router *Router
}

func NewServer

func NewServer(config config.Server) *Server

func (*Server) InitDB

func (s *Server) InitDB() error

func (*Server) Ready

func (s *Server) Ready() bool

func (*Server) Shutdown

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

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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