server

package
v0.0.0-...-124c13c Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MindwellServer

type MindwellServer struct {
	DB   *sql.DB
	PS   *pubsub.PubSub
	API  *operations.MindwellAPI
	Ntf  *notifications.CompositeNotifier
	Eac  validation.EmailAllowedChecker
	Imgs *cache.Cache
	// contains filtered or unexported fields
}

func NewMindwellServer

func NewMindwellServer(api *operations.MindwellAPI, configPath string) *MindwellServer

func (*MindwellServer) ConfigBool

func (srv *MindwellServer) ConfigBool(field string) bool

func (*MindwellServer) ConfigBytes

func (srv *MindwellServer) ConfigBytes(field string) []byte

func (*MindwellServer) ConfigInt

func (srv *MindwellServer) ConfigInt(field string) int

func (*MindwellServer) ConfigInt64

func (srv *MindwellServer) ConfigInt64(field string) int64

func (*MindwellServer) ConfigInt64s

func (srv *MindwellServer) ConfigInt64s(field string) []int64

func (*MindwellServer) ConfigInts

func (srv *MindwellServer) ConfigInts(field string) []int

func (*MindwellServer) ConfigOptString

func (srv *MindwellServer) ConfigOptString(field string) string

func (*MindwellServer) ConfigString

func (srv *MindwellServer) ConfigString(field string) string

func (*MindwellServer) ConfigStrings

func (srv *MindwellServer) ConfigStrings(field string) []string

func (*MindwellServer) GetDB

func (srv *MindwellServer) GetDB() *sql.DB

func (*MindwellServer) ImagesFolder

func (srv *MindwellServer) ImagesFolder() string

func (*MindwellServer) Log

func (srv *MindwellServer) Log(tpe string) *zap.Logger

func (*MindwellServer) LogApi

func (srv *MindwellServer) LogApi() *zap.Logger

func (*MindwellServer) LogEmail

func (srv *MindwellServer) LogEmail() *zap.Logger

func (*MindwellServer) LogRequest

func (srv *MindwellServer) LogRequest() *zap.Logger

func (*MindwellServer) LogSystem

func (srv *MindwellServer) LogSystem() *zap.Logger

func (*MindwellServer) LogTelegram

func (srv *MindwellServer) LogTelegram() *zap.Logger

func (*MindwellServer) NewAvatar

func (srv *MindwellServer) NewAvatar(avatar string) *models.Avatar

func (*MindwellServer) NewCover

func (srv *MindwellServer) NewCover(id int64, cover string) *models.Cover

func (*MindwellServer) NewError

func (srv *MindwellServer) NewError(msg *i18n.Message) *models.Error

NewError returns error object with some message

func (*MindwellServer) StandardError

func (srv *MindwellServer) StandardError(name string) *models.Error

func (*MindwellServer) TokenHash

func (srv *MindwellServer) TokenHash() auth.TokenHash

func (*MindwellServer) Transact

func (srv *MindwellServer) Transact(txFunc func(*database.AutoTx) middleware.Responder) middleware.Responder

Jump to

Keyboard shortcuts

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