Documentation ¶
Overview ¶
Package config Configuration information of the DouYin Open Platform
Index ¶
- type Config
- func (cfg *Config) Cache() cache.Cache
- func (cfg *Config) ClientKey() string
- func (cfg *Config) ClientSecret() string
- func (cfg *Config) Logger() logger.ILogger
- func (cfg *Config) RedirectURL() string
- func (cfg *Config) Request() request.Request
- func (cfg *Config) Salt() string
- func (cfg *Config) Scopes() string
- func (cfg *Config) SetCache(cache cache.Cache) *Config
- func (cfg *Config) SetClientKey(clientKey string) *Config
- func (cfg *Config) SetClientSecret(clientSecret string) *Config
- func (cfg *Config) SetLogger(logger logger.ILogger) *Config
- func (cfg *Config) SetRedirectURL(redirectURL string) *Config
- func (cfg *Config) SetRequest(request request.Request) *Config
- func (cfg *Config) SetSalt(salt string) *Config
- func (cfg *Config) SetScopes(scopes string) *Config
- type Option
- func WithClientKey(clientKey string) Option
- func WithClientSecret(clientSecret string) Option
- func WithLogger(logger logger.ILogger) Option
- func WithRedirectURL(redirectURL string) Option
- func WithRequest(request request.Request) Option
- func WithSalt(salt string) Option
- func WithScopes(scopes string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config 抖音开放平台的配置信息
func NewConfig ¶
func NewConfig(ctx context.Context, clientKey, clientSecret, redirectURL, scopes, salt string) *Config
NewConfig new config
func (*Config) SetClientKey ¶
SetClientKey 设置 clientKey
func (*Config) SetClientSecret ¶
SetClientSecret 设置 clientSecret
func (*Config) SetRedirectURL ¶
SetRedirectURL 设置 redirectURL
func (*Config) SetRequest ¶
SetRequest 设置请求
type Option ¶
type Option func(*options)
Option micro app option
func WithClientSecret ¶
WithClientSecret set clientSecret
func WithRedirectURL ¶
WithRedirectURL set redirectURL
Click to show internal directories.
Click to hide internal directories.