Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultConnectorIdHttp = ConnectorId("http") DefaultConnectorIdHttps = ConnectorId("https") ConnectorKey = "lingress.server.connector" )
Variables ¶
View Source
var (
ErrIllegalConnectorId = errors.New("illegal connector-id")
)
Functions ¶
Types ¶
type AnnotatedAddr ¶ added in v0.2.4
type ConnectorHandler ¶
type ConnectorId ¶
type ConnectorId string
func (ConnectorId) MarshalText ¶
func (this ConnectorId) MarshalText() (text []byte, err error)
func (*ConnectorId) Set ¶
func (this *ConnectorId) Set(plain string) error
func (ConnectorId) String ¶
func (this ConnectorId) String() string
func (*ConnectorId) UnmarshalText ¶
func (this *ConnectorId) UnmarshalText(text []byte) error
type HttpConnector ¶
type HttpConnector struct { Id ConnectorId Handler ConnectorHandler Logger log.Logger Server http.Server ListenConfig net.ListenConfig // contains filtered or unexported fields }
func NewHttpConnector ¶
func NewHttpConnector(s *settings.Settings, id ConnectorId, logger log.Logger) (*HttpConnector, error)
func (*HttpConnector) GetId ¶
func (this *HttpConnector) GetId() ConnectorId
func (*HttpConnector) Shutdown ¶
func (this *HttpConnector) Shutdown()
Click to show internal directories.
Click to hide internal directories.