Documentation
¶
Index ¶
- Constants
- func SlotExtra(s string) string
- 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) MastodonAccessToken() string
- func (o *Options) MastodonClientKey() string
- func (o *Options) MastodonClientSecret() string
- func (o *Options) MastodonServer() string
- func (o *Options) PublishToChannel() bool
- func (o *Options) PublishToIssues() bool
- func (o *Options) PublishToMastodon() bool
- func (o *Options) PublishToTwitter() 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) TwitterAccessSecret() string
- func (o *Options) TwitterAccessToken() string
- func (o *Options) TwitterConsumerKey() string
- func (o *Options) TwitterConsumerSecret() 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) MastodonAccessToken ¶ added in v0.8.0
MastodonAccessToken returns the access token of Mastodon application.
func (*Options) MastodonClientKey ¶ added in v0.8.0
MastodonClientKey returns the client key of Mastodon application.
func (*Options) MastodonClientSecret ¶ added in v0.8.0
MastodonClientSecret returns the cilent secret of Mastodon application.
func (*Options) MastodonServer ¶ added in v0.8.0
MastodonServer returns the domain of Mastodon instance.
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) PublishToMastodon ¶ added in v0.8.0
PublishToMastodon returns whether to publish result to Mastodon.
func (*Options) PublishToTwitter ¶ added in v0.8.0
PublishToTwitter returns whether to publish result to Twitter.
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.
func (*Options) TorrcFile ¶ added in v0.6.0
TorrcFile returns path of the torrc file to set on start Tor Hidden Service.
func (*Options) TwitterAccessSecret ¶ added in v0.8.0
TwitterAccessSecret returns the access secret of Twitter application.
func (*Options) TwitterAccessToken ¶ added in v0.8.0
TwitterAccessToken returns the access token of Twitter application.
func (*Options) TwitterConsumerKey ¶ added in v0.8.0
TwitterConsumerKey returns the consumer key of Twitter application.
func (*Options) TwitterConsumerSecret ¶ added in v0.8.0
TwitterConsumerSecret returns the consumer secret of Twitter application.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser handles configuration parsing.
func (*Parser) ParseEnvironmentVariables ¶
ParseEnvironmentVariables loads configuration values from environment variables.