Documentation ¶
Index ¶
Constants ¶
View Source
const (
Version = "v1.1.0"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { SeaOrigin string `split_words:"true" default:"https://c.linkage.community"` ClientID string `split_words:"true" required:"true"` ClientSecret string `split_words:"true" required:"true"` CredentialFile string `split_words:"true" default:"credential.json"` CurrentCredential Credential `ignored:"true"` }
func LoadConfig ¶
func (*Config) LoadCurrentCredential ¶
func (*Config) SaveCredential ¶
func (c *Config) SaveCredential(crd *Credential) error
type Credential ¶
type Credential struct {
AccessToken string `json:"access_token"`
}
Click to show internal directories.
Click to hide internal directories.