Initial commit

This commit is contained in:
2019-03-29 09:31:37 +04:00
commit d635cd55ef
75 changed files with 7807 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
// Yandex Disk File Pusher
// Copyright (c) 2019 Vladimir "fat0troll" Hodakov
package config
type Config struct {
DeviceID string `json:"device_id"`
Token Token `json:"token,omitempty"`
}

11
internal/config/token.go Normal file
View File

@@ -0,0 +1,11 @@
// Yandex Disk File Pusher
// Copyright (c) 2019 Vladimir "fat0troll" Hodakov
package config
type Token struct {
TokenType string `json:"token_type"`
AccessToken string `json:"access_token"`
ExpireTime int `json:"expires_in"`
RefreshToken string `json:"refresh_token"`
}