server

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelServer

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

ChannelServer implementation of the channel service

func NewChannelServer

func NewChannelServer(config *ChannelServerConfig) *ChannelServer

NewChannelServer creates and returns a new Channel server instance.

func (*ChannelServer) Chat

Chat a new client on the channel

func (*ChannelServer) Send

func (c *ChannelServer) Send(evt *pb.Event) error

Send sends an event to the event processor

type ChannelServerConfig

type ChannelServerConfig struct {
	BufferSize uint
	Timeout    time.Duration
	TimeWindow time.Duration
}

ChannelServerConfig contains the setup config for the channel server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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