Documentation ¶
Index ¶
- Variables
- func GenerateHandlers() map[string]core.HandleFunc
- func GetPort(lis net.Listener) (uint32, error)
- func Register(name string, auth handleFunc)
- func Start(uris []string) error
- func StartHTTP(uri string, errChan chan<- error)
- func StartTCP(uri string, errChan chan<- error)
- func StartTCPWithLS(ls net.Listener, errChan chan<- error, ctx context.Context)
- func StartWS(uri string, errChan chan<- error)
- func StartWithLS(ls net.Listener, ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotImplemented = fmt.Errorf("Error: Not Implemented\n")
)
View Source
var ( // Router ... Router = pat.New() )
Functions ¶
func Start ¶
Start attempts to individually start servers from a list of provided listeners; the listeners provided is a comma delimited list of uri strings (scheme:[//[user:pass@]host[:port]][/]path[?query][#fragment])
func StartTCP ¶
StartTCP starts a tcp server listening on the specified address (default 127.0.0.1:1445) and then continually reads from the server handling any incoming connections
func StartTCPWithLS ¶ added in v0.1.1
StartTCPWithLS starts a tcp server listening on the specified tcp listener and then continually reads from the server handling any incoming connections
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.