iface

package
v0.0.0-...-ea3c427 Latest Latest
Warning

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

Go to latest
Published: May 26, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent interface {
	Id() bson.ObjectId
	User() string
	SessionId() bson.ObjectId
	LocalAddr() net.Addr
	RemoteAddr() net.Addr
	Close() error
	ETime() time.Time
}

type Bus

type Bus interface {
	AddAgent(a Agent)
	RemoveAgent(a Agent)
	Agent(id bson.ObjectId) Agent
	Agents() map[bson.ObjectId]Agent

	AddSession(s Session)
	RemoveSession(s Session)
	Session(id bson.ObjectId) Session
	Sessions() map[bson.ObjectId]Session

	Restart()
	Cutoff(id bson.ObjectId)
	Kickoff(id bson.ObjectId)

	Stat() Stat
}

type Service

type Service interface {
	Config(config interface{}) error

	Serve() error
	Close() error

	ETime() time.Time
}

type Session

type Session interface {
	Agents() map[bson.ObjectId]Agent
	Id() bson.ObjectId
	ssh.ConnMetadata
	Close() error
	ETime() time.Time
}

type Stat

type Stat interface {
	ETime() time.Time
	Aggregate(key string) int
}

Jump to

Keyboard shortcuts

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