Documentation ¶
Index ¶
- Variables
- func NewAccessTokenMatcher() selector.MatchFunc
- func NewAllowAnonymousMatcher() selector.MatchFunc
- func NewAuthMiddleware(auth *libauth.Auth) func(context.Context) (context.Context, error)
- func NewDownloadTokenMatcher() selector.MatchFunc
- func NewGRPCServer(c *conf.SephirahServer, auth *libauth.Auth, ...) (*grpc.Server, error)
- func NewGrpcWebServer(s *grpc.Server, c *conf.SephirahServer, auth *libauth.Auth, ...) (*http.Server, error)
- func NewLoginMatcher() selector.MatchFunc
- func NewRefreshTokenMatcher() selector.MatchFunc
- func NewRegisterMatcher() selector.MatchFunc
- func NewTokenMatcher(auth *libauth.Auth) []middleware.Middleware
- func NewUploadTokenMatcher() selector.MatchFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGRPCServer, NewGrpcWebServer, NewAuthMiddleware)
ProviderSet is server providers.
Functions ¶
func NewAccessTokenMatcher ¶ added in v0.2.1
func NewAllowAnonymousMatcher ¶ added in v0.2.1
func NewAuthMiddleware ¶ added in v0.1.0
NewAuthMiddleware https://github.com/go-kratos/kratos/issues/2617
func NewDownloadTokenMatcher ¶ added in v0.1.4
func NewGRPCServer ¶
func NewGRPCServer( c *conf.SephirahServer, auth *libauth.Auth, greeter pb.LibrarianSephirahServiceServer, app *libapp.Settings, ) (*grpc.Server, error)
NewGRPCServer new a gRPC server.
func NewGrpcWebServer ¶ added in v0.0.3
func NewLoginMatcher ¶ added in v0.2.1
func NewRefreshTokenMatcher ¶
func NewRegisterMatcher ¶ added in v0.2.8
func NewTokenMatcher ¶ added in v0.2.1
func NewTokenMatcher(auth *libauth.Auth) []middleware.Middleware
func NewUploadTokenMatcher ¶ added in v0.1.4
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.