api

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: 18 Imported by: 0

Documentation

Index

Constants

View Source
const MAP_DETAIL_RES = 7
View Source
const MAP_MAX_RES = 7
View Source
const MAP_OFFSET_RES = 3

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayAPI

type GatewayAPI struct {
	// contains filtered or unexported fields
}

func NewGatewayAPI

func NewGatewayAPI() (*GatewayAPI, error)

func (*GatewayAPI) Bind

func (gapi *GatewayAPI) Bind(root *chi.Mux) error

func (*GatewayAPI) CreateGatewayOnboard

func (gapi *GatewayAPI) CreateGatewayOnboard(w http.ResponseWriter, r *http.Request)

func (*GatewayAPI) FrequencyPlansAtLocation

func (gapi *GatewayAPI) FrequencyPlansAtLocation(w http.ResponseWriter, r *http.Request)

func (*GatewayAPI) GatewayDetailsByID

func (gapi *GatewayAPI) GatewayDetailsByID(w http.ResponseWriter, r *http.Request)

func (*GatewayAPI) GatewayEventsByID

func (gapi *GatewayAPI) GatewayEventsByID(w http.ResponseWriter, r *http.Request)

func (*GatewayAPI) GatewayListByID

func (gapi *GatewayAPI) GatewayListByID(w http.ResponseWriter, r *http.Request)

func (*GatewayAPI) GatewayMap

func (gapi *GatewayAPI) GatewayMap(w http.ResponseWriter, r *http.Request)

func (*GatewayAPI) GatewayMapRes0

func (gapi *GatewayAPI) GatewayMapRes0(w http.ResponseWriter, r *http.Request)

func (*GatewayAPI) GatewayOnboardByGatewayID

func (gapi *GatewayAPI) GatewayOnboardByGatewayID(w http.ResponseWriter, r *http.Request)

func (*GatewayAPI) GatewayOnboardsByOwner

func (gapi *GatewayAPI) GatewayOnboardsByOwner(w http.ResponseWriter, r *http.Request)

func (*GatewayAPI) OwnedGateways

func (gapi *GatewayAPI) OwnedGateways(w http.ResponseWriter, r *http.Request)

func (*GatewayAPI) PendingGatewayEvents

func (gapi *GatewayAPI) PendingGatewayEvents(w http.ResponseWriter, r *http.Request)

func (*GatewayAPI) Run

func (gapi *GatewayAPI) Run(ctx context.Context)

func (*GatewayAPI) SupportedFrequencyPlans

func (gapi *GatewayAPI) SupportedFrequencyPlans(w http.ResponseWriter, r *http.Request)

type GatewayHex

type GatewayHex struct {
	Hexes map[string]GatewayHexInfo `json:"hexes,omitempty"`
}

type GatewayHexInfo

type GatewayHexInfo struct {
	Count    int             `json:"count"`
	Gateways []types.Gateway `json:"gateways,omitempty"`
}

type PendingGatewayEventsResponse

type PendingGatewayEventsResponse struct {
	Confirmations uint64                `json:"confirmations"`
	SyncedTo      uint64                `json:"syncedTo"`
	Events        []*types.GatewayEvent `json:"events"`
}

type Res0GatewayHex

type Res0GatewayHex struct {
	Hexes map[string]GatewayHex `json:"hexes,omitempty"`
}

type ValidFrequencyPlansForLocation

type ValidFrequencyPlansForLocation struct {
	Plans           []string `json:"plans"`
	BlockchainPlans []uint   `json:"blockchainPlans"`
}

Jump to

Keyboard shortcuts

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