api

package
v0.0.0-...-a942fbd Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 30 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
	APIV1Invoice *echo.Group
	APIV1Test    *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) Notify

func (s *Server) Notify(ctx context.Context)

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

func (*Server) WatchEthPay

func (s *Server) WatchEthPay(ctx context.Context, network string, url string, contractAddr string) error

func (*Server) WatchPay

func (s *Server) WatchPay(ctx context.Context)

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