models

package
v0.0.0-...-1196ed7 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBMapper

type DBMapper struct {
	// ID is the ThingsIX compressed public key for this mapper
	ID              string
	ContractAddress string
	Revision        int
	FrequencyPlan   frequency_plan.BandName
	Owner           *string `datastore:",omitempty"`
	Active          bool
}

func NewDBMapper

func NewDBMapper(m *types.Mapper) *DBMapper

func (*DBMapper) Entity

func (e *DBMapper) Entity() string

func (*DBMapper) Key

func (e *DBMapper) Key() string

func (*DBMapper) Mapper

func (m *DBMapper) Mapper() *types.Mapper

type DBMapperEvent

type DBMapperEvent struct {
	ContractAddress  string
	BlockNumber      int
	TransactionIndex int
	LogIndex         int
	Block            string
	Transaction      string

	Type          types.MapperEventType
	ID            string
	Revision      int
	FrequencyPlan frequency_plan.BandName

	NewOwner *string `datastore:",omitempty"`
	OldOwner *string `datastore:",omitempty"`
	Time     time.Time
}

func NewDBMapperEvent

func NewDBMapperEvent(event *types.MapperEvent) *DBMapperEvent

func (*DBMapperEvent) Entity

func (e *DBMapperEvent) Entity() string

func (*DBMapperEvent) Key

func (e *DBMapperEvent) Key() string

func (*DBMapperEvent) MapperEvent

func (e *DBMapperEvent) MapperEvent() *types.MapperEvent

type DBMapperHistory

type DBMapperHistory struct {
	// ID is the ThingsIX compressed public key for this mapper
	ID              string
	ContractAddress string
	Revision        int
	Owner           *string                 `datastore:",omitempty"`
	FrequencyPlan   frequency_plan.BandName `datastore:",omitempty"`
	Active          bool
	Time            time.Time
	BlockNumber     int
	Block           string
	Transaction     string
}

func NewDBMapperHistory

func NewDBMapperHistory(e *types.MapperHistory) *DBMapperHistory

func (*DBMapperHistory) Entity

func (e *DBMapperHistory) Entity() string

func (*DBMapperHistory) Key

func (e *DBMapperHistory) Key() string

func (*DBMapperHistory) MapperHistory

func (e *DBMapperHistory) MapperHistory() *types.MapperHistory

type DBPendingMapperEvent

type DBPendingMapperEvent DBMapperEvent

func NewDBPendingMapperEvent

func NewDBPendingMapperEvent(event *types.MapperEvent) *DBPendingMapperEvent

func (*DBPendingMapperEvent) Entity

func (e *DBPendingMapperEvent) Entity() string

func (*DBPendingMapperEvent) Key

func (e *DBPendingMapperEvent) Key() string

func (*DBPendingMapperEvent) MapperEvent

func (e *DBPendingMapperEvent) MapperEvent() *types.MapperEvent

Jump to

Keyboard shortcuts

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