chat_grpc

package
v0.0.0-...-945c817 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterChatHandlerServer

func RegisterChatHandlerServer(s *grpc.Server, srv ChatHandlerServer)

Types

type Chat

type Chat struct {
	ID                   int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	User                 int64    `protobuf:"varint,2,opt,name=User,proto3" json:"User,omitempty"`
	Support              int64    `protobuf:"varint,3,opt,name=Support,proto3" json:"Support,omitempty"`
	Name                 string   `protobuf:"bytes,4,opt,name=Name,proto3" json:"Name,omitempty"`
	Proposal             int64    `protobuf:"varint,5,opt,name=Proposal,proto3" json:"Proposal,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Chat) Descriptor

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

func (*Chat) GetID

func (m *Chat) GetID() int64

func (*Chat) GetName

func (m *Chat) GetName() string

func (*Chat) GetProposal

func (m *Chat) GetProposal() int64

func (*Chat) GetSupport

func (m *Chat) GetSupport() int64

func (*Chat) GetUser

func (m *Chat) GetUser() int64

func (*Chat) ProtoMessage

func (*Chat) ProtoMessage()

func (*Chat) Reset

func (m *Chat) Reset()

func (*Chat) String

func (m *Chat) String() string

func (*Chat) XXX_DiscardUnknown

func (m *Chat) XXX_DiscardUnknown()

func (*Chat) XXX_Marshal

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

func (*Chat) XXX_Merge

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

func (*Chat) XXX_Size

func (m *Chat) XXX_Size() int

func (*Chat) XXX_Unmarshal

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

type ChatHandlerClient

type ChatHandlerClient interface {
	Create(ctx context.Context, in *Chat, opts ...grpc.CallOption) (*Chat, error)
}

ChatHandlerClient is the client API for ChatHandler service.

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

func NewChatHandlerClient

func NewChatHandlerClient(cc *grpc.ClientConn) ChatHandlerClient

type ChatHandlerServer

type ChatHandlerServer interface {
	Create(context.Context, *Chat) (*Chat, error)
}

ChatHandlerServer is the server API for ChatHandler service.

type Nothing

type Nothing struct {
	Dummy                bool     `protobuf:"varint,1,opt,name=dummy,proto3" json:"dummy,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Nothing) Descriptor

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

func (*Nothing) GetDummy

func (m *Nothing) GetDummy() bool

func (*Nothing) ProtoMessage

func (*Nothing) ProtoMessage()

func (*Nothing) Reset

func (m *Nothing) Reset()

func (*Nothing) String

func (m *Nothing) String() string

func (*Nothing) XXX_DiscardUnknown

func (m *Nothing) XXX_DiscardUnknown()

func (*Nothing) XXX_Marshal

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

func (*Nothing) XXX_Merge

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

func (*Nothing) XXX_Size

func (m *Nothing) XXX_Size() int

func (*Nothing) XXX_Unmarshal

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

type UnimplementedChatHandlerServer

type UnimplementedChatHandlerServer struct {
}

UnimplementedChatHandlerServer can be embedded to have forward compatible implementations.

func (*UnimplementedChatHandlerServer) Create

Jump to

Keyboard shortcuts

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