proto

package
v0.0.0-...-0848e97 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: MIT Imports: 6 Imported by: 2

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 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

Jump to

Keyboard shortcuts

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