httplink

package
v2.0.1-rc33 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPLink() (plugin.Plugin, error)

Types

type CloudConfig

type CloudConfig struct {
	HTTPLink HTTPLinkConfig `` /* 178-byte string literal not displayed */
}
type HTTPLink struct {
	Cfg       *CloudConfig
	Router    *gin.Engine
	Svr       *http.Server
	MsgRouter map[string]interface{}
}

func (*HTTPLink) AddMsgRouter

func (l *HTTPLink) AddMsgRouter(k string, v interface{})

func (*HTTPLink) Close

func (l *HTTPLink) Close() error

func (*HTTPLink) Start

func (l *HTTPLink) Start()

type HTTPLinkConfig

type HTTPLinkConfig struct {
	config.Server `yaml:",inline" json:",inline"`
	CommonName    string `yaml:"commonName" json:"commonName" default:"common-name"`
}

Jump to

Keyboard shortcuts

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