Documentation ¶
Index ¶
- Variables
- func NewAuthenticator(cfg *conf.Bootstrap) authnengine.Authenticator
- func NewAuthorizer() authzengine.Engine
- func NewDiscovery(cfg *conf.Bootstrap) kratosregistry.Discovery
- func NewRedisClient(cfg *conf.Bootstrap) *redis.Client
- func NewUserServiceClient(r kratosregistry.Discovery, c *conf.Bootstrap) userv1.UserServiceClient
- func NewUserTokenRepo(data *Data, authenticator authnengine.Authenticator, logger log.Logger) *cache.UserToken
- type Data
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewData, NewRedisClient, NewDiscovery, NewAuthenticator, NewAuthorizer, NewUserTokenRepo, NewUserServiceClient, )
ProviderSet is data providers.
Functions ¶
func NewAuthenticator ¶
func NewAuthenticator(cfg *conf.Bootstrap) authnengine.Authenticator
func NewAuthorizer ¶
func NewAuthorizer() authzengine.Engine
func NewDiscovery ¶
func NewDiscovery(cfg *conf.Bootstrap) kratosregistry.Discovery
func NewRedisClient ¶
func NewUserServiceClient ¶
func NewUserServiceClient(r kratosregistry.Discovery, c *conf.Bootstrap) userv1.UserServiceClient
func NewUserTokenRepo ¶
func NewUserTokenRepo(data *Data, authenticator authnengine.Authenticator, logger log.Logger) *cache.UserToken
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
Data .
func NewData ¶
func NewData(rdb *redis.Client, authenticator authnengine.Authenticator, authorizer authzengine.Engine, logger log.Logger, ) (*Data, func(), error)
NewData .
Click to show internal directories.
Click to hide internal directories.