models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BarkLog

type BarkLog struct {
	Id          int64           `db:"id" json:"id"`
	LogTime     time.Time       `db:"log_time" json:"logTime"`
	LogLevel    string          `db:"log_level" json:"logLevel"`
	ServiceName string          `db:"service_name" json:"serviceName"`
	SessionName string          `db:"session_name" json:"sessionName"`
	Code        string          `db:"code" json:"code"`
	Message     string          `db:"msg" json:"msg"`
	MoreData    json.RawMessage `db:"more_data" json:"moreData"`
}

BarkLog is a struct representing a log in Bark

func (BarkLog) String

func (b BarkLog) String() string

func (BarkLog) ValidateForInsert

func (b BarkLog) ValidateForInsert() (BarkLog, error)

type BarkLogDao

type BarkLogDao struct{}

func NewBarkLogDao

func NewBarkLogDao() *BarkLogDao

func (*BarkLogDao) Insert

func (bld *BarkLogDao) Insert(l BarkLog) error

Insert inserts a Bark log in the database

func (*BarkLogDao) InsertBatch

func (bld *BarkLogDao) InsertBatch(l []BarkLog) error

func (*BarkLogDao) InsertServerStartedLog

func (bld *BarkLogDao) InsertServerStartedLog() error

Jump to

Keyboard shortcuts

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