Versions in this module Expand all Collapse all v0 v0.0.2 Jan 20, 2024 Changes in this version + const HeaderStatus + const HeaderURL + func NewClientModule() *application.ModuleBuilder + func NewServerModule() *application.ModuleBuilder + func NewTestModule() *application.ModuleBuilder type Configuration + Headers Headers + Method string + type Downstream struct + ContentType string + Headers Headers + Protocol string + Status int + type HandlerSelector string + type HandlerSelectorBuilder struct + Method string + Path string + func (inst *HandlerSelectorBuilder) Create() HandlerSelector + type Location struct + Fragment string + Host string + Path string + Port int + Query map[string]string + Scheme string + User string + func NewLocation(u *url.URL) *Location + type Option func(cfg *Configuration) + func OptionHeader(name, value string) Option + func OptionMethod(method string) Option + type Upstream struct + ContentType string + Headers Headers + Location Location + Method string + Protocol string + URL string v0.0.1 Jan 18, 2024 Changes in this version + const HeaderClient + const HeaderContentType + const HeaderLocation + const HeaderMethod + const HeaderPath + const HeaderProtocol + const HeaderServer + const NameClient + const NameProtocol + const NameServer + func NewMainModule() *application.ModuleBuilder + type Client interface + Name func() string + SetName func(name string) + func NewClient() Client + type ClientSideConnection interface + Downstream func() (RxStream, error) + Upstream func(input ...*Headers) (TxStream, error) + type Configuration struct + Host string + Password string + Port int + Protocol string + Secure bool + Username string + type Connection interface + type Connector interface + Connect func(cfg *Configuration, hlist ...*Headers) (ClientSideConnection, error) + type Headers struct + func (inst *Headers) ForEach(fn func(name, value string)) + func (inst *Headers) Get(name string) string + func (inst *Headers) Set(name, value string) + type Listener interface + Accept func() (ServerSideConnection, error) + type RxStream interface + Headers func() *Headers + type Server interface + Listen func(cfg *Configuration) (Listener, error) + Name func() string + SetName func(name string) + func NewServer() Server + type ServerSideConnection interface + Downstream func(input ...*Headers) (TxStream, error) + Upstream func() (RxStream, error) + type TxStream interface + Headers func() *Headers