http

package
v0.0.0-...-520922f Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(listener net.Listener, handler http.Handler, proto string)

Types

type ContextApp

type ContextApp struct {
	// contains filtered or unexported fields
}

ContextApp

type HttpServer

type HttpServer struct {
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer(ctx *ContextApp) *HttpServer

func (*HttpServer) ServeHTTP

func (s *HttpServer) ServeHTTP(w http.ResponseWriter, req *http.Request)

type Option

type Option struct {
	HTTPAddress              string
	HTTPClientConnectTimeout time.Duration
	HTTPClientRequestTimeout time.Duration

	AppID     string
	AppSecret string

	MaxMsgSize int64
}

Option 配置

type QYWeiXinApp

type QYWeiXinApp struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

QYWeiXinApp 企业微信

func NewQYWeiXinApp

func NewQYWeiXinApp(opt *Option) *QYWeiXinApp

NewQYWeiXinApp 创建企业微信

func (*QYWeiXinApp) Run

func (p *QYWeiXinApp) Run()

Run 运行

Jump to

Keyboard shortcuts

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