pod

package
v1.9.20 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Unlicense Imports: 9 Imported by: 11

Documentation

Index

Constants

View Source
const AppName = "pod"

Variables

This section is empty.

Functions

func ReadCAFile added in v1.9.16

func ReadCAFile(config *Config) []byte

Types

type Config

type Config struct {
	sync.Mutex
	AddCheckpoints    *cli.StringSlice `` /* 133-byte string literal not displayed */
	AddPeers          *cli.StringSlice `` /* 150-byte string literal not displayed */
	AddrIndex         *bool            `` /* 208-byte string literal not displayed */
	AutoPorts         *bool            `` /* 191-byte string literal not displayed */
	AutoListen        *bool            `` /* 202-byte string literal not displayed */
	BanDuration       *time.Duration   `` /* 147-byte string literal not displayed */
	BanThreshold      *int             `` /* 153-byte string literal not displayed */
	BlockMaxSize      *int             `` /* 172-byte string literal not displayed */
	BlockMaxWeight    *int             `` /* 169-byte string literal not displayed */
	BlockMinSize      *int             `` /* 172-byte string literal not displayed */
	BlockMinWeight    *int             `` /* 169-byte string literal not displayed */
	BlockPrioritySize *int             `` /* 196-byte string literal not displayed */
	BlocksOnly        *bool            `` /* 148-byte string literal not displayed */
	CAFile            *string          `` /* 175-byte string literal not displayed */
	CAPI              *bool            `group:"" label:"Enable cAPI" description:"disable cAPI rpc" type:"" widget:"toggle" json:"CAPI" hook:"restart"`
	CPUProfile        *string          `` /* 139-byte string literal not displayed */
	ConfigFile        *string          `` /* 169-byte string literal not displayed */
	ConnectPeers      *cli.StringSlice `` /* 176-byte string literal not displayed */
	// Controller             *string          `group:"node" label:"Controller Listener" description:"address to bind miner controller to" type:"address" widget:"string" json:"Controller" hook:"controller"`
	// ControllerConnect      *cli.StringSlice `group:"node" label:"Controller Connect" description:"address miner controller can be reached through to" type:"address" widget:"multi" json:"ControllerConnect" hook:"controller"`
	DarkTheme              *bool            `` /* 127-byte string literal not displayed */
	DataDir                *string          `` /* 148-byte string literal not displayed */
	DbType                 *string          `` /* 157-byte string literal not displayed */
	DisableBanning         *bool            `` /* 150-byte string literal not displayed */
	DisableCheckpoints     *bool            `` /* 145-byte string literal not displayed */
	DisableController      *bool            `` /* 161-byte string literal not displayed */
	DisableDNSSeed         *bool            `` /* 150-byte string literal not displayed */
	DisableListen          *bool            `` /* 167-byte string literal not displayed */
	DisableRPC             *bool            `` /* 152-byte string literal not displayed */
	ExternalIPs            *cli.StringSlice `` /* 170-byte string literal not displayed */
	FreeTxRelayLimit       *float64         `` /* 223-byte string literal not displayed */
	GenThreads             *int             `` /* 140-byte string literal not displayed */
	Generate               *bool            `` /* 133-byte string literal not displayed */
	LAN                    *bool            `` /* 169-byte string literal not displayed */
	Language               *string          `` /* 142-byte string literal not displayed */
	LimitPass              *string          `group:"rpc" label:"Limit Pass" description:"limited user password" type:"" widget:"password" json:"LimitPass" hook:"restart"`
	LimitUser              *string          `group:"rpc" label:"Limit User" description:"limited user name" type:"" widget:"string" json:"LimitUser" hook:"restart"`
	LogDir                 *string          `` /* 136-byte string literal not displayed */
	LogLevel               *string          `` /* 249-byte string literal not displayed */
	MaxOrphanTxs           *int             `` /* 163-byte string literal not displayed */
	MaxPeers               *int             `` /* 149-byte string literal not displayed */
	MinRelayTxFee          *float64         `` /* 182-byte string literal not displayed */
	MinerPass              *string          `` /* 168-byte string literal not displayed */
	MiningAddrs            *cli.StringSlice `` /* 166-byte string literal not displayed */
	Network                *string          `` /* 138-byte string literal not displayed */
	NoCFilters             *bool            `` /* 144-byte string literal not displayed */
	NoInitialLoad          *bool            `` /* 138-byte string literal not displayed */
	NoPeerBloomFilters     *bool            `` /* 153-byte string literal not displayed */
	NoRelayPriority        *bool            `` /* 195-byte string literal not displayed */
	NodeOff                *bool            `group:"debug" label:"Node Off" description:"turn off the node backend" type:"" widget:"toggle" json:"NodeOff" hook:"node"`
	OneTimeTLSKey          *bool            `` /* 200-byte string literal not displayed */
	Onion                  *bool            `group:"proxy" label:"Onion" description:"enable tor proxy" type:"" widget:"toggle" json:"Onion" hook:"restart"`
	OnionProxy             *string          `` /* 155-byte string literal not displayed */
	OnionProxyPass         *string          `` /* 138-byte string literal not displayed */
	OnionProxyUser         *string          `` /* 132-byte string literal not displayed */
	P2PConnect             *cli.StringSlice `` /* 161-byte string literal not displayed */
	P2PListeners           *cli.StringSlice `` /* 159-byte string literal not displayed */
	Password               *string          `` /* 135-byte string literal not displayed */
	PipeLog                *bool            `group:"" label:"Pipe Logger" description:"enable pipe based loggerIPC" type:"" widget:"toggle" json:"PipeLog" hook:""`
	Profile                *string          `` /* 142-byte string literal not displayed */
	Proxy                  *string          `` /* 152-byte string literal not displayed */
	ProxyPass              *string          `` /* 132-byte string literal not displayed */
	ProxyUser              *string          `` /* 129-byte string literal not displayed */
	RPCCert                *string          `` /* 132-byte string literal not displayed */
	RPCConnect             *string          `` /* 137-byte string literal not displayed */
	RPCKey                 *string          `group:"rpc" label:"RPC Key" description:"location of rpc TLS key" type:"path" widget:"string" json:"RPCKey" hook:"restart"`
	RPCListeners           *cli.StringSlice `` /* 152-byte string literal not displayed */
	RPCMaxClients          *int             `` /* 156-byte string literal not displayed */
	RPCMaxConcurrentReqs   *int             `` /* 180-byte string literal not displayed */
	RPCMaxWebsockets       *int             `` /* 165-byte string literal not displayed */
	RPCQuirks              *bool            `` /* 151-byte string literal not displayed */
	RejectNonStd           *bool            `` /* 199-byte string literal not displayed */
	RelayNonStd            *bool            `` /* 196-byte string literal not displayed */
	RunAsService           *bool            `group:"" label:"Run As Service" description:"shuts down on lock timeout" type:"" widget:"toggle" json:"" hook:"restart"`
	ServerPass             *string          `` /* 136-byte string literal not displayed */
	ServerTLS              *bool            `` /* 159-byte string literal not displayed */
	ServerUser             *string          `` /* 140-byte string literal not displayed */
	SigCacheMaxSize        *int             `` /* 182-byte string literal not displayed */
	Solo                   *bool            `` /* 141-byte string literal not displayed */
	TLS                    *bool            `group:"tls" label:"TLS" description:"enable TLS for RPC connections" type:"" widget:"toggle" json:"TLS" hook:"restart"`
	TLSSkipVerify          *bool            `` /* 162-byte string literal not displayed */
	TorIsolation           *bool            `` /* 162-byte string literal not displayed */
	TrickleInterval        *time.Duration   `` /* 185-byte string literal not displayed */
	TxIndex                *bool            `` /* 215-byte string literal not displayed */
	UPNP                   *bool            `group:"node" label:"UPNP" description:"enable UPNP for NAT traversal" type:"" widget:"toggle" json:"UPNP" hook:"restart"`
	UserAgentComments      *cli.StringSlice `` /* 181-byte string literal not displayed */
	Username               *string          `` /* 133-byte string literal not displayed */
	UUID                   *int             `` /* 150-byte string literal not displayed */
	Wallet                 *bool            `` /* 144-byte string literal not displayed */
	WalletFile             *string          `` /* 146-byte string literal not displayed */
	WalletOff              *bool            `` /* 129-byte string literal not displayed */
	WalletPass             *string          `` /* 184-byte string literal not displayed */
	WalletRPCListeners     *cli.StringSlice `` /* 173-byte string literal not displayed */
	WalletRPCMaxClients    *int             `` /* 179-byte string literal not displayed */
	WalletRPCMaxWebsockets *int             `` /* 191-byte string literal not displayed */
	WalletServer           *string          `` /* 157-byte string literal not displayed */
	Whitelists             *cli.StringSlice `` /* 147-byte string literal not displayed */
	Hilite                 *cli.StringSlice `` /* 168-byte string literal not displayed */
	LogFilter              *cli.StringSlice `` /* 165-byte string literal not displayed */
}

