Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Name is the name of the compiled software. Name = "onex-usercenter" // ID contains the host name and any error encountered during the retrieval. ID, _ = os.Hostname() )
Functions ¶
func NewAuthenticator ¶
func NewAuthenticator(jwtOpts *genericoptions.JWTOptions, redisOpts *genericoptions.RedisOptions) (authn.Authenticator, func(), error)
NewAuthenticator creates a new JWT-based Authenticator using the provided JWT and Redis options.
Types ¶
type Config ¶
type Config struct { GRPCOptions *genericoptions.GRPCOptions HTTPOptions *genericoptions.HTTPOptions TLSOptions *genericoptions.TLSOptions JWTOptions *genericoptions.JWTOptions MySQLOptions *genericoptions.MySQLOptions RedisOptions *genericoptions.RedisOptions EtcdOptions *genericoptions.EtcdOptions KafkaOptions *genericoptions.KafkaOptions JaegerOptions *genericoptions.JaegerOptions ConsulOptions *genericoptions.ConsulOptions }
Config represents the configuration of the service.
Directories ¶
Path | Synopsis |
---|---|
Package auth is a generated GoMock package.
|
Package auth is a generated GoMock package. |
Package biz is the place where you can implements more complex business logic.
|
Package biz is the place where you can implements more complex business logic. |
auth
Package auth is a generated GoMock package.
|
Package auth is a generated GoMock package. |
secret
Package secret is a generated GoMock package.
|
Package secret is a generated GoMock package. |
user
Package user is a generated GoMock package.
|
Package user is a generated GoMock package. |
dao
|
|
errors
|
|
Package store is a generated GoMock package.
|
Package store is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.