sd

package
v0.0.0-...-a89a5ae Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAPacket     = errors.New("Invalid packet")
	ErrNotAnOpCode    = errors.New("Invalid opcode")
	ErrMissingPayload = errors.New("Missing payload")
)

Functions

func DeserializeOpCode

func DeserializeOpCode(buf []byte) (sdOpCode, int, error)

func DeserializePacket

func DeserializePacket(p []byte) (sdPacket, error)

Types

type Service

type Service struct {
	Name string

	RequiredServices []string
	// contains filtered or unexported fields
}

func (*Service) BringOnline

func (s *Service) BringOnline() error

func (*Service) IsOnline

func (s *Service) IsOnline() bool

func (*Service) TakeOffline

func (s *Service) TakeOffline() error

func (*Service) WaitForOnline

func (s *Service) WaitForOnline() error

Wait for all required services to be identified

Jump to

Keyboard shortcuts

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