Documentation ¶
Index ¶
- Constants
- func SlotName(s string) string
- type Options
- func (o *Options) HasDebugMode() bool
- func (o *Options) IPFSHost() string
- func (o *Options) IPFSMode() string
- func (o *Options) IPFSPort() uint
- func (o *Options) LogTime() bool
- func (o *Options) Slots() map[string]bool
- func (o *Options) TelegramChannel() string
- func (o *Options) TelegramToken() string
- func (o *Options) TorLocalPort() int
- func (o *Options) TorPrivKey() string
- func (o *Options) TorRemotePorts() []int
- func (o *Options) UseTor() bool
- type Parser
Constants ¶
View Source
const ( SLOT_IA = "ia" SLOT_IS = "is" SLOT_IP = "ip" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
var Opts *Options
Opts holds parsed configuration options.
func (*Options) HasDebugMode ¶
HasDebugMode returns true if debug mode is enabled.
func (*Options) TelegramChannel ¶
TelegramChannel returns the Telegram Channel name.
func (*Options) TelegramToken ¶
TelegramToken returns the token of Telegram Bot.
func (*Options) TorLocalPort ¶
TorLocalPort returns the local port to a TCP listener on.
func (*Options) TorPrivKey ¶
TorPrivKey returns the private key of Tor service.
func (*Options) TorRemotePorts ¶
TorRemotePorts returns the remote ports to serve the Tor hidden service on.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser handles configuration parsing.
func (*Parser) ParseEnvironmentVariables ¶
ParseEnvironmentVariables loads configuration values from environment variables.
Click to show internal directories.
Click to hide internal directories.