env

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLimeEnv

func GetLimeEnv() lime.Env

func GetLineEnv added in v0.1.0

func GetLineEnv() line.Env

func GetOpenAI added in v0.1.0

func GetOpenAI() openai.Env

func GetRedisEnv

func GetRedisEnv() redis.Env

Types

type Env

type Env struct {
	Env string `envconfig:"env" default:"DEBUG"`

	// LicenseMode is a flag that indicates whether to use the license mode.
	//   If true, the administrator's approval is required in order to use the bot's AI.
	LicenseMode bool `envconfig:"license_mode" default:"false"`
	// AdminLineUserID is the user ID of the LINE account that will be used to manage the bot.
	//   Must be specified if LicenseMode=true.
	//   This user ID can be obtained from the LINE Developers Console.
	//     https://developers.line.biz/console/channel/{channel_id}}/basics
	AdminLineUserID string `envconfig:"admin_user_id" default:"mock-admin-user-id"`
}

func GetBotEnv

func GetBotEnv() Env

Jump to

Keyboard shortcuts

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