Documentation ¶
Index ¶
- func InitConfig(version string, account string, password string, host string, port string) error
- func InitGoCQHTTP(version string, account int64, password string, host string, port string, ...) error
- type Account
- type Cache
- type Database
- type DefaultMiddlewares
- type GithubReleaseAssets
- type GithubReleaseList
- type GocqhttpConfig
- type Heartbeat
- type Leveldb
- type Message
- type Middlewares
- type MiddlewaresRateLimit
- type Output
- type RateLimit
- type Relogin
- type Servers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
Types ¶
type DefaultMiddlewares ¶
type GithubReleaseAssets ¶
type GithubReleaseAssets struct { URL string `json:"url"` ID int `json:"id"` NodeID string `json:"node_id"` Name string `json:"name"` Label string `json:"label"` Uploader struct { Login string `json:"login"` ID int `json:"id"` NodeID string `json:"node_id"` AvatarURL string `json:"avatar_url"` GravatarID string `json:"gravatar_id"` URL string `json:"url"` HTMLURL string `json:"html_url"` FollowersURL string `json:"followers_url"` FollowingURL string `json:"following_url"` GistsURL string `json:"gists_url"` StarredURL string `json:"starred_url"` SubscriptionsURL string `json:"subscriptions_url"` OrganizationsURL string `json:"organizations_url"` ReposURL string `json:"repos_url"` EventsURL string `json:"events_url"` ReceivedEventsURL string `json:"received_events_url"` Type string `json:"type"` SiteAdmin bool `json:"site_admin"` } `json:"uploader"` ContentType string `json:"content_type"` State string `json:"state"` Size int `json:"size"` DownloadCount int `json:"download_count"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` BrowserDownloadURL string `json:"browser_download_url"` }
type GithubReleaseList ¶
type GithubReleaseList []struct { URL string `json:"url"` AssetsURL string `json:"assets_url"` UploadURL string `json:"upload_url"` HTMLURL string `json:"html_url"` ID int `json:"id"` Author struct { Login string `json:"login"` ID int `json:"id"` NodeID string `json:"node_id"` AvatarURL string `json:"avatar_url"` GravatarID string `json:"gravatar_id"` URL string `json:"url"` HTMLURL string `json:"html_url"` FollowersURL string `json:"followers_url"` FollowingURL string `json:"following_url"` GistsURL string `json:"gists_url"` StarredURL string `json:"starred_url"` SubscriptionsURL string `json:"subscriptions_url"` OrganizationsURL string `json:"organizations_url"` ReposURL string `json:"repos_url"` EventsURL string `json:"events_url"` ReceivedEventsURL string `json:"received_events_url"` Type string `json:"type"` SiteAdmin bool `json:"site_admin"` } `json:"author"` NodeID string `json:"node_id"` TagName string `json:"tag_name"` TargetCommitish string `json:"target_commitish"` Name string `json:"name"` Draft bool `json:"draft"` Prerelease bool `json:"prerelease"` CreatedAt time.Time `json:"created_at"` PublishedAt time.Time `json:"published_at"` Assets []GithubReleaseAssets `json:"assets"` TarballURL string `json:"tarball_url"` ZipballURL string `json:"zipball_url"` Body string `json:"body"` DiscussionURL string `json:"discussion_url,omitempty"` Reactions struct { URL string `json:"url"` TotalCount int `json:"total_count"` Num1 int `json:"+1"` Num10 int `json:"-1"` Laugh int `json:"laugh"` Hooray int `json:"hooray"` Confused int `json:"confused"` Heart int `json:"heart"` Rocket int `json:"rocket"` Eyes int `json:"eyes"` } `json:"reactions,omitempty"` MentionsCount int `json:"mentions_count,omitempty"` }
type GocqhttpConfig ¶
type GocqhttpConfig struct { Account Account `yaml:"account"` Heartbeat Heartbeat `yaml:"heartbeat"` Message Message `yaml:"message"` Output Output `yaml:"output"` DefaultMiddlewares DefaultMiddlewares `yaml:"default-middlewares"` Database Database `yaml:"database"` Servers []Servers `yaml:"servers"` }
type Message ¶
type Message struct { ForceFragment bool `yaml:"force-fragment"` FixUrl bool `yaml:"fix-url"` ExtraReplyData bool `yaml:"extra-reply-data"` SkipMimeScan bool `yaml:"skip-mime-scan"` PostFormat string `yaml:"post-format"` IgnoreInvalidCqcode bool `yaml:"ignore-invalid-cqcode"` ProxyRewrite string `yaml:"proxy-rewrite"` ReportSelfMessage bool `yaml:"report-self_message"` RemoveReplyAt bool `yaml:"remove-reply-at"` }
type Middlewares ¶
type Middlewares struct { AccessToken string `yaml:"access-token"` Filter string `yaml:"filter"` RateLimit MiddlewaresRateLimit `yaml:"rate-limit"` }
type MiddlewaresRateLimit ¶
type Servers ¶
type Servers struct { Middlewares Middlewares `yaml:"middlewares"` Ws interface{} `yaml:"ws"` Host string `yaml:"host"` Port int `yaml:"port"` }
Click to show internal directories.
Click to hide internal directories.