proto

package
v0.0.0-...-d8427d5 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

i3x3.proto

It has these top-level messages:

DaemonCommand
DaemonCommandResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDaemonServiceServer

func RegisterDaemonServiceServer(s *grpc.Server, srv DaemonServiceServer)

Types

type DaemonCommand

type DaemonCommand struct {
	Direction string `protobuf:"bytes,1,opt,name=direction" json:"direction,omitempty"`
	Move      bool   `protobuf:"varint,2,opt,name=move" json:"move,omitempty"`
	Overlay   bool   `protobuf:"varint,3,opt,name=overlay" json:"overlay,omitempty"`
}

DaemonCommand represents a command message for i3x3d to process.

func (*DaemonCommand) Descriptor

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

func (*DaemonCommand) GetDirection

func (m *DaemonCommand) GetDirection() string

func (*DaemonCommand) GetMove

func (m *DaemonCommand) GetMove() bool

func (*DaemonCommand) GetOverlay

func (m *DaemonCommand) GetOverlay() bool

func (*DaemonCommand) ProtoMessage

func (*DaemonCommand) ProtoMessage()

func (*DaemonCommand) Reset

func (m *DaemonCommand) Reset()

func (*DaemonCommand) String

func (m *DaemonCommand) String() string

type DaemonCommandResponse

type DaemonCommandResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

DaemonCommandResponse represents the result of a command for i3x3overlayd.

func (*DaemonCommandResponse) Descriptor

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

func (*DaemonCommandResponse) GetMessage

func (m *DaemonCommandResponse) GetMessage() string

func (*DaemonCommandResponse) ProtoMessage

func (*DaemonCommandResponse) ProtoMessage()

func (*DaemonCommandResponse) Reset

func (m *DaemonCommandResponse) Reset()

func (*DaemonCommandResponse) String

func (m *DaemonCommandResponse) String() string

type DaemonServiceClient

type DaemonServiceClient interface {
	HandleCommand(ctx context.Context, in *DaemonCommand, opts ...grpc.CallOption) (*DaemonCommandResponse, error)
}

func NewDaemonServiceClient

func NewDaemonServiceClient(cc *grpc.ClientConn) DaemonServiceClient

type DaemonServiceServer

type DaemonServiceServer interface {
	HandleCommand(context.Context, *DaemonCommand) (*DaemonCommandResponse, error)
}

Jump to

Keyboard shortcuts

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