types

package
v0.0.0-...-97c7304 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountWalletInfo

type AccountWalletInfo interface {
	GetBalance() uint64
	GetTransactions() ([]*response.Transaction, error)
	GetTransaction(txID string) (*response.Transaction, error)
}

type DBInfo

type DBInfo interface {
	Insert(checksum string, data *SatelliteRequestData) (int, error)
	List(offset int) ([]*SatelliteUIData, error)
	SearchByID(recordID int) (*SatelliteUIData, error)
}

type SatelliteRequestData

type SatelliteRequestData struct {
	Name       string        `json:"name"`
	RecordedOn satelliteTime `json:"time"`
	Position   []string      `json:"position"`
	Velocity   []string      `json:"velocity"`
}

SatelliteRequestData defines the raw data received from the satelite.

type SatelliteUIData

type SatelliteUIData struct {
	ID         int       `json:"id"`
	Name       string    `json:"name"`
	PositionX  string    `json:"position_x"`
	PositionY  string    `json:"position_y"`
	PositionZ  string    `json:"position_z"`
	VelocityX  string    `json:"velocity_x"`
	VelocityY  string    `json:"velocity_y"`
	VelocityZ  string    `json:"velocity_z"`
	RecordedOn time.Time `json:"time"`
	CreatedOn  time.Time `json:"created_on"`
	UpdatedOn  time.Time `json:"updated_on"`
	CheckSum   string    `json:"checksum"`
}

SatelliteUIData describes the data processed for the UI display

type ServerAPI

type ServerAPI struct {
	DBInfo
	AccountWalletInfo
}

Jump to

Keyboard shortcuts

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