Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynHttpSrv ¶
type DynHttpSrv struct { Router *swappableRouter Endpoints []*Endpoint }
func New ¶
func New(ctx context.Context, addr string) *DynHttpSrv
New creates a new dynamic HTTP server listening on address and obeying cancelling through ctx
func (*DynHttpSrv) AddEndpoint ¶
func (dhs *DynHttpSrv) AddEndpoint(endpoint *Endpoint) error
func (*DynHttpSrv) DelEndpoint ¶
func (dhs *DynHttpSrv) DelEndpoint(endpoint *Endpoint) error
Click to show internal directories.
Click to hide internal directories.