Documentation
¶
Index ¶
- type Result
- func EmptyWithError(err error) *Result
- func EmptyWithErrorPtrUsingErrorWrapper(wrapper *errorwrapper.Wrapper) *Result
- func EmptyWithoutErrorPtr() *Result
- func Error(err error, errVariation errtype.Variation) *Result
- func New(jsonBytes []byte, err error) *Result
- func NewBytes(jsonBytes []byte, wrapper *errorwrapper.Wrapper) *Result
- func NewBytesPtr(jsonBytes *[]byte, wrapper *errorwrapper.Wrapper) *Result
- func NewFromFile(filePath string) *Result
- func NewFromFileLock(filePath string) *Result
- type ResultsCollection
- func EmptyResultsCollection() *ResultsCollection
- func NewResultsCollection(jsonCollection *corejson.ResultsCollection) *ResultsCollection
- func NewResultsCollectionUsingError(err error) *ResultsCollection
- func NewResultsCollectionUsingTypeError(errType errtype.Variation, err error) *ResultsCollection
- func NewResultsCollectionUsingTypeMsg(errType errtype.Variation, msg string) *ResultsCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct { *corejson.Result ErrorWrapper *errorwrapper.Wrapper }
func EmptyWithErrorPtrUsingErrorWrapper ¶
func EmptyWithErrorPtrUsingErrorWrapper( wrapper *errorwrapper.Wrapper, ) *Result
wrapper nil will point to empty error wrapper
func EmptyWithoutErrorPtr ¶
func EmptyWithoutErrorPtr() *Result
func NewBytes ¶
func NewBytes( jsonBytes []byte, wrapper *errorwrapper.Wrapper, ) *Result
wrapper nil will point to empty error wrapper
func NewBytesPtr ¶
func NewBytesPtr( jsonBytes *[]byte, wrapper *errorwrapper.Wrapper, ) *Result
wrapper nil will point to empty error wrapper
func NewFromFile ¶ added in v0.3.0
func NewFromFileLock ¶ added in v0.3.0
type ResultsCollection ¶ added in v0.4.3
type ResultsCollection struct { *corejson.ResultsCollection ErrorCollection *errwrappers.Collection }
func EmptyResultsCollection ¶ added in v0.4.3
func EmptyResultsCollection() *ResultsCollection
func NewResultsCollection ¶ added in v0.4.3
func NewResultsCollection( jsonCollection *corejson.ResultsCollection, ) *ResultsCollection
func NewResultsCollectionUsingError ¶ added in v0.4.3
func NewResultsCollectionUsingError( err error, ) *ResultsCollection
func NewResultsCollectionUsingTypeError ¶ added in v0.4.3
func NewResultsCollectionUsingTypeError( errType errtype.Variation, err error, ) *ResultsCollection
func NewResultsCollectionUsingTypeMsg ¶ added in v0.4.3
func NewResultsCollectionUsingTypeMsg( errType errtype.Variation, msg string, ) *ResultsCollection
Click to show internal directories.
Click to hide internal directories.