lark

package
v0.0.0-...-cca5604 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitApp

func InitApp(confPath string)

func SendTo

func SendTo(ctx context.Context, name string, ret interface{}, withUrgent bool) (*protocol.SendMsgResponse, *protocol.SendCardMsgResponse, error)

Types

type BotConfig

type BotConfig struct {
	AppID       string `yaml:"AppId"`
	AppSecret   string `yaml:"AppSecret"`
	VerifyToken string `yaml:"VerifyToken"`
	EncryptKey  string `yaml:"EncryptKey"`
}

type Config

type Config struct {
	BotConfig *BotConfig `yaml:"BotConfig"`
	Users     []*User    `yaml:"Users"` // name -> chatID
}

func ParseConfig

func ParseConfig(confPath string) *Config

type User

type User struct {
	Name   string `yaml:"Name"`
	ChatID string `yaml:"ChatID"`
	Email  string `yaml:"Email"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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