Documentation ¶
Index ¶
- Constants
- type AssumedCoverageHexContainer
- type ChallengeRequest
- type ChallengeResponse
- type CodeCheckRequest
- type CoverageHexContainer
- type MappingAPI
- func (mapi *MappingAPI) AssumedCoverageForGatewayAt(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) AssumedCoverageMap(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) AssumedCoverageMapRes0(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) AssumedUnverifiedCoverageMap(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) AssumedUnverifiedCoverageMapRes0(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) Bind(root *chi.Mux) error
- func (mapi *MappingAPI) CheckCode(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) CoverageForGatewayAt(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) CoverageMap(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) CreateChallenge(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) GetMappingById(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) GetRecentMappingsForMapper(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) GetUnverifiedMappingById(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) MinMaxCoverageDates(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) StoreUnverifiedMapping(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) SubmitSignature(w http.ResponseWriter, r *http.Request)
- func (mapi *MappingAPI) UnverifiedCoverageMap(w http.ResponseWriter, r *http.Request)
- type MinMaxCoverageDates
- type SignatureRequest
- type SignatureResponse
- type UnverifiedCoverageHexContainer
Constants ¶
View Source
const MAP_ASSUMED_COVERAGE_MAX_RES = 8
View Source
const MAP_COVERAGE_MAX_RES = 8
View Source
const MAP_COVERAGE_MIN_RES = 6
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChallengeRequest ¶
type ChallengeResponse ¶
type CodeCheckRequest ¶
type CoverageHexContainer ¶
type CoverageHexContainer struct {
Hexes []*types.CoverageHistory `json:"hexes,omitempty"`
}
type MappingAPI ¶
type MappingAPI struct {
// contains filtered or unexported fields
}
func NewMappingAPI ¶
func NewMappingAPI() (*MappingAPI, error)
func (*MappingAPI) AssumedCoverageForGatewayAt ¶
func (mapi *MappingAPI) AssumedCoverageForGatewayAt(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) AssumedCoverageMap ¶
func (mapi *MappingAPI) AssumedCoverageMap(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) AssumedCoverageMapRes0 ¶
func (mapi *MappingAPI) AssumedCoverageMapRes0(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) AssumedUnverifiedCoverageMap ¶
func (mapi *MappingAPI) AssumedUnverifiedCoverageMap(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) AssumedUnverifiedCoverageMapRes0 ¶
func (mapi *MappingAPI) AssumedUnverifiedCoverageMapRes0(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) Bind ¶
func (mapi *MappingAPI) Bind(root *chi.Mux) error
func (*MappingAPI) CheckCode ¶
func (mapi *MappingAPI) CheckCode(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) CoverageForGatewayAt ¶
func (mapi *MappingAPI) CoverageForGatewayAt(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) CoverageMap ¶
func (mapi *MappingAPI) CoverageMap(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) CreateChallenge ¶
func (mapi *MappingAPI) CreateChallenge(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) GetMappingById ¶
func (mapi *MappingAPI) GetMappingById(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) GetRecentMappingsForMapper ¶
func (mapi *MappingAPI) GetRecentMappingsForMapper(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) GetUnverifiedMappingById ¶
func (mapi *MappingAPI) GetUnverifiedMappingById(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) MinMaxCoverageDates ¶
func (mapi *MappingAPI) MinMaxCoverageDates(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) StoreUnverifiedMapping ¶
func (mapi *MappingAPI) StoreUnverifiedMapping(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) SubmitSignature ¶
func (mapi *MappingAPI) SubmitSignature(w http.ResponseWriter, r *http.Request)
func (*MappingAPI) UnverifiedCoverageMap ¶
func (mapi *MappingAPI) UnverifiedCoverageMap(w http.ResponseWriter, r *http.Request)
type MinMaxCoverageDates ¶
type SignatureRequest ¶
type SignatureResponse ¶
type UnverifiedCoverageHexContainer ¶
type UnverifiedCoverageHexContainer struct {
Hexes []*types.UnverifiedMappingRecord `json:"hexes,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.