Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Database DBSettings Host HostSettings }
Configuration hold the all configurations in a single struct
type DBSettings ¶
DBSettings hold the Cassandra DB Settings
type HostSettings ¶
type HostSettings struct {
Port string
}
HostSettings hold the GIN Web Server Settings
type RestErr ¶
type RestErr struct { Message string `json:"message"` Status int `json:"status"` Error string `json:"error"` }
func BadRequestError ¶
BadRequestError return RestErr with bad_request status and messages
func InternalServerError ¶
mcustom error return RestErr with internal_server status and messages
func NotFoundRequestError ¶
NotFoundRequestError return RestErr with not_found status and messages
Click to show internal directories.
Click to hide internal directories.