Documentation
¶
Index ¶
Constants ¶
View Source
const AppName = "tokenProvider"
Variables ¶
View Source
var ( AddProvider = func(o Provider) { container[o.Type()] = o } GetProvider = func(t token.IssueType) Provider { return container[t] } InitProvider = func(conf Conf) { logger := log.Sub(AppName) for _, o := range container { o.Init(conf) logger.Info("add provider", slog.String("name", o.Name()), slog.Any("type", o.Type())) } } )
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { Feishu *Feishu `json:"feishu" yaml:"feishu"` Account *Account `json:"account" yaml:"account"` }
Conf 配置集
Click to show internal directories.
Click to hide internal directories.