Documentation
¶
Index ¶
- Variables
- type Controller
- type Service
- func (x *Service) Get(keys ...string) (data map[string]interface{})
- func (x *Service) Key() string
- func (x *Service) Load(ctx context.Context) (err error)
- func (x *Service) Remove(ctx context.Context, key string) (err error)
- func (x *Service) Set(ctx context.Context, data map[string]interface{}) (err error)
- func (x *Service) Sync(ctx context.Context) (err error)
- func (x *Service) Update(ctx context.Context) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Provides = wire.NewSet( wire.Struct(new(Controller), "*"), wire.Struct(new(Service), "*"), )
View Source
var Secret = map[string]bool{ "tencent_secret_key": true, "feishu_app_secret": true, "feishu_encrypt_key": true, "feishu_verification_token": true, "email_password": true, "openapi_secret": true, }
Secret 密文配置
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
ValuesService *Service
}
func (*Controller) Get ¶
func (x *Controller) Get(ctx context.Context, c *app.RequestContext)
Get 获取动态配置 @router /values [GET]
func (*Controller) Remove ¶
func (x *Controller) Remove(ctx context.Context, c *app.RequestContext)
Remove 移除动态配置 @router /values/:id [DELETE]
func (*Controller) Set ¶
func (x *Controller) Set(ctx context.Context, c *app.RequestContext)
Set 设置动态配置 @router /values [PATCH]
Click to show internal directories.
Click to hide internal directories.