Documentation
¶
Index ¶
- Variables
- func FormatFuncName(s string) string
- func GenerateCode(ctx context.Context, tplName, tplStr, path, file string, tpl interface{}, ...) error
- func InitPath(path string) error
- type BotCommand
- type CardAction
- type CardConf
- type CommandConf
- type Event
- type EventConf
- type EventTemplate
- type GenCodeInfo
- type MainTemplate
- type ServiceInfoConf
Constants ¶
This section is empty.
Variables ¶
View Source
var TplCard = `` /* 747-byte string literal not displayed */
View Source
var TplEvent = `` /* 1004-byte string literal not displayed */
View Source
var TplGinCallback = `` /* 2013-byte string literal not displayed */
View Source
var TplGinMain = `` /* 1992-byte string literal not displayed */
View Source
var TplRegist = `` /* 1082-byte string literal not displayed */
Functions ¶
func FormatFuncName ¶
func GenerateCode ¶
Types ¶
type BotCommand ¶
type CardAction ¶
type CommandConf ¶
type EventTemplate ¶
type EventTemplate struct { EventList []Event // event BotCmdList []BotCommand // bot recv msg CardList []CardAction // bot recv msg UseJson bool UseAuth bool }
event template
func (*EventTemplate) AddBotCommand ¶
func (tpl *EventTemplate) AddBotCommand(cmd, description string)
func (*EventTemplate) AddCardAction ¶
func (tpl *EventTemplate) AddCardAction(name string)
func (*EventTemplate) AddEvent ¶
func (tpl *EventTemplate) AddEvent(name string)
type GenCodeInfo ¶
type GenCodeInfo struct { ServiceInfo ServiceInfoConf `yaml:"ServiceInfo"` EventList []EventConf `yaml:"EventList"` CommandList []CommandConf `yaml:"CommandList"` CardActionList []CardConf `yaml:"CardActionList"` }
type MainTemplate ¶
type ServiceInfoConf ¶
Click to show internal directories.
Click to hide internal directories.