server

package
v0.0.0-...-560d035 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "0.1.0-dev"
	Branch  = "unknown"
	Commit  = "unknown"
)

Build information, meant to be populated by Go's linker.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Runnable
	// GetKind returns what kind of a server interface this is in human readable form.
	GetKind() string
}

type Runnable

type Runnable interface {
	// Starts tasks the underlying runnable to start processing.
	Start()
	// Stops the underlying runnable from further processing. If deadline is nil, the intent is a
	// forceful close. Otherwise attempts a graceful close.
	Stop(deadline *time.Time)
}

type TickHandler

type TickHandler func(tick time.Time)

type TickManager

type TickManager interface {
	OnTickSecond(handler TickHandler)
	OnTickMinute(handler TickHandler)
	OnTickHour(handler TickHandler)
}

Directories

Path Synopsis
cmd
items/grpc
Package grpc is a generated protocol buffer package.
Package grpc is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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