Documentation ¶
Index ¶
- func RegisterBoxFactoryServer(s *grpc.Server, srv BoxFactoryServer)
- type BoolValue
- func (*BoolValue) Descriptor() ([]byte, []int)
- func (m *BoolValue) GetValue() bool
- func (*BoolValue) ProtoMessage()
- func (m *BoolValue) Reset()
- func (m *BoolValue) String() string
- func (m *BoolValue) XXX_DiscardUnknown()
- func (m *BoolValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BoolValue) XXX_Merge(src proto.Message)
- func (m *BoolValue) XXX_Size() int
- func (m *BoolValue) XXX_Unmarshal(b []byte) error
- type BoxFactoryClient
- type BoxFactoryServer
- type BoxSpecification
- func (*BoxSpecification) Descriptor() ([]byte, []int)
- func (m *BoxSpecification) GetDepth() int32
- func (m *BoxSpecification) GetHeight() int32
- func (m *BoxSpecification) GetName() string
- func (m *BoxSpecification) GetWidth() int32
- func (*BoxSpecification) ProtoMessage()
- func (m *BoxSpecification) Reset()
- func (m *BoxSpecification) String() string
- func (m *BoxSpecification) XXX_DiscardUnknown()
- func (m *BoxSpecification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BoxSpecification) XXX_Merge(src proto.Message)
- func (m *BoxSpecification) XXX_Size() int
- func (m *BoxSpecification) XXX_Unmarshal(b []byte) error
- type Boxes
- func (*Boxes) Descriptor() ([]byte, []int)
- func (m *Boxes) GetBoxes() []*BoxSpecification
- func (*Boxes) ProtoMessage()
- func (m *Boxes) Reset()
- func (m *Boxes) String() string
- func (m *Boxes) XXX_DiscardUnknown()
- func (m *Boxes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Boxes) XXX_Merge(src proto.Message)
- func (m *Boxes) XXX_Size() int
- func (m *Boxes) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (m *Empty) GetPage() int32
- func (m *Empty) GetPerPage() int32
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type StatusMessage
- func (*StatusMessage) Descriptor() ([]byte, []int)
- func (m *StatusMessage) GetOk() bool
- func (m *StatusMessage) GetServiceName() string
- func (*StatusMessage) ProtoMessage()
- func (m *StatusMessage) Reset()
- func (m *StatusMessage) String() string
- func (m *StatusMessage) XXX_DiscardUnknown()
- func (m *StatusMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StatusMessage) XXX_Merge(src proto.Message)
- func (m *StatusMessage) XXX_Size() int
- func (m *StatusMessage) XXX_Unmarshal(b []byte) error
- type StringValue
- func (*StringValue) Descriptor() ([]byte, []int)
- func (m *StringValue) GetTimestamp() *timestamp.Timestamp
- func (m *StringValue) GetValue() string
- func (*StringValue) ProtoMessage()
- func (m *StringValue) Reset()
- func (m *StringValue) String() string
- func (m *StringValue) XXX_DiscardUnknown()
- func (m *StringValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StringValue) XXX_Merge(src proto.Message)
- func (m *StringValue) XXX_Size() int
- func (m *StringValue) XXX_Unmarshal(b []byte) error
- type UnimplementedBoxFactoryServer
- func (*UnimplementedBoxFactoryServer) GetBoxes(ctx context.Context, req *Empty) (*Boxes, error)
- func (*UnimplementedBoxFactoryServer) MakeBox(ctx context.Context, req *BoxSpecification) (*Empty, error)
- func (*UnimplementedBoxFactoryServer) Status(ctx context.Context, req *Empty) (*StatusMessage, error)
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) ProtoMessage ¶
func (*BoolValue) ProtoMessage()
func (*BoolValue) XXX_DiscardUnknown ¶
func (m *BoolValue) XXX_DiscardUnknown()
func (*BoolValue) XXX_Marshal ¶
func (*BoolValue) XXX_Unmarshal ¶
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) GetBoxes ¶
func (m *Boxes) GetBoxes() []*BoxSpecification
func (*Boxes) ProtoMessage ¶
func (*Boxes) ProtoMessage()
func (*Boxes) XXX_DiscardUnknown ¶
func (m *Boxes) XXX_DiscardUnknown()
func (*Boxes) XXX_Marshal ¶
func (*Boxes) XXX_Unmarshal ¶
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) GetPerPage ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
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) MakeBox ¶
func (*UnimplementedBoxFactoryServer) MakeBox(ctx context.Context, req *BoxSpecification) (*Empty, error)
func (*UnimplementedBoxFactoryServer) Status ¶
func (*UnimplementedBoxFactoryServer) Status(ctx context.Context, req *Empty) (*StatusMessage, error)
Click to show internal directories.
Click to hide internal directories.