chatpb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterChatServiceServer

func RegisterChatServiceServer(s *grpc.Server, srv ChatServiceServer)

Types

type ChatRequest

type ChatRequest struct {
	Text                 string   `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ChatRequest) Descriptor

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

func (*ChatRequest) GetText

func (m *ChatRequest) GetText() string

func (*ChatRequest) ProtoMessage

func (*ChatRequest) ProtoMessage()

func (*ChatRequest) Reset

func (m *ChatRequest) Reset()

func (*ChatRequest) String

func (m *ChatRequest) String() string

func (*ChatRequest) XXX_DiscardUnknown

func (m *ChatRequest) XXX_DiscardUnknown()

func (*ChatRequest) XXX_Marshal

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

func (*ChatRequest) XXX_Merge

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

func (*ChatRequest) XXX_Size

func (m *ChatRequest) XXX_Size() int

func (*ChatRequest) XXX_Unmarshal

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

type ChatResponse

type ChatResponse struct {
	Channel              string   `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Text                 string   `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	User                 string   `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	Timestamp            string   `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ChatResponse) Descriptor

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

func (*ChatResponse) GetChannel

func (m *ChatResponse) GetChannel() string

func (*ChatResponse) GetText

func (m *ChatResponse) GetText() string

func (*ChatResponse) GetTimestamp

func (m *ChatResponse) GetTimestamp() string

func (*ChatResponse) GetUser

func (m *ChatResponse) GetUser() string

func (*ChatResponse) ProtoMessage

func (*ChatResponse) ProtoMessage()

func (*ChatResponse) Reset

func (m *ChatResponse) Reset()

func (*ChatResponse) String

func (m *ChatResponse) String() string

func (*ChatResponse) XXX_DiscardUnknown

func (m *ChatResponse) XXX_DiscardUnknown()

func (*ChatResponse) XXX_Marshal

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

func (*ChatResponse) XXX_Merge

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

func (*ChatResponse) XXX_Size

func (m *ChatResponse) XXX_Size() int

func (*ChatResponse) XXX_Unmarshal

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

type ChatServiceClient

type ChatServiceClient interface {
	Chat(ctx context.Context, opts ...grpc.CallOption) (ChatService_ChatClient, error)
}

ChatServiceClient is the client API for ChatService service.

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

func NewChatServiceClient

func NewChatServiceClient(cc *grpc.ClientConn) ChatServiceClient

type ChatServiceServer

type ChatServiceServer interface {
	Chat(ChatService_ChatServer) error
}

ChatServiceServer is the server API for ChatService service.

type ChatService_ChatClient

type ChatService_ChatClient interface {
	Send(*ChatRequest) error
	Recv() (*ChatResponse, error)
	grpc.ClientStream
}

type ChatService_ChatServer

type ChatService_ChatServer interface {
	Send(*ChatResponse) error
	Recv() (*ChatRequest, error)
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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