proto

package
Version: v0.0.0-...-b52f609 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

piglow.proto

It has these top-level messages:

LedRequest
BrightnessRequest
TentacleRequest
ValueTentacleRequest
Ack

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPiGlowServer

func RegisterPiGlowServer(s *grpc.Server, srv PiGlowServer)

Types

type Ack

type Ack struct {
	Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"`
}

func (*Ack) Descriptor

func (*Ack) Descriptor() ([]byte, []int)

func (*Ack) GetOk

func (m *Ack) GetOk() bool

func (*Ack) ProtoMessage

func (*Ack) ProtoMessage()

func (*Ack) Reset

func (m *Ack) Reset()

func (*Ack) String

func (m *Ack) String() string

type BrightnessRequest

type BrightnessRequest struct {
	Brightness uint32 `protobuf:"varint,1,opt,name=brightness" json:"brightness,omitempty"`
}

func (*BrightnessRequest) Descriptor

func (*BrightnessRequest) Descriptor() ([]byte, []int)

func (*BrightnessRequest) GetBrightness

func (m *BrightnessRequest) GetBrightness() uint32

func (*BrightnessRequest) ProtoMessage

func (*BrightnessRequest) ProtoMessage()

func (*BrightnessRequest) Reset

func (m *BrightnessRequest) Reset()

func (*BrightnessRequest) String

func (m *BrightnessRequest) String() string

type LedRequest

type LedRequest struct {
	Num        int32  `protobuf:"varint,1,opt,name=num" json:"num,omitempty"`
	Brightness uint32 `protobuf:"varint,2,opt,name=brightness" json:"brightness,omitempty"`
}

func (*LedRequest) Descriptor

func (*LedRequest) Descriptor() ([]byte, []int)

func (*LedRequest) GetBrightness

func (m *LedRequest) GetBrightness() uint32

func (*LedRequest) GetNum

func (m *LedRequest) GetNum() int32

func (*LedRequest) ProtoMessage

func (*LedRequest) ProtoMessage()

func (*LedRequest) Reset

func (m *LedRequest) Reset()

func (*LedRequest) String

func (m *LedRequest) String() string

type PiGlowClient

type PiGlowClient interface {
	// Set LED n to brightness
	SetLED(ctx context.Context, in *LedRequest, opts ...grpc.CallOption) (*Ack, error)
	// Set all LEDs to brightness
	SetAll(ctx context.Context, in *BrightnessRequest, opts ...grpc.CallOption) (*Ack, error)
	// Set all White LEDs to brightness
	SetWhite(ctx context.Context, in *BrightnessRequest, opts ...grpc.CallOption) (*Ack, error)
	// Set all Blue LEDs to brightness
	SetBlue(ctx context.Context, in *BrightnessRequest, opts ...grpc.CallOption) (*Ack, error)
	// Set all Green LEDs to brightness
	SetGreen(ctx context.Context, in *BrightnessRequest, opts ...grpc.CallOption) (*Ack, error)
	// Set all Yellow LEDs to brightness
	SetYellow(ctx context.Context, in *BrightnessRequest, opts ...grpc.CallOption) (*Ack, error)
	// Set all Orange LEDs to brightness
	SetOrange(ctx context.Context, in *BrightnessRequest, opts ...grpc.CallOption) (*Ack, error)
	// Set all Red LEDs to brightness
	SetRed(ctx context.Context, in *BrightnessRequest, opts ...grpc.CallOption) (*Ack, error)
	// Set all LEDs along the whole of a tentacle to brightness
	SetTentacle(ctx context.Context, in *TentacleRequest, opts ...grpc.CallOption) (*Ack, error)
	// Display a value on a tentacle
	DisplayValueOnTentacle(ctx context.Context, in *ValueTentacleRequest, opts ...grpc.CallOption) (*Ack, error)
}

func NewPiGlowClient

func NewPiGlowClient(cc *grpc.ClientConn) PiGlowClient

type PiGlowServer

type PiGlowServer interface {
	// Set LED n to brightness
	SetLED(context.Context, *LedRequest) (*Ack, error)
	// Set all LEDs to brightness
	SetAll(context.Context, *BrightnessRequest) (*Ack, error)
	// Set all White LEDs to brightness
	SetWhite(context.Context, *BrightnessRequest) (*Ack, error)
	// Set all Blue LEDs to brightness
	SetBlue(context.Context, *BrightnessRequest) (*Ack, error)
	// Set all Green LEDs to brightness
	SetGreen(context.Context, *BrightnessRequest) (*Ack, error)
	// Set all Yellow LEDs to brightness
	SetYellow(context.Context, *BrightnessRequest) (*Ack, error)
	// Set all Orange LEDs to brightness
	SetOrange(context.Context, *BrightnessRequest) (*Ack, error)
	// Set all Red LEDs to brightness
	SetRed(context.Context, *BrightnessRequest) (*Ack, error)
	// Set all LEDs along the whole of a tentacle to brightness
	SetTentacle(context.Context, *TentacleRequest) (*Ack, error)
	// Display a value on a tentacle
	DisplayValueOnTentacle(context.Context, *ValueTentacleRequest) (*Ack, error)
}

type TentacleRequest

type TentacleRequest struct {
	Tentacle   int32  `protobuf:"varint,1,opt,name=tentacle" json:"tentacle,omitempty"`
	Brightness uint32 `protobuf:"varint,2,opt,name=brightness" json:"brightness,omitempty"`
}

func (*TentacleRequest) Descriptor

func (*TentacleRequest) Descriptor() ([]byte, []int)

func (*TentacleRequest) GetBrightness

func (m *TentacleRequest) GetBrightness() uint32

func (*TentacleRequest) GetTentacle

func (m *TentacleRequest) GetTentacle() int32

func (*TentacleRequest) ProtoMessage

func (*TentacleRequest) ProtoMessage()

func (*TentacleRequest) Reset

func (m *TentacleRequest) Reset()

func (*TentacleRequest) String

func (m *TentacleRequest) String() string

type ValueTentacleRequest

type ValueTentacleRequest struct {
	Tentacle   int32   `protobuf:"varint,1,opt,name=tentacle" json:"tentacle,omitempty"`
	Val        float64 `protobuf:"fixed64,2,opt,name=val" json:"val,omitempty"`
	MaxVal     float64 `protobuf:"fixed64,3,opt,name=max_val,json=maxVal" json:"max_val,omitempty"`
	Brightness uint32  `protobuf:"varint,4,opt,name=brightness" json:"brightness,omitempty"`
	Direction  bool    `protobuf:"varint,5,opt,name=direction" json:"direction,omitempty"`
}

func (*ValueTentacleRequest) Descriptor

func (*ValueTentacleRequest) Descriptor() ([]byte, []int)

func (*ValueTentacleRequest) GetBrightness

func (m *ValueTentacleRequest) GetBrightness() uint32

func (*ValueTentacleRequest) GetDirection

func (m *ValueTentacleRequest) GetDirection() bool

func (*ValueTentacleRequest) GetMaxVal

func (m *ValueTentacleRequest) GetMaxVal() float64

func (*ValueTentacleRequest) GetTentacle

func (m *ValueTentacleRequest) GetTentacle() int32

func (*ValueTentacleRequest) GetVal

func (m *ValueTentacleRequest) GetVal() float64

func (*ValueTentacleRequest) ProtoMessage

func (*ValueTentacleRequest) ProtoMessage()

func (*ValueTentacleRequest) Reset

func (m *ValueTentacleRequest) Reset()

func (*ValueTentacleRequest) String

func (m *ValueTentacleRequest) String() string

Source Files

Jump to

Keyboard shortcuts

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