Documentation ¶
Index ¶
Constants ¶
View Source
const ( OAUTH2_TIMEOUT_DURATION = 3 * time.Minute OAUTH2_WEB_URL = "localhost:8080/pushmoi/setup" )
View Source
const (
OAUTH2_WORKFLOW_HTML = `` /* 1579-byte string literal not displayed */
)
View Source
const (
PUSH_BULLET_CONFIG = "~/.pushmoi/pushbullet.json"
)
Variables ¶
View Source
var ( // Pushbullet configuration Pushbullet = NewConfig() )
Functions ¶
func NewOAuth2Workflow ¶
Types ¶
type Device ¶
type Device struct { Iden string `json:"iden"` Active bool `json:"active"` Created float64 `json:"created"` Modified float64 `json:"modififed"` Icon string `json:"icon"` Nickname string `json:"nickname"` IsGenerated bool `json:"generated_nickname"` Manufacturer string `json:"manufacturer"` Model string `json:"model"` Version int `json:"app_version"` Fingerprint string `json:"fingerprint"` KeyFingerprint string `json:"key_fingerprint"` PushToken string `json:"push_token"` HasSms bool `json:"has_sms"` }
type PushBulletConfig ¶
func NewConfig ¶
func NewConfig() *PushBulletConfig
func (*PushBulletConfig) Dump ¶
func (push *PushBulletConfig) Dump() error
func (*PushBulletConfig) Has ¶
func (push *PushBulletConfig) Has(name string) *Device
func (*PushBulletConfig) Load ¶
func (push *PushBulletConfig) Load() error
type User ¶
type User struct { Iden string `json:"iden"` Created float64 `json:"created"` Modified float64 `json:"modififed"` Email string `json:"email"` EmailNormalized string `json:"email_normalized"` Name string `json:"name"` ImageURL string `json:"image_url"` MaxUploadSize int64 `json:"max_upload_size"` ReferredCount int64 `json:"referred_count"` ReferredIden string `json:"referrer_iden"` }
Click to show internal directories.
Click to hide internal directories.