server

package
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is server providers.

Functions

func NewAccessTokenMatcher added in v0.2.1

func NewAccessTokenMatcher() selector.MatchFunc

func NewAllowAnonymousMatcher added in v0.2.1

func NewAllowAnonymousMatcher() selector.MatchFunc

func NewAuthMiddleware added in v0.1.0

func NewAuthMiddleware(auth *libauth.Auth) func(context.Context) (context.Context, error)

NewAuthMiddleware https://github.com/go-kratos/kratos/issues/2617

func NewDownloadTokenMatcher added in v0.1.4

func NewDownloadTokenMatcher() selector.MatchFunc

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 NewGrpcWebServer(
	s *grpc.Server,
	c *conf.SephirahServer,
	auth *libauth.Auth,
	app *libapp.Settings,
) (*http.Server, error)

func NewLoginMatcher added in v0.2.1

func NewLoginMatcher() selector.MatchFunc

func NewRefreshTokenMatcher

func NewRefreshTokenMatcher() selector.MatchFunc

func NewRegisterMatcher added in v0.2.8

func NewRegisterMatcher() selector.MatchFunc

func NewTokenMatcher added in v0.2.1

func NewTokenMatcher(auth *libauth.Auth) []middleware.Middleware

func NewUploadTokenMatcher added in v0.1.4

func NewUploadTokenMatcher() selector.MatchFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL