cat

package
v0.0.0-...-9c22a6a Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCatServer

func RegisterCatServer(s *grpc.Server, srv CatServer)

Types

type CatClient

type CatClient interface {
	FindCuteCat(ctx context.Context, in *FindCuteCatMessage, opts ...grpc.CallOption) (*CuteCatResponse, error)
}

CatClient is the client API for Cat service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCatClient

func NewCatClient(cc *grpc.ClientConn) CatClient

type CatServer

type CatServer interface {
	FindCuteCat(context.Context, *FindCuteCatMessage) (*CuteCatResponse, error)
}

CatServer is the server API for Cat service.

type CuteCatResponse

type CuteCatResponse struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Kind                 string   `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CuteCatResponse) Descriptor

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

func (*CuteCatResponse) GetKind

func (m *CuteCatResponse) GetKind() string

func (*CuteCatResponse) GetName

func (m *CuteCatResponse) GetName() string

func (*CuteCatResponse) ProtoMessage

func (*CuteCatResponse) ProtoMessage()

func (*CuteCatResponse) Reset

func (m *CuteCatResponse) Reset()

func (*CuteCatResponse) String

func (m *CuteCatResponse) String() string

func (*CuteCatResponse) XXX_DiscardUnknown

func (m *CuteCatResponse) XXX_DiscardUnknown()

func (*CuteCatResponse) XXX_Marshal

func (m *CuteCatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CuteCatResponse) XXX_Merge

func (m *CuteCatResponse) XXX_Merge(src proto.Message)

func (*CuteCatResponse) XXX_Size

func (m *CuteCatResponse) XXX_Size() int

func (*CuteCatResponse) XXX_Unmarshal

func (m *CuteCatResponse) XXX_Unmarshal(b []byte) error

type FindCuteCatMessage

type FindCuteCatMessage struct {
	CatId                string   `protobuf:"bytes,1,opt,name=catId,proto3" json:"catId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FindCuteCatMessage) Descriptor

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

func (*FindCuteCatMessage) GetCatId

func (m *FindCuteCatMessage) GetCatId() string

func (*FindCuteCatMessage) ProtoMessage

func (*FindCuteCatMessage) ProtoMessage()

func (*FindCuteCatMessage) Reset

func (m *FindCuteCatMessage) Reset()

func (*FindCuteCatMessage) String

func (m *FindCuteCatMessage) String() string

func (*FindCuteCatMessage) XXX_DiscardUnknown

func (m *FindCuteCatMessage) XXX_DiscardUnknown()

func (*FindCuteCatMessage) XXX_Marshal

func (m *FindCuteCatMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FindCuteCatMessage) XXX_Merge

func (m *FindCuteCatMessage) XXX_Merge(src proto.Message)

func (*FindCuteCatMessage) XXX_Size

func (m *FindCuteCatMessage) XXX_Size() int

func (*FindCuteCatMessage) XXX_Unmarshal

func (m *FindCuteCatMessage) XXX_Unmarshal(b []byte) error

type UnimplementedCatServer

type UnimplementedCatServer struct {
}

UnimplementedCatServer can be embedded to have forward compatible implementations.

func (*UnimplementedCatServer) FindCuteCat

Jump to

Keyboard shortcuts

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