Documentation
¶
Index ¶
- func Exists(file string) bool
- func GetEnv() string
- func ReadFile(fileName string, obj interface{}) ([]byte, error)
- func ReadFileLines(fileName string) ([]string, error)
- func WriteFile(fileName string, obj interface{}) error
- type AppConfig
- type Dropbox
- type DropboxConfig
- type DropboxOption
- type File
- type Folder
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFileLines ¶
Types ¶
type Dropbox ¶
type Dropbox struct {
// contains filtered or unexported fields
}
func (*Dropbox) Reconfigure ¶
func (dropbox *Dropbox) Reconfigure(options ...DropboxOption)
Reconfigure ...
type DropboxConfig ¶
type DropboxConfig struct {
Log struct {
Level string `json:"level"`
} `json:"log"`
Authorization struct {
Access string `json:"access"`
Token string `json:"token"`
} `json:"authorization"`
Hosts struct {
Api string `json:"api"`
Content string `json:"content"`
} `json:"hosts"`
}
DropboxConfig ...
type DropboxOption ¶
type DropboxOption func(dropbox *Dropbox)
DropboxOption ...
func WithConfiguration ¶
func WithConfiguration(config *DropboxConfig) DropboxOption
WithConfiguration ...
type Folder ¶
type Folder struct {
// contains filtered or unexported fields
}
func (*Folder) DeleteFolder ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.