result

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultResult

type DefaultResult struct {
	// contains filtered or unexported fields
}

func Drop added in v1.1.0

func Drop() *DefaultResult

func DropWith added in v1.2.3

func DropWith(err error) *DefaultResult

func Fail

func Fail(err error) *DefaultResult

func NewResult

func NewResult(state api.Status) *DefaultResult

func Success

func Success() *DefaultResult

func (*DefaultResult) Batch

func (dr *DefaultResult) Batch() api.Batch

func (*DefaultResult) ChangeStatusTo

func (dr *DefaultResult) ChangeStatusTo(status api.Status)

func (*DefaultResult) Error

func (dr *DefaultResult) Error() error

func (*DefaultResult) Events

func (dr *DefaultResult) Events() []api.Event

func (*DefaultResult) Status

func (dr *DefaultResult) Status() api.Status

func (*DefaultResult) WithError

func (dr *DefaultResult) WithError(err error) *DefaultResult

Jump to

Keyboard shortcuts

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