common

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BMErrCode = iota
	BMErrInvalidParam
	BMErrDatabase
	BMErrNoRight
)

Variables

View Source
var (
	Version   string
	Commit    string
	BuildTime string
)
View Source
var LogFileName = "server.log"

Functions

func LogInst

func LogInst() *zerolog.Logger

func MustJson

func MustJson(val any) string

func MustProto

func MustProto(val proto.Message) []byte

func NewBMError

func NewBMError(code int, message string) error

func PrintVersion

func PrintVersion()

func SetLogLevel

func SetLogLevel(ll, file string)

Types

type BMError

type BMError struct {
	Code    int
	Message string
}

func (*BMError) Error

func (e *BMError) Error() string

type BMailAccount added in v1.0.4

type BMailAccount struct {
	UserLel      int8     `json:"user_lel"  firestore:"user_lel"`
	EMailAddress []string `json:"e_mail_address" firestore:"e_mail_address"`
	LicenseHex   string   `json:"license"  firestore:"license"`
}

type EmailReflect added in v1.0.4

type EmailReflect struct {
	BMailAddress string `json:"b_mail_address" firestore:"b_mail_address"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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