Documentation
¶
Index ¶
Constants ¶
View Source
const TokenValidity = time.Hour
TokenValidity is the duration for which a token is valid. Always exactly 1 hour.
Variables ¶
View Source
var ( ConfigPath = "/config" ConfigName = "gtm" )
Functions ¶
Types ¶
type OperatorConfig ¶
type OperatorConfig struct {
AppID int64 `mapstructure:"app_id"`
InstallationID int64 `mapstructure:"installation_id"`
Provider string `mapstructure:"provider"`
Key string `mapstructure:"key"`
}
func LoadConfig ¶
func LoadConfig(ctx context.Context) (*OperatorConfig, error)
func (*OperatorConfig) GetAppID ¶
func (c *OperatorConfig) GetAppID() int64
func (*OperatorConfig) GetInstallationID ¶
func (c *OperatorConfig) GetInstallationID() int64
func (*OperatorConfig) GetKey ¶
func (c *OperatorConfig) GetKey() string
func (*OperatorConfig) GetProvider ¶
func (c *OperatorConfig) GetProvider() string
Click to show internal directories.
Click to hide internal directories.