Documentation ¶
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() *timestamp.Timestamp
- func (m *Chat) GetOpen() bool
- func (m *Chat) GetUid() string
- func (m *Chat) GetUpdatedTime() *timestamp.Timestamp
- func (c Chat) Key() string
- func (c Chat) MarshalJSON() ([]byte, error)
- func (*Chat) ProtoMessage()
- func (m *Chat) Reset()
- func (m *Chat) String() string
- func (c *Chat) UnmarshalJSON(data []byte) error
- func (m *Chat) XXX_DiscardUnknown()
- func (m *Chat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Chat) XXX_Merge(src proto.Message)
- func (m *Chat) XXX_Size() int
- func (m *Chat) XXX_Unmarshal(b []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() *timestamp.Timestamp
- func (m Message) Key() string
- func (m Message) MarshalJSON() ([]byte, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) UnmarshalJSON(data []byte) error
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []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 *timestamp.Timestamp `protobuf:"bytes,1,opt,name=creation_time,proto3" json:"creation_time,omitempty"` UpdatedTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=updated_time,json=update_time,proto3" json:"updated_time,omitempty"` Open bool `protobuf:"varint,3,opt,name=open,proto3" json:"open,omitempty"` Uid string `protobuf:"bytes,4,opt,name=uid,json=id,proto3" json:"uid,omitempty"` Client *client.Client `protobuf:"bytes,5,opt,name=client,proto3" json:"client,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Chat) Descriptor ¶
func (*Chat) GetCreationTime ¶
func (*Chat) GetUpdatedTime ¶
func (Chat) Key ¶
Key implements the Keyer interface of the Store and returns a string used for storing the Webhook in memory.
func (Chat) MarshalJSON ¶
MarshalJSON converts a Chat object into a JSON string returned as a byte array.
func (*Chat) ProtoMessage ¶
func (*Chat) ProtoMessage()
func (*Chat) UnmarshalJSON ¶
UnmarshalJSON converts a JSON string (as a byte array) into a Chat object.
func (*Chat) XXX_DiscardUnknown ¶
func (m *Chat) XXX_DiscardUnknown()
func (*Chat) XXX_Unmarshal ¶
type Message ¶
type Message struct { Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Author string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"` Chat string `protobuf:"bytes,4,opt,name=chat,proto3" json:"chat,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 (Message) Key ¶
Key implements the Keyer interface of the Store and returns a string used for storing the Message in memory.
func (Message) MarshalJSON ¶
MarshalJSON converts a Message object into a JSON string returned as a byte array
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) UnmarshalJSON ¶
UnmarshalJSON converts a JSON string (as a byte array) into a Message object
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.