pb

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBoxFactoryServer

func RegisterBoxFactoryServer(s *grpc.Server, srv BoxFactoryServer)

Types

type BoolValue

type BoolValue struct {
	Value                bool     `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BoolValue) Descriptor

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

func (*BoolValue) GetValue

func (m *BoolValue) GetValue() bool

func (*BoolValue) ProtoMessage

func (*BoolValue) ProtoMessage()

func (*BoolValue) Reset

func (m *BoolValue) Reset()

func (*BoolValue) String

func (m *BoolValue) String() string

func (*BoolValue) XXX_DiscardUnknown

func (m *BoolValue) XXX_DiscardUnknown()

func (*BoolValue) XXX_Marshal

func (m *BoolValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BoolValue) XXX_Merge

func (m *BoolValue) XXX_Merge(src proto.Message)

func (*BoolValue) XXX_Size

func (m *BoolValue) XXX_Size() int

func (*BoolValue) XXX_Unmarshal

func (m *BoolValue) XXX_Unmarshal(b []byte) error

type BoxFactoryClient

type BoxFactoryClient interface {
	MakeBox(ctx context.Context, in *BoxSpecification, opts ...grpc.CallOption) (*Empty, error)
	GetBoxes(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Boxes, error)
	Status(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*StatusMessage, error)
}

BoxFactoryClient is the client API for BoxFactory service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBoxFactoryClient

func NewBoxFactoryClient(cc *grpc.ClientConn) BoxFactoryClient

type BoxFactoryServer

type BoxFactoryServer interface {
	MakeBox(context.Context, *BoxSpecification) (*Empty, error)
	GetBoxes(context.Context, *Empty) (*Boxes, error)
	Status(context.Context, *Empty) (*StatusMessage, error)
}

BoxFactoryServer is the server API for BoxFactory service.

type BoxSpecification

type BoxSpecification struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Height               int32    `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Width                int32    `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
	Depth                int32    `protobuf:"varint,4,opt,name=depth,proto3" json:"depth,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BoxSpecification) Descriptor

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

func (*BoxSpecification) GetDepth

func (m *BoxSpecification) GetDepth() int32

func (*BoxSpecification) GetHeight

func (m *BoxSpecification) GetHeight() int32

func (*BoxSpecification) GetName

func (m *BoxSpecification) GetName() string

func (*BoxSpecification) GetWidth

func (m *BoxSpecification) GetWidth() int32

func (*BoxSpecification) ProtoMessage

func (*BoxSpecification) ProtoMessage()

func (*BoxSpecification) Reset

func (m *BoxSpecification) Reset()

func (*BoxSpecification) String

func (m *BoxSpecification) String() string

func (*BoxSpecification) XXX_DiscardUnknown

func (m *BoxSpecification) XXX_DiscardUnknown()

func (*BoxSpecification) XXX_Marshal

func (m *BoxSpecification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BoxSpecification) XXX_Merge

func (m *BoxSpecification) XXX_Merge(src proto.Message)

func (*BoxSpecification) XXX_Size

func (m *BoxSpecification) XXX_Size() int

func (*BoxSpecification) XXX_Unmarshal

func (m *BoxSpecification) XXX_Unmarshal(b []byte) error

type Boxes

type Boxes struct {
	Boxes                []*BoxSpecification `protobuf:"bytes,1,rep,name=Boxes,proto3" json:"Boxes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*Boxes) Descriptor

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

func (*Boxes) GetBoxes

func (m *Boxes) GetBoxes() []*BoxSpecification

func (*Boxes) ProtoMessage

func (*Boxes) ProtoMessage()

func (*Boxes) Reset

func (m *Boxes) Reset()

func (*Boxes) String

func (m *Boxes) String() string

func (*Boxes) XXX_DiscardUnknown

func (m *Boxes) XXX_DiscardUnknown()

func (*Boxes) XXX_Marshal

func (m *Boxes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Boxes) XXX_Merge

func (m *Boxes) XXX_Merge(src proto.Message)

func (*Boxes) XXX_Size

func (m *Boxes) XXX_Size() int

func (*Boxes) XXX_Unmarshal

func (m *Boxes) XXX_Unmarshal(b []byte) error

type Empty

type Empty struct {
	Page                 int32    `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PerPage              int32    `protobuf:"varint,2,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

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

func (*Empty) GetPage

func (m *Empty) GetPage() int32

func (*Empty) GetPerPage

func (m *Empty) GetPerPage() int32

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

func (m *Empty) XXX_Unmarshal(b []byte) error

type StatusMessage

type StatusMessage struct {
	ServiceName          string   `protobuf:"bytes,1,opt,name=serviceName,proto3" json:"serviceName,omitempty"`
	Ok                   bool     `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StatusMessage) Descriptor

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

func (*StatusMessage) GetOk

func (m *StatusMessage) GetOk() bool

func (*StatusMessage) GetServiceName

func (m *StatusMessage) GetServiceName() string

func (*StatusMessage) ProtoMessage

func (*StatusMessage) ProtoMessage()

func (*StatusMessage) Reset

func (m *StatusMessage) Reset()

func (*StatusMessage) String

func (m *StatusMessage) String() string

func (*StatusMessage) XXX_DiscardUnknown

func (m *StatusMessage) XXX_DiscardUnknown()

func (*StatusMessage) XXX_Marshal

func (m *StatusMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StatusMessage) XXX_Merge

func (m *StatusMessage) XXX_Merge(src proto.Message)

func (*StatusMessage) XXX_Size

func (m *StatusMessage) XXX_Size() int

func (*StatusMessage) XXX_Unmarshal

func (m *StatusMessage) XXX_Unmarshal(b []byte) error

type StringValue

type StringValue struct {
	Value                string               `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Timestamp            *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*StringValue) Descriptor

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

func (*StringValue) GetTimestamp

func (m *StringValue) GetTimestamp() *timestamp.Timestamp

func (*StringValue) GetValue

func (m *StringValue) GetValue() string

func (*StringValue) ProtoMessage

func (*StringValue) ProtoMessage()

func (*StringValue) Reset

func (m *StringValue) Reset()

func (*StringValue) String

func (m *StringValue) String() string

func (*StringValue) XXX_DiscardUnknown

func (m *StringValue) XXX_DiscardUnknown()

func (*StringValue) XXX_Marshal

func (m *StringValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringValue) XXX_Merge

func (m *StringValue) XXX_Merge(src proto.Message)

func (*StringValue) XXX_Size

func (m *StringValue) XXX_Size() int

func (*StringValue) XXX_Unmarshal

func (m *StringValue) XXX_Unmarshal(b []byte) error

type UnimplementedBoxFactoryServer

type UnimplementedBoxFactoryServer struct {
}

UnimplementedBoxFactoryServer can be embedded to have forward compatible implementations.

func (*UnimplementedBoxFactoryServer) GetBoxes

func (*UnimplementedBoxFactoryServer) GetBoxes(ctx context.Context, req *Empty) (*Boxes, error)

func (*UnimplementedBoxFactoryServer) MakeBox

func (*UnimplementedBoxFactoryServer) Status

Jump to

Keyboard shortcuts

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