pubsub

package
v0.0.0-...-060bd2d Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultEmmitBufferSize uint = 10
	DefaultURL                  = "ws://127.0.0.1:40899"
)

Functions

func New

func New(opts ...ServerOption) (pubsub.Server, error)

Types

type Config

type Config struct {
	URL             string
	EmmitBufferSize uint

	// protocol
	EnableAll    bool
	EnableICP    bool
	EnableTCP    bool
	EnableINPROC bool
	EnableTLSTCP bool
	EnableWS     bool
	EnableWSS    bool
}

type ServerOption

type ServerOption func(*Config) error

func EmmitBufferSize

func EmmitBufferSize(emmitBufferSize uint) ServerOption

func EnableAll

func EnableAll() ServerOption

func EnableICP

func EnableICP() ServerOption

func EnableINPROC

func EnableINPROC() ServerOption

func EnableTCP

func EnableTCP() ServerOption

func EnableTLSTCP

func EnableTLSTCP() ServerOption

func EnableWS

func EnableWS() ServerOption

func EnableWSS

func EnableWSS() ServerOption

func URL

func URL(url string) ServerOption

Jump to

Keyboard shortcuts

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