service

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConnection

type DBConnection struct {
	Q *db.Queries
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(dburl string) (*DBConnection, error)

func (*DBConnection) Close

func (this *DBConnection) Close()

func (*DBConnection) Ping

func (this *DBConnection) Ping(ctx context.Context) error

func (*DBConnection) TruncateAll

func (this *DBConnection) TruncateAll()

type Service

type Service struct {
	Konf  *koanf.Koanf
	DB    *DBConnection
	AuthM *auth.AuthMiddleware
}

func NewService

func NewService(Konf *koanf.Koanf) (*Service, error)

func (*Service) Close

func (this *Service) Close()

func (*Service) GetJWTUtil

func (svc *Service) GetJWTUtil() *auth.JWTUtil

func (*Service) InitServer

func (svc *Service) InitServer() error

Jump to

Keyboard shortcuts

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