Documentation ¶
Index ¶
Constants ¶
View Source
const ( FacebookOAuth = "facebook" TwitterOAuth = "twitter" GithubOAuth = "github" GoogleOAuth = "google" )
nolint
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConfigs ¶
APIConfigs は用途ごとのAPI情報を持つ
func NewAPIConfigs ¶
func NewAPIConfigs(r io.Reader) (APIConfigs, error)
NewAPIConfigs io.ReaderからAPI設定を読み取る
func NewAPIConfigsFromFile ¶
func NewAPIConfigsFromFile(path string) (APIConfigs, error)
NewAPIConfigsFromFile Configから設定を読み取る
type APIs ¶
APIs API情報をまとめる構造体
func NewAPIsConf ¶
func NewAPIsConf(conf APIConfigs) (*APIs, error)
NewAPIsConf APIの設定をまとめて構造体に入れて返す
type LittleTags ¶
LittleTags 小タグ情報
type MajorTags ¶
type MajorTags struct { MajorTags string `yaml:"majorTags"` LittleTags []LittleTags `yaml:"littleTags"` }
MajorTags 大タグ情報
type Oauth ¶
type Oauth struct { ClientID string `yaml:"client_id"` ClientSecret string `yaml:"client_secret"` RedirectURL string `yaml:"redirect_url"` Endpoint struct { AuthURL string `yaml:"auth_url"` TokenURL string `yaml:"token_url"` } `yaml:"endpoint"` }
Oauth Oauth認証情報
type Oauths ¶
Oauths はサービスごとのOauth認証情報を持つ
func NewOauthsFromFile ¶
NewOauthsFromFile Configから設定を読み取る
Click to show internal directories.
Click to hide internal directories.