types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventKind

type EventKind string

EventKind represents an event type

const (
	// StorageCapacityChangeEvent represents a change of miner's storage capacity
	StorageCapacityChangeEvent EventKind = "storage_capacity_change"

	// SlashedDealEvent represents a slash of a miner's deal
	SlashedDealEvent EventKind = "slashed_deal"

	// SectorFaultEvent represents a sector fault
	SectorFaultEvent EventKind = "sector_fault"

	// SectorRecoveryEvent represents a sector recovery
	SectorRecoveryEvent EventKind = "sector_recovery"
)

type JSONB

type JSONB map[string]interface{}

JSONB represents a binary JSON column

func (*JSONB) Scan

func (j *JSONB) Scan(value interface{}) error

Scan converts JSON data into a map

func (*JSONB) Value

func (j *JSONB) Value() (driver.Value, error)

Value converts a map into JSON data

Jump to

Keyboard shortcuts

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