Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigEndpoint = "https://cdn.filen.io/cfg.json" AuthInfoEndpoint = "/v3/auth/info" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
func NewAPIClient ¶
func (*APIClient) SetEndpoints ¶
type Config ¶
type Config struct { Maintenance bool `json:"maintenance"` ReadOnly bool `json:"readOnly"` Announcements []ConfigAnnouncement `json:"announcements"` Pricing struct { LifetimeEnabled bool `json:"lifetimeEnabled"` SaleEnabled bool `json:"saleEnabled"` Plans []ConfigPlans `json:"plans"` } `json:"pricing"` }
type ConfigAnnouncement ¶
type ConfigPlanTerm ¶
type ConfigPlanTerm string
const ( ConfigPlanTermMonthly ConfigPlanTerm = "monthly" ConfigPlanTermAnnually ConfigPlanTerm = "annually" ConfigPlanTermLifetime ConfigPlanTerm = "lifetime" )
type ConfigPlanTermType ¶
type ConfigPlanTermType int
const ( ConfigPlanTermTypeStarter ConfigPlanTermType = 1 ConfigPlanTermTypeMonthly ConfigPlanTermType = 2 ConfigPlanTermTypeAnnually ConfigPlanTermType = 3 ConfigPlanTermTypeLifetime ConfigPlanTermType = 4 )
type ConfigPlans ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.