Documentation
¶
Overview ¶
Package wat is a generated protocol buffer package.
It is generated from these files:
Wat.proto
It has these top-level messages:
LoginRequest RegisterRequest LoginReply WeatherRequest WeatherReply Request ChatMessageReply ConversationRequest ConversationReply
Index ¶
- func RegisterChatServer(s *grpc.Server, srv ChatServer)
- type ChatClient
- type ChatMessageReply
- func (*ChatMessageReply) Descriptor() ([]byte, []int)
- func (m *ChatMessageReply) GetContent() string
- func (m *ChatMessageReply) GetConversationId() int32
- func (m *ChatMessageReply) GetSent() *google_protobuf.Timestamp
- func (m *ChatMessageReply) GetSentByUser() string
- func (*ChatMessageReply) ProtoMessage()
- func (m *ChatMessageReply) Reset()
- func (m *ChatMessageReply) String() string
- type ChatServer
- type Chat_RouteChatClient
- type Chat_RouteChatServer
- type Chat_RouteConversationClient
- type Chat_RouteConversationServer
- type ConversationReply
- func (*ConversationReply) Descriptor() ([]byte, []int)
- func (m *ConversationReply) GetFromDate() *google_protobuf.Timestamp
- func (m *ConversationReply) GetId() int32
- func (m *ConversationReply) GetLatestMessage() *ChatMessageReply
- func (m *ConversationReply) GetName() string
- func (*ConversationReply) ProtoMessage()
- func (m *ConversationReply) Reset()
- func (m *ConversationReply) String() string
- type ConversationRequest
- type LoginReply
- type LoginRequest
- type RegisterRequest
- type Request
- type WeatherReply
- type WeatherRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterChatServer ¶
func RegisterChatServer(s *grpc.Server, srv ChatServer)
Types ¶
type ChatClient ¶
type ChatClient interface { GetWeather(ctx context.Context, in *WeatherRequest, opts ...grpc.CallOption) (*WeatherReply, error) VerifyLogin(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) SendMessage(ctx context.Context, in *ChatMessageReply, opts ...grpc.CallOption) (*Request, error) RouteConversation(ctx context.Context, in *Request, opts ...grpc.CallOption) (Chat_RouteConversationClient, error) RouteChat(ctx context.Context, in *ConversationRequest, opts ...grpc.CallOption) (Chat_RouteChatClient, error) }
func NewChatClient ¶
func NewChatClient(cc *grpc.ClientConn) ChatClient
type ChatMessageReply ¶
type ChatMessageReply struct { ConversationId int32 `protobuf:"varint,1,opt,name=conversationId" json:"conversationId,omitempty"` Content string `protobuf:"bytes,2,opt,name=content" json:"content,omitempty"` Sent *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=sent" json:"sent,omitempty"` SentByUser string `protobuf:"bytes,4,opt,name=sentByUser" json:"sentByUser,omitempty"` }
func (*ChatMessageReply) Descriptor ¶
func (*ChatMessageReply) Descriptor() ([]byte, []int)
func (*ChatMessageReply) GetContent ¶
func (m *ChatMessageReply) GetContent() string
func (*ChatMessageReply) GetConversationId ¶
func (m *ChatMessageReply) GetConversationId() int32
func (*ChatMessageReply) GetSent ¶
func (m *ChatMessageReply) GetSent() *google_protobuf.Timestamp
func (*ChatMessageReply) GetSentByUser ¶
func (m *ChatMessageReply) GetSentByUser() string
func (*ChatMessageReply) ProtoMessage ¶
func (*ChatMessageReply) ProtoMessage()
func (*ChatMessageReply) Reset ¶
func (m *ChatMessageReply) Reset()
func (*ChatMessageReply) String ¶
func (m *ChatMessageReply) String() string
type ChatServer ¶
type ChatServer interface { GetWeather(context.Context, *WeatherRequest) (*WeatherReply, error) VerifyLogin(context.Context, *LoginRequest) (*LoginReply, error) SendMessage(context.Context, *ChatMessageReply) (*Request, error) RouteConversation(*Request, Chat_RouteConversationServer) error RouteChat(*ConversationRequest, Chat_RouteChatServer) error }
type Chat_RouteChatClient ¶
type Chat_RouteChatClient interface { Recv() (*ChatMessageReply, error) grpc.ClientStream }
type Chat_RouteChatServer ¶
type Chat_RouteChatServer interface { Send(*ChatMessageReply) error grpc.ServerStream }
type Chat_RouteConversationClient ¶
type Chat_RouteConversationClient interface { Recv() (*ConversationReply, error) grpc.ClientStream }
type Chat_RouteConversationServer ¶
type Chat_RouteConversationServer interface { Send(*ConversationReply) error grpc.ServerStream }
type ConversationReply ¶
type ConversationReply struct { Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` FromDate *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=fromDate" json:"fromDate,omitempty"` Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` LatestMessage *ChatMessageReply `protobuf:"bytes,4,opt,name=latestMessage" json:"latestMessage,omitempty"` }
func (*ConversationReply) Descriptor ¶
func (*ConversationReply) Descriptor() ([]byte, []int)
func (*ConversationReply) GetFromDate ¶
func (m *ConversationReply) GetFromDate() *google_protobuf.Timestamp
func (*ConversationReply) GetId ¶
func (m *ConversationReply) GetId() int32
func (*ConversationReply) GetLatestMessage ¶
func (m *ConversationReply) GetLatestMessage() *ChatMessageReply
func (*ConversationReply) GetName ¶
func (m *ConversationReply) GetName() string
func (*ConversationReply) ProtoMessage ¶
func (*ConversationReply) ProtoMessage()
func (*ConversationReply) Reset ¶
func (m *ConversationReply) Reset()
func (*ConversationReply) String ¶
func (m *ConversationReply) String() string
type ConversationRequest ¶
type ConversationRequest struct { Id int32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Request *Request `protobuf:"bytes,2,opt,name=request" json:"request,omitempty"` }
func (*ConversationRequest) Descriptor ¶
func (*ConversationRequest) Descriptor() ([]byte, []int)
func (*ConversationRequest) GetId ¶
func (m *ConversationRequest) GetId() int32
func (*ConversationRequest) GetRequest ¶
func (m *ConversationRequest) GetRequest() *Request
func (*ConversationRequest) ProtoMessage ¶
func (*ConversationRequest) ProtoMessage()
func (*ConversationRequest) Reset ¶
func (m *ConversationRequest) Reset()
func (*ConversationRequest) String ¶
func (m *ConversationRequest) String() string
type LoginReply ¶
type LoginReply struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` MessageOfTheDay string `protobuf:"bytes,2,opt,name=messageOfTheDay" json:"messageOfTheDay,omitempty"` }
func (*LoginReply) Descriptor ¶
func (*LoginReply) Descriptor() ([]byte, []int)
func (*LoginReply) GetMessageOfTheDay ¶
func (m *LoginReply) GetMessageOfTheDay() string
func (*LoginReply) GetUsername ¶
func (m *LoginReply) GetUsername() string
func (*LoginReply) ProtoMessage ¶
func (*LoginReply) ProtoMessage()
func (*LoginReply) Reset ¶
func (m *LoginReply) Reset()
func (*LoginReply) String ¶
func (m *LoginReply) String() string
type LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` }
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) GetPassword ¶
func (m *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶
func (m *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
type RegisterRequest ¶
type RegisterRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` }
func (*RegisterRequest) Descriptor ¶
func (*RegisterRequest) Descriptor() ([]byte, []int)
func (*RegisterRequest) GetPassword ¶
func (m *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetUsername ¶
func (m *RegisterRequest) GetUsername() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) Reset ¶
func (m *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (m *RegisterRequest) String() string
type Request ¶
type Request struct {
Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
}
func (*Request) Descriptor ¶
func (*Request) GetUsername ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type WeatherReply ¶
type WeatherReply struct { Broadcast string `protobuf:"bytes,1,opt,name=broadcast" json:"broadcast,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` }
func (*WeatherReply) Descriptor ¶
func (*WeatherReply) Descriptor() ([]byte, []int)
func (*WeatherReply) GetBroadcast ¶
func (m *WeatherReply) GetBroadcast() string
func (*WeatherReply) GetDescription ¶
func (m *WeatherReply) GetDescription() string
func (*WeatherReply) ProtoMessage ¶
func (*WeatherReply) ProtoMessage()
func (*WeatherReply) Reset ¶
func (m *WeatherReply) Reset()
func (*WeatherReply) String ¶
func (m *WeatherReply) String() string
type WeatherRequest ¶
type WeatherRequest struct {
Ip string `protobuf:"bytes,1,opt,name=ip" json:"ip,omitempty"`
}
func (*WeatherRequest) Descriptor ¶
func (*WeatherRequest) Descriptor() ([]byte, []int)
func (*WeatherRequest) GetIp ¶
func (m *WeatherRequest) GetIp() string
func (*WeatherRequest) ProtoMessage ¶
func (*WeatherRequest) ProtoMessage()
func (*WeatherRequest) Reset ¶
func (m *WeatherRequest) Reset()
func (*WeatherRequest) String ¶
func (m *WeatherRequest) String() string
Click to show internal directories.
Click to hide internal directories.