bot

package
v0.0.0-...-23b7d5e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ViewCmdAddSource

func ViewCmdAddSource(storage SourceStorage) botkit.ViewFunc

func ViewCmdDeleteSource

func ViewCmdDeleteSource(deleter SourceDeleter) botkit.ViewFunc

func ViewCmdGetSource

func ViewCmdGetSource(provider SourceProvider) botkit.ViewFunc

func ViewCmdListSource

func ViewCmdListSource(lister SourceLister) botkit.ViewFunc

func ViewCmdSetPriority

func ViewCmdSetPriority(prioritySetter PrioritySetter) botkit.ViewFunc

Types

type PrioritySetter

type PrioritySetter interface {
	SetPriority(ctx context.Context, sourceID int64, priority int) error
}

type SourceDeleter

type SourceDeleter interface {
	Delete(ctx context.Context, sourceID int64) error
}

type SourceLister

type SourceLister interface {
	Sources(ctx context.Context) ([]model.Source, error)
}

type SourceProvider

type SourceProvider interface {
	SourceByID(ctx context.Context, id int64) (*model.Source, error)
}

type SourceStorage

type SourceStorage interface {
	Add(ctx context.Context, source model.Source) (int64, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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