status

package
v0.0.0-...-be3778f Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	Provenance provenance.Contract
	Value      Value
}

Contract represents a success or failure state return value.

func New

func New(provenance provenance.Contract, value Value) *Contract

New is a factory function that returns an initialized Contract.

type Value

type Value int

Value represents a success or failure state.

const (
	Success Value = iota
	PublisherError
	NotFound
	Exists
	Unknown
)

Jump to

Keyboard shortcuts

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