api

package
v0.0.0-...-66e4c3a Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 13 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
	APIV1Auth  *echo.Group
	APIV1Push  *echo.Group
}

type Server

type Server struct {
	Config config.Server
	DB     *sql.DB
	Echo   *echo.Echo
	Router *Router
	Mailer *mailer.Mailer
	Push   *push.Service
	I18n   *i18n.Service
}

func NewServer

func NewServer(config config.Server) *Server

func (*Server) InitDB

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

func (*Server) InitI18n

func (s *Server) InitI18n() error

func (*Server) InitMailer

func (s *Server) InitMailer() error

func (*Server) InitPush

func (s *Server) InitPush() 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

Directories

Path Synopsis
Code generated by go run -tags scripts scripts/handlers/gen_handlers.go; DO NOT EDIT.
Code generated by go run -tags scripts scripts/handlers/gen_handlers.go; DO NOT EDIT.

Jump to

Keyboard shortcuts

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