panel

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(r *mux.Router, panel Panel)

Types

type Panel

type Panel interface {
	Set(userID, settingID string, value interface{}) error
	Print(userID string)
	ToPost(userID string) (*model.Post, error)
	Clear(userID string) error
	URL() string
	GetSettingIDs() []string
}

func NewSettingsPanel

func NewSettingsPanel(
	settingList []settings.Setting,
	p poster.Poster,
	l logger.Logger,
	store Store,
	settingHandler,
	pluginURL string,
) Panel

type Store

type Store interface {
	SetPanelPostID(userID string, postID string) error
	GetPanelPostID(userID string) (string, error)
	DeletePanelPostID(userID string) error
}

func NewPanelStore

func NewPanelStore(kv *pluginapi.KVService, keyPrefix string) Store

Directories

Path Synopsis
Package mock_panel is a generated GoMock package.
Package mock_panel is a generated GoMock package.

Jump to

Keyboard shortcuts

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