actions

package
v0.1.16-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(h Handler)

Types

type Handler

type Handler struct {
	DB    *gorm.DB
	Mongo *drivers.MongoClient
	Redis *drivers.RedisClient
}

type Logging

type Logging struct{}

func (*Logging) Cache

func (l *Logging) Cache(ctx context.Context, collection string, content any)

func (*Logging) Insert

func (l *Logging) Insert(ctx context.Context, collection string, content any)

type Plugin

type Plugin struct{}

func (*Plugin) DeleteConfig

func (p *Plugin) DeleteConfig(PName string, PType string) error

func (*Plugin) GetConfig

func (p *Plugin) GetConfig(PName string, PType string) (models.Plugin, error)

func (*Plugin) SaveConfig

func (p *Plugin) SaveConfig(UID int64, PName string, PType string, PConfig any, PAdd string) error

Jump to

Keyboard shortcuts

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