Documentation ¶
Index ¶
- Variables
- func NewAuthMiddleware(auth *libauth.Auth) func(context.Context) (context.Context, error)
- func NewDownloadTokenMatcher() selector.MatchFunc
- func NewGRPCServer(c *conf.Sephirah_Server, auth *libauth.Auth, ...) *grpc.Server
- func NewGrpcWebServer(s *grpc.Server, c *conf.Sephirah_Server, auth *libauth.Auth, ...) *http.Server
- func NewRefreshTokenMatcher() selector.MatchFunc
- func NewUploadTokenMatcher() selector.MatchFunc
- func NewWhiteListMatcher() selector.MatchFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGRPCServer, NewGrpcWebServer, NewAuthMiddleware)
ProviderSet is server providers.
Functions ¶
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.Sephirah_Server, auth *libauth.Auth, greeter pb.LibrarianSephirahServiceServer, app *libapp.Settings, ) *grpc.Server
NewGRPCServer new a gRPC server.
func NewGrpcWebServer ¶ added in v0.0.3
func NewRefreshTokenMatcher ¶
func NewUploadTokenMatcher ¶ added in v0.1.4
func NewWhiteListMatcher ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.