utils

package
v0.0.0-...-7e6df26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBody

func GetBody(resp *http.Response, body interface{}) error

func ToString

func ToString(body interface{}) string

func ValidateInput

func ValidateInput(input interface{}) error

ValidateInput validates an input struct matches the schema defined on the struct

Types

type Error

type Error struct {
	RequestId string `json:"requestId"`
	Code      string `json:"code"`
	Message   string `json:"message"`
}

func FromError

func FromError(err error) *Error

func NewError

func NewError(message string) *Error

func (*Error) Error

func (err *Error) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL