system

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type System

type System interface {
	SetID(id int)
	GetID() int
	GetConfig() map[string]interface{}
	SetConfig(cfg *map[string]interface{})
	SetLogger(logger *zap.SugaredLogger)
	GetCapabilities() adapter.Capabilities

	FilterValue() string
	Title() string
	Description() string

	Connect(sysURL string) error
	Load() error

	ListForums() ([]forum.Forum, error)
	ListPosts(forumID string) ([]post.Post, error)
	LoadPost(p *post.Post) error
	CreatePost(p *post.Post) error
	CreateReply(r *reply.Reply) error
}

func New

func New(
	sysType string,
	sysConfig *map[string]interface{},
	logger *zap.SugaredLogger,
) (System, error)

Directories

Path Synopsis
api
api

Jump to

Keyboard shortcuts

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