server

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is server providers.

Functions

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.Sephirah_Server,
	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.Sephirah_Server,
	auth *libauth.Auth,
	app *libapp.Settings,
) *http.Server

func NewRefreshTokenMatcher

func NewRefreshTokenMatcher() selector.MatchFunc

func NewUploadTokenMatcher added in v0.1.4

func NewUploadTokenMatcher() selector.MatchFunc

func NewWhiteListMatcher

func NewWhiteListMatcher() 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