proto

package
v0.0.0-...-807f60a 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.proto

It has these top-level messages:

ThingIDArray
Thing
ThingIDRequest
GroupRequest

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterThingSvcServer

func RegisterThingSvcServer(s *grpc.Server, srv ThingSvcServer)

Types

type GroupRequest

type GroupRequest struct {
	ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
}

func (*GroupRequest) Descriptor

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

func (*GroupRequest) GetID

func (m *GroupRequest) GetID() string

func (*GroupRequest) ProtoMessage

func (*GroupRequest) ProtoMessage()

func (*GroupRequest) Reset

func (m *GroupRequest) Reset()

func (*GroupRequest) String

func (m *GroupRequest) String() string

type Thing

type Thing struct {
	Item []byte `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
}

func (*Thing) Descriptor

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

func (*Thing) GetItem

func (m *Thing) GetItem() []byte

func (*Thing) ProtoMessage

func (*Thing) ProtoMessage()

func (*Thing) Reset

func (m *Thing) Reset()

func (*Thing) String

func (m *Thing) String() string

type ThingIDArray

type ThingIDArray struct {
	Things []string `protobuf:"bytes,1,rep,name=things" json:"things,omitempty"`
}

func (*ThingIDArray) Descriptor

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

func (*ThingIDArray) GetThings

func (m *ThingIDArray) GetThings() []string

func (*ThingIDArray) ProtoMessage

func (*ThingIDArray) ProtoMessage()

func (*ThingIDArray) Reset

func (m *ThingIDArray) Reset()

func (*ThingIDArray) String

func (m *ThingIDArray) String() string

type ThingIDRequest

type ThingIDRequest struct {
	ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
}

func (*ThingIDRequest) Descriptor

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

func (*ThingIDRequest) GetID

func (m *ThingIDRequest) GetID() string

func (*ThingIDRequest) ProtoMessage

func (*ThingIDRequest) ProtoMessage()

func (*ThingIDRequest) Reset

func (m *ThingIDRequest) Reset()

func (*ThingIDRequest) String

func (m *ThingIDRequest) String() string

type ThingSvcClient

type ThingSvcClient interface {
	GetThing(ctx context.Context, in *ThingIDRequest, opts ...grpc.CallOption) (*Thing, error)
	ListGroupThings(ctx context.Context, in *GroupRequest, opts ...grpc.CallOption) (ThingSvc_ListGroupThingsClient, error)
	CreateThing(ctx context.Context, in *Thing, opts ...grpc.CallOption) (*Thing, error)
	UpdateThing(ctx context.Context, in *Thing, opts ...grpc.CallOption) (*Thing, error)
	DeleteThing(ctx context.Context, in *ThingIDRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	BulkDeleteThing(ctx context.Context, in *ThingIDArray, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
}

func NewThingSvcClient

func NewThingSvcClient(cc *grpc.ClientConn) ThingSvcClient

type ThingSvcServer

type ThingSvcServer interface {
	GetThing(context.Context, *ThingIDRequest) (*Thing, error)
	ListGroupThings(*GroupRequest, ThingSvc_ListGroupThingsServer) error
	CreateThing(context.Context, *Thing) (*Thing, error)
	UpdateThing(context.Context, *Thing) (*Thing, error)
	DeleteThing(context.Context, *ThingIDRequest) (*google_protobuf.Empty, error)
	BulkDeleteThing(context.Context, *ThingIDArray) (*google_protobuf.Empty, error)
}

type ThingSvc_ListGroupThingsClient

type ThingSvc_ListGroupThingsClient interface {
	Recv() (*Thing, error)
	grpc.ClientStream
}

type ThingSvc_ListGroupThingsServer

type ThingSvc_ListGroupThingsServer interface {
	Send(*Thing) error
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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