Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
proto.proto
It has these top-level messages:
CreateThingOneOfRequest CreateThingOneOfResponse CreateThingAnyRequest CreateThingAnyResponse Thing Error
Package proto is a generated protocol buffer package.
It is generated from these files:
proto.proto
It has these top-level messages:
CreateThingOneOfRequest CreateThingOneOfResponse CreateThingAnyRequest CreateThingAnyResponse Thing Error
Index ¶
- Variables
- func RegisterServiceHandler(s server.Server, hdlr ServiceHandler, opts ...server.HandlerOption)
- type CreateThingAnyRequest
- type CreateThingAnyResponse
- type CreateThingOneOfRequest
- type CreateThingOneOfResponse
- func (*CreateThingOneOfResponse) Descriptor() ([]byte, []int)
- func (m *CreateThingOneOfResponse) GetError() *Error
- func (m *CreateThingOneOfResponse) GetResult() isCreateThingOneOfResponse_Result
- func (m *CreateThingOneOfResponse) GetThing() *Thing
- func (*CreateThingOneOfResponse) ProtoMessage()
- func (m *CreateThingOneOfResponse) Reset()
- func (m *CreateThingOneOfResponse) String() string
- func (*CreateThingOneOfResponse) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, ...)
- type CreateThingOneOfResponse_Error
- type CreateThingOneOfResponse_Thing
- type Error
- type ErrorCode
- type Service
- type ServiceHandler
- type Thing
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorCode_name = map[int32]string{
0: "Reserved",
1: "One",
2: "Two",
3: "Three",
}
View Source
var ErrorCode_value = map[string]int32{
"Reserved": 0,
"One": 1,
"Two": 2,
"Three": 3,
}
Functions ¶
func RegisterServiceHandler ¶
func RegisterServiceHandler(s server.Server, hdlr ServiceHandler, opts ...server.HandlerOption)
Types ¶
type CreateThingAnyRequest ¶
type CreateThingAnyRequest struct {
Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
}
func (*CreateThingAnyRequest) Descriptor ¶
func (*CreateThingAnyRequest) Descriptor() ([]byte, []int)
func (*CreateThingAnyRequest) GetName ¶
func (m *CreateThingAnyRequest) GetName() string
func (*CreateThingAnyRequest) ProtoMessage ¶
func (*CreateThingAnyRequest) ProtoMessage()
func (*CreateThingAnyRequest) Reset ¶
func (m *CreateThingAnyRequest) Reset()
func (*CreateThingAnyRequest) String ¶
func (m *CreateThingAnyRequest) String() string
type CreateThingAnyResponse ¶
type CreateThingAnyResponse struct {
Result *google_protobuf.Any `protobuf:"bytes,2,opt,name=Result" json:"Result,omitempty"`
}
func (*CreateThingAnyResponse) Descriptor ¶
func (*CreateThingAnyResponse) Descriptor() ([]byte, []int)
func (*CreateThingAnyResponse) GetResult ¶
func (m *CreateThingAnyResponse) GetResult() *google_protobuf.Any
func (*CreateThingAnyResponse) ProtoMessage ¶
func (*CreateThingAnyResponse) ProtoMessage()
func (*CreateThingAnyResponse) Reset ¶
func (m *CreateThingAnyResponse) Reset()
func (*CreateThingAnyResponse) String ¶
func (m *CreateThingAnyResponse) String() string
type CreateThingOneOfRequest ¶
type CreateThingOneOfRequest struct {
Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
}
func (*CreateThingOneOfRequest) Descriptor ¶
func (*CreateThingOneOfRequest) Descriptor() ([]byte, []int)
func (*CreateThingOneOfRequest) GetName ¶
func (m *CreateThingOneOfRequest) GetName() string
func (*CreateThingOneOfRequest) ProtoMessage ¶
func (*CreateThingOneOfRequest) ProtoMessage()
func (*CreateThingOneOfRequest) Reset ¶
func (m *CreateThingOneOfRequest) Reset()
func (*CreateThingOneOfRequest) String ¶
func (m *CreateThingOneOfRequest) String() string
type CreateThingOneOfResponse ¶
type CreateThingOneOfResponse struct { // Types that are valid to be assigned to Result: // *CreateThingOneOfResponse_Thing // *CreateThingOneOfResponse_Error Result isCreateThingOneOfResponse_Result `protobuf_oneof:"Result"` }
func (*CreateThingOneOfResponse) Descriptor ¶
func (*CreateThingOneOfResponse) Descriptor() ([]byte, []int)
func (*CreateThingOneOfResponse) GetError ¶
func (m *CreateThingOneOfResponse) GetError() *Error
func (*CreateThingOneOfResponse) GetResult ¶
func (m *CreateThingOneOfResponse) GetResult() isCreateThingOneOfResponse_Result
func (*CreateThingOneOfResponse) GetThing ¶
func (m *CreateThingOneOfResponse) GetThing() *Thing
func (*CreateThingOneOfResponse) ProtoMessage ¶
func (*CreateThingOneOfResponse) ProtoMessage()
func (*CreateThingOneOfResponse) Reset ¶
func (m *CreateThingOneOfResponse) Reset()
func (*CreateThingOneOfResponse) String ¶
func (m *CreateThingOneOfResponse) String() string
func (*CreateThingOneOfResponse) XXX_OneofFuncs ¶
func (*CreateThingOneOfResponse) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type CreateThingOneOfResponse_Error ¶
type CreateThingOneOfResponse_Error struct {
Error *Error `protobuf:"bytes,2,opt,name=Error,oneof"`
}
type CreateThingOneOfResponse_Thing ¶
type CreateThingOneOfResponse_Thing struct {
Thing *Thing `protobuf:"bytes,1,opt,name=Thing,oneof"`
}
type Error ¶
type Error struct { Code ErrorCode `protobuf:"varint,1,opt,name=Code,enum=ErrorCode" json:"Code,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message" json:"Message,omitempty"` Service string `protobuf:"bytes,3,opt,name=Service" json:"Service,omitempty"` Details map[string]string `` /* 134-byte string literal not displayed */ }
func (*Error) Descriptor ¶
func (*Error) GetDetails ¶
func (*Error) GetMessage ¶
func (*Error) GetService ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
type Service ¶
type Service interface { CreateThingOneOf(ctx context.Context, in *CreateThingOneOfRequest, opts ...client.CallOption) (*CreateThingOneOfResponse, error) CreateThingAny(ctx context.Context, in *CreateThingAnyRequest, opts ...client.CallOption) (*CreateThingAnyResponse, error) }
type ServiceHandler ¶
type ServiceHandler interface { CreateThingOneOf(context.Context, *CreateThingOneOfRequest, *CreateThingOneOfResponse) error CreateThingAny(context.Context, *CreateThingAnyRequest, *CreateThingAnyResponse) error }
type Thing ¶
type Thing struct { ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"` }
func (*Thing) Descriptor ¶
func (*Thing) ProtoMessage ¶
func (*Thing) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.