Documentation
¶
Overview ¶
Package httpapi @Author Clover @Data 2024/7/20 下午9:37:00 @Desc http and http webhook
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpClient ¶
type HttpClient struct { MaxRetries int InitDelay time.Duration // 最初的重试间隔 MaxDelay time.Duration // 最大重试间隔 // contains filtered or unexported fields }
HttpClient 反向http
func (HttpClient) HandlerPostEvent ¶
func (c HttpClient) HandlerPostEvent(event event.IEvent)
HandlerPostEvent 处理 post 事件
func (HttpClient) Run ¶
func (c HttpClient) Run()
type HttpServer ¶
type HttpServer struct { HttpAddr string AccessToken string // 鉴权 // contains filtered or unexported fields }
HttpServer http 服务
Click to show internal directories.
Click to hide internal directories.