Versions in this module Expand all Collapse all v0 v0.0.1 Oct 18, 2022 Changes in this version + const CollectionFileName + const DefaultGistDescription + type FileRequest struct + Content string + type FileResponse struct + Filename string + Language string + RawURL string + Size int + Type string + type GistAPI struct + Config *GistConfig + DisabledStatus string + GistContent []byte + UpdatedAt time.Time + func NewGistAPI(config *GistConfig) (api *GistAPI, err error) + func (api *GistAPI) Delete() (err error) + func (api *GistAPI) Save(gistContent []byte) (err error) + type GistConfig struct + Authorization string + AutoSync bool + AutoSyncInterval time.Duration + GistDescription string + GistId string + LastSync time.Time + RawURL string + func GetDefaultGistConfig() GistConfig + func (c *GistConfig) SetToken(token string) error + func (c GistConfig) String() string + type GistRequest struct + Description string + Files map[string]FileRequest + Public bool + type GistResponse struct + CreatedAt time.Time + Description string + Files map[string]FileResponse + Id string + Public bool + URL string + UpdatedAt time.Time + type GitHubGistAPI struct + Authorization string + ConfigFileContent []byte + ConfigFileRawURL string + GistDescription string + GistId string + LastError error + UpdatedAt time.Time + func NewGitHubGistAPI(authorization string) *GitHubGistAPI + func (api *GitHubGistAPI) DeleteGist() error + func (api *GitHubGistAPI) Enabled() bool + func (api *GitHubGistAPI) GetConfigFileContent() error + func (api *GitHubGistAPI) GetToDoConfigFileGist() error + func (api *GitHubGistAPI) SetConfigFileGist(configFileName string) error + func (api *GitHubGistAPI) ValidateAuth(authorization string) error