env

package
v0.0.0-...-db1ba95 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: ISC Imports: 10 Imported by: 1

Documentation

Overview

Package env contains environment variable bindings to acmregister settings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BotToken

func BotToken() (string, error)

BotToken gets $BOT_TOKEN with the Bot prefix.

func MustBotToken

func MustBotToken() string

MustBotToken exits if there's no $BOT_TOKEN.

Types

type InteractionServerVars

type InteractionServerVars struct {
	Addr   string // $INTERACTION_SERVER_ADDRESS
	PubKey string // $INTERACTION_SERVER_PUBKEY
}

func InteractionServer

func InteractionServer() InteractionServerVars

InteractionServer gets $INTERACTION_SERVER_* variables.

type Opts

type Opts struct {
	bot.Opts
	SMTPVerifier *verifyemail.SMTPVerifier
}

func BotOpts

func BotOpts(ctx context.Context) (Opts, error)

BotOpts gets bot.Opts from the environment variables.

func (*Opts) Close

func (opts *Opts) Close()

Jump to

Keyboard shortcuts

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