handlers

package
v0.0.0-...-95d8435 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubHandler

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

func NewSubHandler

func NewSubHandler(bot bots.Bot, db *gorm.DB, eng *rule.Engine) *SubHandler

func (*SubHandler) AddSub

func (e *SubHandler) AddSub(name types.EventType, id client.SubscriptionID, hd handler)

func (*SubHandler) Close

func (e *SubHandler) Close() error

func (*SubHandler) HandleBalanceChange

func (e *SubHandler) HandleBalanceChange(ctx context.Context, er *types.EventResult, ed interface{}) error

HandleBalanceChange handle the balance change events.

func (*SubHandler) HandleDeleteObject

func (e *SubHandler) HandleDeleteObject(ctx context.Context, er *types.EventResult, ed interface{}) error

HandleDeleteObject handle delete object events

func (*SubHandler) HandleMove

func (e *SubHandler) HandleMove(_ context.Context, er *types.EventResult, ed interface{}) error

HandleMove handle delete object events

func (*SubHandler) HandleMutateObject

func (e *SubHandler) HandleMutateObject(_ context.Context, er *types.EventResult, ed interface{}) error

HandleMutateObject handle mutate object events

func (*SubHandler) HandleNewObject

func (e *SubHandler) HandleNewObject(_ context.Context, er *types.EventResult, ed interface{}) error

HandleNewObject handle delete object events

func (*SubHandler) HandlePublish

func (e *SubHandler) HandlePublish(_ context.Context, er *types.EventResult, ed interface{}) error

HandlePublish handle publish event

func (*SubHandler) HandleTransferObject

func (e *SubHandler) HandleTransferObject(_ context.Context, er *types.EventResult, ed interface{}) error

HandleTransferObject handle transfer object event

func (*SubHandler) RemoveSub

func (e *SubHandler) RemoveSub(id client.SubscriptionID)

func (*SubHandler) SubscribeEvent

func (e *SubHandler) SubscribeEvent(ctx context.Context, r jsonrpc.RawParams) error

Jump to

Keyboard shortcuts

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