message

package
v0.0.0-...-77132cc Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Close

type Close func()

Close type

type Handler

type Handler func([]byte)

Handler type

type Option

type Option func(*Options)

Option func

func ID

func ID(s string) Option

ID to change server reference id

type Options

type Options struct {

	// engine server unique id
	ID string
}

Options is the engine server options

type Service

type Service interface {
	Start() error
	Stop() error
	Emit([]byte, []byte) error
	Listen([]byte, Handler) Close
	String() string
}

Service interface

func New

func New(opts ...Option) Service

New creates message server

Jump to

Keyboard shortcuts

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