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 DBPendingRouterEvent

type DBPendingRouterEvent DBRouterEvent

func NewDBPendingRouterEvent

func NewDBPendingRouterEvent(event *types.RouterEvent) *DBPendingRouterEvent

func (*DBPendingRouterEvent) Entity

func (e *DBPendingRouterEvent) Entity() string

func (*DBPendingRouterEvent) Key

func (e *DBPendingRouterEvent) Key() string

func (*DBPendingRouterEvent) RouterEvent

func (e *DBPendingRouterEvent) RouterEvent() *types.RouterEvent

type DBRouter

type DBRouter struct {
	// ID is the ThingsIX compressed public key for this router
	ID              string
	ContractAddress string
	Owner           string
	NetID           int
	Prefix          int
	Mask            int
	FrequencyPlan   string
	Endpoint        string
}

func NewDBRouter

func NewDBRouter(r *types.Router) *DBRouter

func (*DBRouter) Entity

func (e *DBRouter) Entity() string

func (*DBRouter) Key

func (e *DBRouter) Key() string

func (*DBRouter) Router

func (r *DBRouter) Router() *types.Router

type DBRouterEvent

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

	Type  types.RouterEventType
	ID    string
	Owner *string

	NewNetID         int                     `datastore:",omitempty"`
	OldNetID         int                     `datastore:",omitempty"`
	NewPrefix        int                     `datastore:",omitempty"`
	OldPrefix        int                     `datastore:",omitempty"`
	NewMask          int                     `datastore:",omitempty"`
	OldMask          int                     `datastore:",omitempty"`
	NewFrequencyPlan frequency_plan.BandName `datastore:",omitempty"`
	OldFrequencyPlan frequency_plan.BandName `datastore:",omitempty"`
	NewEndpoint      string                  `datastore:",omitempty"`
	OldEndpoint      string                  `datastore:",omitempty"`

	Time time.Time
}

func NewDBRouterEvent

func NewDBRouterEvent(e *types.RouterEvent) *DBRouterEvent

func (*DBRouterEvent) Entity

func (e *DBRouterEvent) Entity() string

func (*DBRouterEvent) Key

func (e *DBRouterEvent) Key() string

func (*DBRouterEvent) RouterEvent

func (e *DBRouterEvent) RouterEvent() *types.RouterEvent

type DBRouterHistory

type DBRouterHistory struct {
	// ID is the ThingsIX compressed public key for this router
	ID              string
	ContractAddress string
	Owner           *string                 `datastore:",omitempty"`
	NetID           int                     `datastore:",omitempty"`
	Prefix          int                     `datastore:",omitempty"`
	Mask            int                     `datastore:",omitempty"`
	FrequencyPlan   frequency_plan.BandName `datastore:",omitempty"`
	Endpoint        string                  `datastore:",omitempty"`
	Time            time.Time
	BlockNumber     int
	Block           string
	Transaction     string
}

func NewDBRouterHistory

func NewDBRouterHistory(e *types.RouterHistory) *DBRouterHistory

func (*DBRouterHistory) Entity

func (e *DBRouterHistory) Entity() string

func (*DBRouterHistory) Key

func (e *DBRouterHistory) Key() string

func (*DBRouterHistory) RouterHistory

func (e *DBRouterHistory) RouterHistory() *types.RouterHistory

Jump to

Keyboard shortcuts

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