exchange

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: GPL-3.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 StateType

type StateType uint8

StateType is type for exchange state

const (
	Closed   StateType = iota
	Proposed StateType = iota
	Accepted StateType = iota
)

All exchange states

func StateTypeString

func StateTypeString(s string) (StateType, error)

StateTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func StateTypeValues

func StateTypeValues() []StateType

StateTypeValues returns all values of the enum

func (StateType) IsAStateType

func (i StateType) IsAStateType() bool

IsAStateType returns "true" if the value is listed in the enum definition. "false" otherwise

func (StateType) String

func (i StateType) String() string

Jump to

Keyboard shortcuts

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