objective

package
v3.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Objective

type Objective interface {
	Type() string
	MarshalJSON() ([]byte, error)
}

type ProofOfAddressObjective

type ProofOfAddressObjective struct {
}

ProofOfAddressObjective requests creation of a proof of address objective

func (*ProofOfAddressObjective) MarshalJSON

func (o *ProofOfAddressObjective) MarshalJSON() ([]byte, error)

MarshalJSON returns the JSON encoding

func (*ProofOfAddressObjective) Type

func (o *ProofOfAddressObjective) Type() string

Type is the objective type

type ProofOfAddressObjectiveBuilder

type ProofOfAddressObjectiveBuilder struct {
}

ProofOfAddressObjectiveBuilder builds a ProofOfAddress

Example
objective, err := NewProofOfAddressObjectiveBuilder().
	Build()
if err != nil {
	fmt.Printf("error: %s", err.Error())
	return
}

data, err := json.Marshal(objective)
if err != nil {
	fmt.Printf("error: %s", err.Error())
	return
}

fmt.Println(string(data))
Output:

{"type":"PROOF_OF_ADDRESS"}

func NewProofOfAddressObjectiveBuilder

func NewProofOfAddressObjectiveBuilder() *ProofOfAddressObjectiveBuilder

NewProofOfAddressObjectiveBuilder creates a new ProofOfAddressObjectiveBuilder

func (*ProofOfAddressObjectiveBuilder) Build

Build builds the ProofOfAddressObjective

Jump to

Keyboard shortcuts

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