Config is

func EmptyConfig

func EmptyConfig() (c *Config, conf map[string]interface{})

type Field

type Field struct {
	Datatype    string   `json:"datatype"`
	Description string   `json:"help"`
	Featured    string   `json:"featured"`
	Group       string   `json:"group"`
	Hooks       string   `json:"hooks"`
	Label       string   `json:"label"`
	Model       string   `json:"model"`
	Options     []string `json:"options"`
	Restart     string   `json:"restart"`
	Slug        string   `json:"slug"`
	Type        string   `json:"type"`
	Widget      string   `json:"inputType"`
}

type Fields added in v0.4.14

type Fields []Field

func (Fields) Len added in v0.4.14

func (f Fields) Len() int

func (Fields) Less added in v0.4.14

func (f Fields) Less(i, j int) bool

func (Fields) Swap added in v0.4.14

func (f Fields) Swap(i, j int)

type Group

type Group struct {
	Legend string `json:"legend"`
	Fields `json:"fields"`
}

type Groups added in v0.4.14

type Groups []Group

type Schema

type Schema struct {
	Groups Groups `json:"groups"`
}

func GetConfigSchema

func GetConfigSchema(cfg *Config) Schema

GetConfigSchema returns a schema for a given config

Jump to

Keyboard shortcuts

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