config

package
v0.0.0-...-0ae16d5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(pluginFunc plugins.PluginFunc)

Install install plugin

func InstallDefaultPlugins

func InstallDefaultPlugins()

InstallDefaultPlugins install the default plugin

func Invoke

func Invoke(name string, args ...interface{}) string

Invoke trigger plugin function

Types

type Exchange

type Exchange struct {
	Port     int
	Host     string
	Protocol string
	Name     string
}

Exchange exchange properties

type ExchangeContext

type ExchangeContext interface {
	Write(buffer []byte)
	Shutdown()
}

type Func

type Func struct {
	Name string
	Args []interface{}
}

Func function

type Git

type Git struct {
	Name    string
	Path    string
	Disable bool
}

Git to describe Repo's structure

type JournalConfig

type JournalConfig struct {
	Version    string
	Maintainer string
	Git        map[string]Git
}

JournalConfig to describe .journal.yaml

type Runtime

type Runtime struct {
	Plugins map[string]plugins.PluginFunc
}

Runtime structure

func GetRuntime

func GetRuntime() Runtime

GetRuntime runtime instance

type SampleScanner

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

func ScannerInstance

func ScannerInstance() SampleScanner

ScannerInstance get instance of the scanner

func (SampleScanner) ReadLine

func (scanner SampleScanner) ReadLine() string

ReadLine read a line of input from the terminal

type Scanner

type Scanner interface {
	ReadLine() string
	// contains filtered or unexported methods
}

type Version

type Version struct {
	Master int
	Mirror int
	Patch  int
}

Version app version

Jump to

Keyboard shortcuts

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