Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Communication ¶
func Communication(w http.ResponseWriter, r *http.Request)
func DispatchToProvider ¶
func DispatchToProvider(pt ProviderType, p Payload)
func GetMessageList ¶
func GetMessageList(w http.ResponseWriter, r *http.Request)
Types ¶
type Message ¶
type Message struct { ID primitive.ObjectID `bson:"_id" json:"id"` Author string `bson:"author" json:"author"` Message string `bson:"message" json:"message"` Timestamp time.Time `bson:"timestamp" json:"timestamp"` }
func GetMessages ¶
func InsertMessage ¶
type ProviderType ¶
type ProviderType int
const (
AutoMessage ProviderType = iota
)
func (ProviderType) String ¶
func (p ProviderType) String() string
Click to show internal directories.
Click to hide internal directories.