Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chat ¶
type Chat struct { Id primitive.ObjectID `bson:"_id,omitempty" json:"id"` Users []int `bson:"users" json:"users"` Unread int `bson:"-" json:"unread"` CreatedAt int64 `bson:"ts" json:"createdAt"` }
func (*Chat) BeforeSave ¶
func (c *Chat) BeforeSave()
func (*Chat) UsersExceptOne ¶
type ConsulAgent ¶
type KernelError ¶
func NewError ¶
func NewError(code string, message string) *KernelError
func (KernelError) Error ¶
func (r KernelError) Error() string
type Message ¶
type Message struct { Id primitive.ObjectID `bson:"_id,omitempty" json:"id"` ChatId primitive.ObjectID `bson:"cid" json:"cid"` UserId int `bson:"aid" json:"uid"` CreatedAt int64 `bson:"ts" json:"createdAt"` Text string `bson:"txt" json:"text"` Read bool `bson:"rdn" json:"-"` }
func (*Message) BeforeSave ¶
func (m *Message) BeforeSave()
type RedisClient ¶
type SagaOrchestrator ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.