checks

package
v0.0.0-...-c53eb01 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0, MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegisteredChecks []Check

Functions

func Register

func Register(c Check)

Types

type Check

type Check interface {
	DoCheck(ctx context.Context, checkctx context.Context, args ...string) (NormalizedResponse, error)
}

type FormSubmission

type FormSubmission struct {
	Name    string `json:"your_name"`
	SPName  string `json:"storage_provider_operator_name"`
	Slack   string `json:"your_handle_on_filecoin_io_slack"`
	Email   string `json:"your_email"`
	MinerID string `json:"minerid"`
	City    string `json:"city"`
	Country string `json:"country"`
}

"responseId": "ACYDBNg8yyGgwk051fZNDE5qZHAzZ_5YEfXpKl3XXZunSjsFZN8h2tSQghrDj2w-PK-QbB0", "timestamp": "2022-07-25T08:40:17.905455Z", "0_your_name": "test_name", "0_storage_provider_operator_name": "test_sp_name", "0_your_handle_on_filecoin_io_slack": "test_slack", "0_your_email": "test@example.com", "1_minerid": "f0478563", "1_city": "hangzhou", "1_country": "CN"

type NormalizedLocation

type NormalizedLocation struct {
	LocCity      string `json:"loc_city"`
	LocCountry   string `json:"loc_country"`
	LocContinent string `json:"loc_continent"`
}

type NormalizedMiner

type NormalizedMiner struct {
	SPID          int    `json:"sp_id"`
	LocCity       string `json:"loc_city"`
	LocCountry    string `json:"loc_country"`
	LocContinent  string `json:"loc_continent"`
	Validated     bool   `json:"validated"`
	SPContactInfo string `json:"contact_info"`
}

type NormalizedOrg

type NormalizedOrg struct {
	SPOrgID        string `json:"sp_org_id"`
	SPOrganization string `json:"sp_organization"`
	OrgContactInfo string `json:"org_contact_info"`
}

type NormalizedResponse

type NormalizedResponse struct {
	FormSubmission  FormSubmission
	NormalizedMiner NormalizedMiner
	NormalizedOrg   NormalizedOrg
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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