Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RPCs ¶ added in v0.10.40
func RPCs(predicate ...string) []kit.RouteSelector
RPCs is a shortcut for multiple RPC selectors
Types ¶
type Option ¶
type Option func(b *bundle)
func WithCustomRPC ¶
func WithCustomRPC(in kit.IncomingRPCFactory, out kit.OutgoingRPCFactory) Option
WithCustomRPC lets you define your RPC message container. RPC message container will be represented as Envelope in your application. RPCContainer only defines the behavior of serialization and deserialization of the Envelope.
func WithLogger ¶
func WithPredicateKey ¶
func WithWebsocketBinaryMode ¶ added in v0.14.6
func WithWebsocketBinaryMode() Option
WithWebsocketBinaryMode sets the write mode of the websocket to binary opCode
func WithWebsocketTextMode ¶ added in v0.14.6
func WithWebsocketTextMode() Option
WithWebsocketTextMode sets the write mode of the websocket to text opCode This is the default behavior
type Selector ¶
func (Selector) GetEncoding ¶
func (Selector) GetPredicate ¶
type SwitchProtocol ¶
type SwitchProtocol struct {
// contains filtered or unexported fields
}
func (*SwitchProtocol) Upgrade ¶
func (sp *SwitchProtocol) Upgrade(conn io.ReadWriter) (hs ws.Handshake, err error)
Click to show internal directories.
Click to hide internal directories.