Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProfileCollection string = "profile"
ProfileCollection collection for profile
View Source
var UserCollection string = "user"
UserCollection collection for user
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ServerHost string // address that server will listening on MongoConnectionURI string // mongo db connection uri DatabaseName string // mongo db database name SecretKey string // JWT SecretKey ExpirationDuration time.Duration // JWT ExpirationDuration }
Config is the server configuration structure.
Click to show internal directories.
Click to hide internal directories.