Documentation ¶
Index ¶
- Variables
- func Contains(s []string, str string) bool
- func JSONOrDefault(j null.JSON) json.RawMessage
- func PrintMMY(definition *models.DeviceDefinition, color string, includeSource bool) string
- func SubModelsFromStylesDB(styles models.DeviceStyleSlice) []string
- type ConflictError
- type ErrorResponse
- type InternalError
- type NotFoundError
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
View Source
var Green = "\033[32m"
View Source
var Purple = "\033[35m"
View Source
var Red = "\033[31m"
View Source
var Reset = "\033[0m"
Functions ¶
func JSONOrDefault ¶ added in v0.1.2
func JSONOrDefault(j null.JSON) json.RawMessage
func PrintMMY ¶ added in v0.1.4
func PrintMMY(definition *models.DeviceDefinition, color string, includeSource bool) string
func SubModelsFromStylesDB ¶ added in v0.1.4
func SubModelsFromStylesDB(styles models.DeviceStyleSlice) []string
SubModelsFromStylesDB gets the unique style.SubModel from the styles slice, deduping sub_model
Types ¶
type ConflictError ¶
type ConflictError struct {
Err error
}
func (*ConflictError) Error ¶
func (r *ConflictError) Error() string
type ErrorResponse ¶
type InternalError ¶
type InternalError struct {
Err error
}
func (*InternalError) Error ¶
func (r *InternalError) Error() string
type NotFoundError ¶
type NotFoundError struct {
Err error
}
func (*NotFoundError) Error ¶
func (r *NotFoundError) Error() string
type ValidationError ¶
type ValidationError struct {
Err error
}
func (*ValidationError) Error ¶
func (r *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.