Documentation ¶
Overview ¶
Package chat is a generated protocol buffer package.
It is generated from these files:
chat/chat.proto
It has these top-level messages:
Chat Message
Index ¶
- Constants
- func Routes(router *httprouter.Router, ds *store.InMemory)
- type Chat
- func (*Chat) Descriptor() ([]byte, []int)
- func (m *Chat) GetClient() *client.Client
- func (m *Chat) GetCreationTime() *google_protobuf.Timestamp
- func (m *Chat) GetOpen() bool
- func (m *Chat) GetUid() string
- func (m *Chat) GetUpdatedTime() *google_protobuf.Timestamp
- func (c Chat) MarshalJSON() ([]byte, error)
- func (*Chat) ProtoMessage()
- func (m *Chat) Reset()
- func (c Chat) StoreKey() string
- func (m *Chat) String() string
- func (c *Chat) UnmarshaJSON(data []byte) error
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetAuthor() string
- func (m *Message) GetChat() string
- func (m *Message) GetContent() string
- func (m *Message) GetTimestamp() *google_protobuf.Timestamp
- func (m Message) MarshalJSON() ([]byte, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m Message) StoreKey() string
- func (m *Message) String() string
- func (m *Message) UnmarshalJSON(data []byte) error
Constants ¶
View Source
const ( DEBUG string = "DEBUG" INFO string = "INFO" WARNING string = "WARN" ERROR string = "ERROR" FATAL string = "FATAL" )
Log levels
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chat ¶
type Chat struct { CreationTime *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=creation_time" json:"creation_time,omitempty"` UpdatedTime *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=updated_time,json=update_time" json:"updated_time,omitempty"` Open bool `protobuf:"varint,3,opt,name=open" json:"open,omitempty"` Uid string `protobuf:"bytes,4,opt,name=uid,json=id" json:"uid,omitempty"` Client *client.Client `protobuf:"bytes,5,opt,name=client" json:"client,omitempty"` }
func (*Chat) Descriptor ¶
func (*Chat) GetCreationTime ¶
func (m *Chat) GetCreationTime() *google_protobuf.Timestamp
func (*Chat) GetUpdatedTime ¶
func (m *Chat) GetUpdatedTime() *google_protobuf.Timestamp
func (Chat) MarshalJSON ¶
func (*Chat) ProtoMessage ¶
func (*Chat) ProtoMessage()
func (*Chat) UnmarshaJSON ¶
type Message ¶
type Message struct { Timestamp *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp,omitempty"` Content string `protobuf:"bytes,2,opt,name=content" json:"content,omitempty"` Author string `protobuf:"bytes,3,opt,name=author" json:"author,omitempty"` Chat string `protobuf:"bytes,4,opt,name=chat" json:"chat,omitempty"` }
func CreateMessage ¶
func CreateMessage() *Message
CreateMessage constructs a new `Message` with a default timestamp of now
func (*Message) Descriptor ¶
func (*Message) GetContent ¶
func (*Message) GetTimestamp ¶
func (m *Message) GetTimestamp() *google_protobuf.Timestamp
func (Message) MarshalJSON ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.