writer

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a middleman between the websocket connection and the hub.

func NewClient

func NewClient() Client

type MappedWriter

type MappedWriter interface {
	WriteMapped(subscriber mangos.Socket)
}

RawWriter interface

type MqttWriter

type MqttWriter struct {
	// contains filtered or unexported fields
}

func NewMqttWriter

func NewMqttWriter(c *config.MqttConfig) *MqttWriter

func (*MqttWriter) WriteMapped

func (w *MqttWriter) WriteMapped(subscriber mangos.Socket)

type PostgresqlWriter

type PostgresqlWriter struct {
	// contains filtered or unexported fields
}

func NewPostgresqlWriter

func NewPostgresqlWriter(c *config.PostgresqlConfig) *PostgresqlWriter

func (*PostgresqlWriter) WriteMapped

func (w *PostgresqlWriter) WriteMapped(subscriber mangos.Socket)

func (*PostgresqlWriter) WriteRaw

func (w *PostgresqlWriter) WriteRaw(subscriber mangos.Socket)

type RawWriter

type RawWriter interface {
	WriteRaw(subscriber mangos.Socket)
}

RawWriter interface

type SubscribeMessage

type SubscribeMessage struct {
	Context     string             `json:"context"`
	Subscribe   []SubscribeSection `json:"subscribe"`
	Unsubscribe []SubscribeSection `json:"unsubscribe"`
}

type SubscribeSection

type SubscribeSection struct {
	Path string `json:"path"`
}

type WebsocketWriter

type WebsocketWriter struct {
	// contains filtered or unexported fields
}

func NewWebsocketWriter

func NewWebsocketWriter() *WebsocketWriter

func (*WebsocketWriter) WitSelf

func (ws *WebsocketWriter) WitSelf(s string) *WebsocketWriter

func (*WebsocketWriter) WithURL

func (ws *WebsocketWriter) WithURL(u string) *WebsocketWriter

func (*WebsocketWriter) WriteMapped

func (ws *WebsocketWriter) WriteMapped(subscriber mangos.Socket)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL