metadata

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: 0

Documentation

Index

Constants

View Source
const FailureResult = annotator.FailureKind
View Source
const Kind = "ipfs"
View Source
const SuccessResult = annotator.SuccessKind

Variables

This section is empty.

Functions

This section is empty.

Types

type Failure

type Failure struct {
	Result       string `json:"result"`
	ErrorMessage string `json:"errorMessage"`
}

Failure defines the structure that encapsulates this publisher's result.

func NewFailure

func NewFailure(errorMessage string) *Failure

NewFailure is a factory function that returns an initialized Failure.

func (*Failure) Kind

func (*Failure) Kind() string

Kind returns the type of concrete implementation.

type Success

type Success struct {
	Result string `json:"result"`
	CID    string `json:"cid"`
}

Success defines the structure that encapsulates this publisher's result.

func NewSuccess

func NewSuccess(cid string) *Success

NewSuccess is a factory function that returns an initialized Success.

func (*Success) Kind

func (*Success) Kind() string

Kind returns the type of concrete implementation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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