middle

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InjectorCode = "" /* 3240-byte string literal not displayed */

Functions

func FetchRemotePlugins

func FetchRemotePlugins() []api.Plugin

func OpenURL

func OpenURL(url string) error

func WriteConfig

func WriteConfig(cfg Config)

Types

type Config

type Config struct {
	DiscordPath string `json:"discordPath"`
}

func ReadConfig

func ReadConfig() Config

type DiscordInstance

type DiscordInstance struct {
	Path    string
	Channel string
}

func GetChannels

func GetChannels() []DiscordInstance

func GetInstance

func GetInstance(channel string) (DiscordInstance, error)

func NewDiscordInstance

func NewDiscordInstance(path string) (*DiscordInstance, error)

type ReturnData

type ReturnData struct {
	Name string `json:"name"`
}

func CheckHealth

func CheckHealth() ReturnData

type Warning

type Warning struct {
	Text      string
	Action    WarningID
	Parameter string
}

Warning represents a warning to show the user on the primary view.

func FindWarnings

func FindWarnings(config Config) []Warning

type WarningID

type WarningID int
const (
	// NullActionWarningID cannot be automatically fixed.
	NullActionWarningID WarningID = iota
	// InstallOrUpdatePackageWarningID warnings can be solved by installing/updating the package Parameter.
	InstallOrUpdatePackageWarningID
	// URLAndCloseWarningID warnings can be solved manually by the user given navigation to a URL. The application closes.
	URLAndCloseWarningID
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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