Documentation
¶
Index ¶
- Constants
- func SlotName(s string) string
- type Options
- func (o *Options) GitHubOwner() string
- func (o *Options) GitHubRepo() string
- func (o *Options) GitHubToken() string
- 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) PublishToChannel() bool
- func (o *Options) PublishToIssues() 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) TorrcFile() string
- func (o *Options) UseTor() bool
- type Parser
Constants ¶
const ( SLOT_IA = "ia" SLOT_IS = "is" SLOT_IP = "ip" SLOT_PH = "ph" )
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) GitHubOwner ¶ added in v0.7.0
GitHubOwner returns the user id of GitHub account.
func (*Options) GitHubRepo ¶ added in v0.7.0
GitHubRepo returns the GitHub repository which to publish results.
func (*Options) GitHubToken ¶ added in v0.7.0
GitHubToken returns the personal access token of GitHub account.
func (*Options) HasDebugMode ¶
HasDebugMode returns true if debug mode is enabled.
func (*Options) PublishToChannel ¶ added in v0.7.0
PublishToChannel returns whether to publish results to Telegram Channel.
func (*Options) PublishToIssues ¶ added in v0.7.0
PublishToIssues returns whether to publish results to GitHub issues.
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.