Documentation ¶
Index ¶
Constants ¶
View Source
const ( RangeWeek sr = 0 RangeMonth sr = 1 RangeHalfYear sr = 2 RangeYear sr = 3 )
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type CombinedStats ¶
type CombinedStats struct { Stats DeltaStats }
type DeltaStats ¶
type DeltaStats struct { RegisteredUsers float64 `json:"registered_users_delta" db:"registered_users_delta"` ProofsGenerated float64 `json:"proofs_generated_delta" db:"proofs_generated_delta"` ProversDeployed float64 `json:"programs_delta" db:"programs_delta"` ProofsVerified float64 `json:"proofs_verified_delta" db:"proofs_verified_delta"` }
type State ¶
type State uint8
func ParseState ¶
func (*State) MarshalJSON ¶
func (*State) UnmarshalJSON ¶
type Stats ¶
type Stats struct { CreatedAt time.Time `json:"created_at" db:"created_at"` RegisteredUsers uint64 `json:"registered_users" db:"registered_users"` ProofsGenerated uint64 `json:"proofs_generated" db:"proofs_generated"` ProversDeployed uint64 `json:"programs" db:"programs"` ProofsVerified uint64 `json:"proofs_verified" db:"proofs_verified"` }
type StatsRange ¶
type StatsRange interface { String() string Since() time.Time // contains filtered or unexported methods }
func ParseStatsRange ¶
func ParseStatsRange(r string) (StatsRange, error)
func SupportedStatsRanges ¶
func SupportedStatsRanges() []StatsRange
Click to show internal directories.
Click to hide internal directories.