watchman

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watchman

type Watchman struct {
	DeleteQue chan int64
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context,
	ctrl *controller.Controller,
	btapi botapi.BotAPI,
	db *db.Database,
	config *Watchmanconfig,
	logger *zap.Logger,
	mgstore *botapi.MessageStore,

) (*Watchman, error)

func (*Watchman) CheckClose

func (w *Watchman) CheckClose() error

func (*Watchman) Close

func (w *Watchman) Close() error

func (*Watchman) Delmg

func (w *Watchman) Delmg(delmg int)

func (*Watchman) PreprosessDb

func (w *Watchman) PreprosessDb(refreshcontext context.Context, msgchan chan any) (*preprosessd, error)

func (*Watchman) RefreshDb

func (w *Watchman) RefreshDb(refreshcontext context.Context, docount bool, forceReset bool) error

refresh member verificity refresh usage to database if docount true CheckkCount will increase by one if forceReset true All Usage Will Resets And Checkcount will be zero

func (*Watchman) Start

func (w *Watchman) Start() error

type Watchmanconfig

type Watchmanconfig struct {
	//Simlogpath string `json:"box_log"`
	Delbuffer int `json:"del_buffer"` //msg count to buffer before delete
}

Jump to

Keyboard shortcuts

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