Discover Packages
github.com/bhupeshpandey/cars
model
package
Version:
v0.0.0-...-3bbbb78
Opens a new window with list of versions in this module.
Published: Oct 15, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type AppConfig struct {
ServerConfig *ServerConfig `json:'serverConfig'`
CacheConfig *CacheConfig `json:"cacheConfig"`
DBConfig *DBConfig `json:"dbConfig"`
}
type CacheConfig struct {
Size int `json:"capacity"`
}
type DBConfig struct {
Env string `json:"env"`
Host string `json:"host"`
Port int `json:"port"`
}
type Product struct {
ID primitive .ObjectID `json:"_id,omitempty" bson:"_id,omitempty"`
Name string `json:"name,omitempty" bson:"name,omitempty"`
Price float64 `json:"price" bson:"price,omitempty`
Type string `json:"type" bson:"type,omitempty"`
}
type ServerConfig struct {
Host string `json:"host"`
Port int `json:"port"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.