Documentation ¶
Index ¶
- Variables
- func NewAuthenticator(cfg *conf.Bootstrap) authn.Authenticator
- func NewAuthorizer() authz.Engine
- func NewDiscovery(cfg *conf.Bootstrap) kratosregistry.Discovery
- func NewRedisClient(cfg *conf.Bootstrap, _ log.Logger) *redis.Client
- func NewUserServiceClient(r kratosregistry.Discovery, c *conf.Bootstrap) userv1.UserServiceClient
- func NewUserTokenRepo(data *Data, authenticator authn.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) authn.Authenticator
NewAuthenticator create authenticator
func NewDiscovery ¶
func NewDiscovery(cfg *conf.Bootstrap) kratosregistry.Discovery
NewDiscovery create a service discovery client
func NewRedisClient ¶
NewRedisClient create a redis client
func NewUserServiceClient ¶
func NewUserServiceClient(r kratosregistry.Discovery, c *conf.Bootstrap) userv1.UserServiceClient
func NewUserTokenRepo ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.