modules

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Modules = map[string]NewModuleFunc{}

Functions

This section is empty.

Types

type BaseModule

type BaseModule struct {
	// contains filtered or unexported fields
}

func NewBaseModule

func NewBaseModule(ctx context.Context, logger *zap.Logger, db *sql.DB, discord *state.State, guild discord.Guild, job string, cfg *config.Discord, appCfg appconfig.IConfig, enricher *mstlystcdata.Enricher, settings *users.DiscordSyncSettings) *BaseModule

func (*BaseModule) SetSettings added in v0.9.3

func (m *BaseModule) SetSettings(settings *users.DiscordSyncSettings)

type GroupSync

type GroupSync struct {
	*BaseModule
}

func (*GroupSync) GetName added in v0.9.3

func (g *GroupSync) GetName() string

func (*GroupSync) Plan

func (g *GroupSync) Plan(ctx context.Context) (*types.State, []discord.Embed, error)

type Module

type Module interface {
	GetName() string
	Plan(ctx context.Context) (*types.State, []discord.Embed, error)
}

func GetModule

func GetModule(name string, base *BaseModule, events *broker.Broker[interface{}]) (Module, error)

func NewGroupSync

func NewGroupSync(base *BaseModule, _ *broker.Broker[interface{}]) (Module, error)

func NewQualifications added in v0.9.2

func NewQualifications(base *BaseModule, _ *broker.Broker[interface{}]) (Module, error)

func NewUserInfo

func NewUserInfo(base *BaseModule, events *broker.Broker[interface{}]) (Module, error)

type NewModuleFunc

type NewModuleFunc func(*BaseModule, *broker.Broker[interface{}]) (Module, error)

type QualificationsSync added in v0.9.2

type QualificationsSync struct {
	*BaseModule
}

func (*QualificationsSync) GetName added in v0.9.3

func (g *QualificationsSync) GetName() string

func (*QualificationsSync) Plan added in v0.9.2

type UserInfo

type UserInfo struct {
	*BaseModule
	// contains filtered or unexported fields
}

func (*UserInfo) GetName added in v0.9.3

func (g *UserInfo) GetName() string

func (*UserInfo) Plan

func (g *UserInfo) Plan(ctx context.Context) (*types.State, []discord.Embed, error)

Jump to

Keyboard shortcuts

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