wat

package
v0.0.0-...-b9f4cee Latest Latest
Warning

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

Go to latest
Published: May 7, 2017 License: MIT Imports: 6 Imported by: 3

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

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 (*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 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) Descriptor() ([]byte, []int)

func (*Request) GetUsername

func (m *Request) GetUsername() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

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

Jump to

Keyboard shortcuts

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