Documentation ¶
Index ¶
- func BoolToStr(value bool) string
- func GetFirstItemValue(getFunc func(key string) interface{}, key string) interface{}
- func HTTPRequest(method, url string, body []byte, headers map[string]string, Username string, ...) (*http.Response, error)
- func HandleError(resourceName, message string, err error) error
- func MarshalExcludeFields(v interface{}, excludeFields []string) ([]byte, error)
- func MarshalNonZeroFields(v interface{}) ([]byte, error)
- func SetConfigValues(config interface{}, commonConfig Configuration)
- type Configuration
- type CustomError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFirstItemValue ¶
func HTTPRequest ¶
func HandleError ¶
HandleError handles errors and returns a CustomError if necessary.
func MarshalExcludeFields ¶
func MarshalNonZeroFields ¶
func SetConfigValues ¶
func SetConfigValues(config interface{}, commonConfig Configuration)
SetConfigValues sets common configuration values for a given config struct.
Types ¶
type Configuration ¶
Configuration holds the common configuration values.
type CustomError ¶
CustomError represents
func NewCustomError ¶
func NewCustomError(resourceName, message string, err error) *CustomError
NewCustomError creates a new CustomError instance.
func (*CustomError) Error ¶
func (ce *CustomError) Error() string
Click to show internal directories.
Click to hide internal directories.