config

package
v0.0.0-...-d154307 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Types

type Application

type Application struct {
	Lark    *Lark    `yaml:"lark" mapstructure:"lark"`
	TianApi *TianApi `yaml:"tianapi" mapstructure:"tianapi"`
	Cron    string   `yaml:"cron" mapstructure:"cron"`
}
var App *Application

type Bot

type Bot struct {
	AppId     string `yaml:"app_id" mapstructure:"app_id"`
	AppSecret string `yaml:"app_secret" mapstructure:"app_secret"`
}

type Lark

type Lark struct {
	Bot    *Bot   `yaml:"bot" mapstructure:"bot"`
	ChatID string `yaml:"chat_id" mapstructure:"chat_id"`
}

type TianApi

type TianApi struct {
	Key string `yaml:"key" mapstructure:"key"`
}

Jump to

Keyboard shortcuts

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