Discover Packages
github.com/layer-devops/livechat-example/services/api
pkg
model
package
Version:
v0.0.0-...-b9cce74
Opens a new window with list of versions in this module.
Published: Aug 17, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const ConnString = "postgres://postgresql:postgresql@postgresql:5432/livechat-example?sslmode=disable"
func Get(dest interface{}, query string , args ...interface{}) error
func Select(dest interface{}, query string , args ...interface{}) error
type Channel struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Topic string `json:"topic"`
Description string `json:"description"`
}
type ChannelMessage struct {
ChannelUUID string `json:"channel_uuid"`
UserUUID string `json:"user_uuid"`
Index int `json:"index"`
Text string `json:"text"`
Time time .Time `json:"time"`
}
type User struct {
UUID string `json:"uuid"`
Name string `json:"name"`
PasswordHash string `json:"-"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.