events

package
v0.0.0-...-d2438c5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	api.DefaultService
	// contains filtered or unexported fields
}

API defines a events API

func NewAPI

func NewAPI(name string) *API

NewAPI creates a API with sane defaults

func (*API) Get

func (a *API) Get(ctx context.Context, req *http.Request) api.Response

Get defines a service for calling "GET" method and returns a response.

func (*API) Name

func (a *API) Name() string

Name returns the API name

type Conn

type Conn interface {
	WriteMessage(int, []byte) error
	Close() error
}

Conn represents a connection message

type Daemon

type Daemon interface {

	// ActorGroup returns the actor group associated with the daemon
	ActorGroup() events.ActorGroup
}

Daemon can respond to requests from a shared client.

Jump to

Keyboard shortcuts

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