Initial commit
This commit is contained in:
9
internal/config/config.go
Normal file
9
internal/config/config.go
Normal 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
11
internal/config/token.go
Normal 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"`
|
||||
}
|
Reference in New Issue
Block a user