Documentation
¶
Index ¶
- Constants
- func Base() string
- func Checkin(key, baseurl string, ctx context.Context)
- func DecodeKey(s string) (*[32]byte, error)
- func URLs(isServer bool, version string) []string
- func UrlForSensor(version string) string
- func UrlForServer(version string) string
- type CanDooer
- type KushtakaFetcher
- type ServerStatus
Constants ¶
View Source
const ZeroUUID = "00000000-0000-0000-0000-000000000000"
Variables ¶
This section is empty.
Functions ¶
func UrlForSensor ¶
func UrlForServer ¶
Types ¶
type CanDooer ¶
func NewCanDooer ¶
type KushtakaFetcher ¶
type KushtakaFetcher struct { CanDooer *models.CanDooer APIKey string Interval time.Duration IsServer bool CheckHeaders []string // contains filtered or unexported fields }
HTTP fetcher uses HEAD requests to poll the status of a given file. If it detects this file has been updated, it will fetch and return its io.Reader stream.
func (*KushtakaFetcher) Init ¶
func (h *KushtakaFetcher) Init() error
Init validates the provided config
type ServerStatus ¶
type ServerStatus struct {
// contains filtered or unexported fields
}
var Status *ServerStatus
func NewServerStatus ¶
func NewServerStatus() *ServerStatus
func (*ServerStatus) IsLicensed ¶
func (ss *ServerStatus) IsLicensed() bool
func (*ServerStatus) SetIsLicensed ¶
func (ss *ServerStatus) SetIsLicensed(b bool)