Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
thing-group.proto
It has these top-level messages:
ThingGroup GroupIDRequest UserIDRequest
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterThingGroupSvcServer ¶
func RegisterThingGroupSvcServer(s *grpc.Server, srv ThingGroupSvcServer)
Types ¶
type GroupIDRequest ¶
type GroupIDRequest struct {
ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
}
func (*GroupIDRequest) Descriptor ¶
func (*GroupIDRequest) Descriptor() ([]byte, []int)
func (*GroupIDRequest) GetID ¶
func (m *GroupIDRequest) GetID() string
func (*GroupIDRequest) ProtoMessage ¶
func (*GroupIDRequest) ProtoMessage()
func (*GroupIDRequest) Reset ¶
func (m *GroupIDRequest) Reset()
func (*GroupIDRequest) String ¶
func (m *GroupIDRequest) String() string
type ThingGroup ¶
type ThingGroup struct {
Item []byte `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
}
func (*ThingGroup) Descriptor ¶
func (*ThingGroup) Descriptor() ([]byte, []int)
func (*ThingGroup) GetItem ¶
func (m *ThingGroup) GetItem() []byte
func (*ThingGroup) ProtoMessage ¶
func (*ThingGroup) ProtoMessage()
func (*ThingGroup) Reset ¶
func (m *ThingGroup) Reset()
func (*ThingGroup) String ¶
func (m *ThingGroup) String() string
type ThingGroupSvcClient ¶
type ThingGroupSvcClient interface { GetGroup(ctx context.Context, in *GroupIDRequest, opts ...grpc.CallOption) (*ThingGroup, error) ListUserGroups(ctx context.Context, in *UserIDRequest, opts ...grpc.CallOption) (ThingGroupSvc_ListUserGroupsClient, error) UpdateGroup(ctx context.Context, in *ThingGroup, opts ...grpc.CallOption) (*ThingGroup, error) CreateGroup(ctx context.Context, in *ThingGroup, opts ...grpc.CallOption) (*ThingGroup, error) DeleteGroup(ctx context.Context, in *GroupIDRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) }
func NewThingGroupSvcClient ¶
func NewThingGroupSvcClient(cc *grpc.ClientConn) ThingGroupSvcClient
type ThingGroupSvcServer ¶
type ThingGroupSvcServer interface { GetGroup(context.Context, *GroupIDRequest) (*ThingGroup, error) ListUserGroups(*UserIDRequest, ThingGroupSvc_ListUserGroupsServer) error UpdateGroup(context.Context, *ThingGroup) (*ThingGroup, error) CreateGroup(context.Context, *ThingGroup) (*ThingGroup, error) DeleteGroup(context.Context, *GroupIDRequest) (*google_protobuf.Empty, error) }
type ThingGroupSvc_ListUserGroupsClient ¶
type ThingGroupSvc_ListUserGroupsClient interface { Recv() (*ThingGroup, error) grpc.ClientStream }
type ThingGroupSvc_ListUserGroupsServer ¶
type ThingGroupSvc_ListUserGroupsServer interface { Send(*ThingGroup) error grpc.ServerStream }
type UserIDRequest ¶
type UserIDRequest struct {
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId" json:"user_id,omitempty"`
}
func (*UserIDRequest) Descriptor ¶
func (*UserIDRequest) Descriptor() ([]byte, []int)
func (*UserIDRequest) GetUserId ¶
func (m *UserIDRequest) GetUserId() string
func (*UserIDRequest) ProtoMessage ¶
func (*UserIDRequest) ProtoMessage()
func (*UserIDRequest) Reset ¶
func (m *UserIDRequest) Reset()
func (*UserIDRequest) String ¶
func (m *UserIDRequest) String() string
Click to show internal directories.
Click to hide internal directories.