Documentation ¶
Index ¶
- func DecoderConfig(output interface{}) *mapstructure.DecoderConfig
- func GenerateConfig(f string) error
- func GetLogAddresses(addresses []string) string
- func NodeWithMemoryEngine() *centrifuge.Node
- func NodeWithMemoryEngineNoHandlers() *centrifuge.Node
- func StringToDurationHookFunc() mapstructure.DecodeHookFunc
- func StripPassword(address string) string
- type CommonGRPCProxyTestCase
- type CommonHTTPProxyTestCase
- type Duration
- type TestTransport
- func (t *TestTransport) Close(disconnect *centrifuge.Disconnect) error
- func (t *TestTransport) DisabledPushFlags() uint64
- func (t *TestTransport) Name() string
- func (t *TestTransport) Protocol() centrifuge.ProtocolType
- func (t *TestTransport) Unidirectional() bool
- func (t *TestTransport) Write(message []byte) error
- func (t *TestTransport) WriteMany(messages ...[]byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecoderConfig ¶
func DecoderConfig(output interface{}) *mapstructure.DecoderConfig
DecoderConfig returns default mapstructure.DecoderConfig with support of time.Duration values & string slices & Duration
func GenerateConfig ¶
GenerateConfig generates configuration file at provided path.
func GetLogAddresses ¶
func NodeWithMemoryEngine ¶
func NodeWithMemoryEngine() *centrifuge.Node
NodeWithMemoryEngine - builder for centrifuge node with memory engine
func NodeWithMemoryEngineNoHandlers ¶
func NodeWithMemoryEngineNoHandlers() *centrifuge.Node
NodeWithMemoryEngineNoHandlers - builder for centrifuge node with memory engine
func StringToDurationHookFunc ¶
func StringToDurationHookFunc() mapstructure.DecodeHookFunc
StringToTimeDurationHookFunc returns a DecodeHookFunc that converts strings to time.Duration.
func StripPassword ¶
Types ¶
type CommonGRPCProxyTestCase ¶ added in v3.0.1
type CommonGRPCProxyTestCase struct { Node *centrifuge.Node Client *centrifuge.Client ClientCloseFunc centrifuge.ClientCloseFunc Server *grpc.Server Listener *bufconn.Listener }
func NewCommonGRPCProxyTestCase ¶ added in v3.0.1
func NewCommonGRPCProxyTestCase(ctx context.Context, srv proxyproto.CentrifugoProxyServer) *CommonGRPCProxyTestCase
func (*CommonGRPCProxyTestCase) Teardown ¶ added in v3.0.1
func (c *CommonGRPCProxyTestCase) Teardown()
type CommonHTTPProxyTestCase ¶ added in v3.0.1
type CommonHTTPProxyTestCase struct { Node *centrifuge.Node Client *centrifuge.Client ClientCloseFunc centrifuge.ClientCloseFunc Server *httptest.Server Mux *http.ServeMux }
func NewCommonHTTPProxyTestCase ¶ added in v3.0.1
func NewCommonHTTPProxyTestCase(ctx context.Context) *CommonHTTPProxyTestCase
func (*CommonHTTPProxyTestCase) Teardown ¶ added in v3.0.1
func (c *CommonHTTPProxyTestCase) Teardown()
type TestTransport ¶
type TestTransport struct {
// contains filtered or unexported fields
}
TestTransport - test transport
func NewTestTransport ¶
func NewTestTransport() *TestTransport
NewTestTransport - builder for TestTransport
func (*TestTransport) Close ¶
func (t *TestTransport) Close(disconnect *centrifuge.Disconnect) error
Close - ...
func (*TestTransport) DisabledPushFlags ¶
func (t *TestTransport) DisabledPushFlags() uint64
DisabledPushFlags - ...
func (*TestTransport) Protocol ¶
func (t *TestTransport) Protocol() centrifuge.ProtocolType
Protocol - ...
func (*TestTransport) Unidirectional ¶
func (t *TestTransport) Unidirectional() bool
Unidirectional - ...
func (*TestTransport) WriteMany ¶
func (t *TestTransport) WriteMany(messages ...[]byte) error
WriteMany - ...
Click to show internal directories.
Click to hide internal directories.