global

package
v0.0.0-...-7465321 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppConf

func GetAppConf() (conf map[string]string, err error)

func GetAuthConf

func GetAuthConf() (confs []map[string]string, err error)

func GetSenders

func GetSenders() (senders []map[string]string, err error)

func PushRemoteConf

func PushRemoteConf(ctx *gin.Context)

PushRemoteConf

@Tags			conf
@Description	push a conf to overwrite(POST), update(PUT) or delete(DELETE) existing conf of senders
@Description	https://github.com/veops/messenger?tab=readme-ov-file#更新配置
@Accept			json
@Param			body body	map[string][]map[string]string	true "senders config, eg. {wechatBot: [{name: yourSenderName, url: https://xxx}]}"
@Produce		json
@Success		200	{object}	map[string]string	"a map with msg info, eg. {msg:ok}"
@Router			/v1/senders [POST]
@Router			/v1/senders [PUT]
@Router			/v1/senders [DELETE]

func RegisterWatchCallbacks

func RegisterWatchCallbacks(fs ...func())

func RenderPretty

func RenderPretty(a any) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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