mirror of
				https://github.com/linka-cloud/grpc.git
				synced 2025-11-04 03:21:50 +00:00 
			
		
		
		
	rename module grpc-toolkit
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
		@@ -7,9 +7,9 @@ import (
 | 
			
		||||
 | 
			
		||||
	grpc_auth "github.com/grpc-ecosystem/go-grpc-middleware/auth"
 | 
			
		||||
 | 
			
		||||
	"go.linka.cloud/grpc/errors"
 | 
			
		||||
	"go.linka.cloud/grpc/interceptors"
 | 
			
		||||
	"go.linka.cloud/grpc/interceptors/metadata"
 | 
			
		||||
	"go.linka.cloud/grpc-toolkit/errors"
 | 
			
		||||
	"go.linka.cloud/grpc-toolkit/interceptors"
 | 
			
		||||
	"go.linka.cloud/grpc-toolkit/interceptors/metadata"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func BasicAuth(user, password string) string {
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,7 @@ import (
 | 
			
		||||
	"google.golang.org/grpc/status"
 | 
			
		||||
	"google.golang.org/protobuf/types/known/anypb"
 | 
			
		||||
 | 
			
		||||
	"go.linka.cloud/grpc/interceptors"
 | 
			
		||||
	"go.linka.cloud/grpc-toolkit/interceptors"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func ChainedAuthFuncs(fn ...grpc_auth.AuthFunc) grpc_auth.AuthFunc {
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,7 @@ import (
 | 
			
		||||
	"google.golang.org/grpc/metadata"
 | 
			
		||||
	"google.golang.org/grpc/status"
 | 
			
		||||
 | 
			
		||||
	"go.linka.cloud/grpc/errors"
 | 
			
		||||
	"go.linka.cloud/grpc-toolkit/errors"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func TestNotProtectedOnly(t *testing.T) {
 | 
			
		||||
 
 | 
			
		||||
@@ -5,8 +5,8 @@ import (
 | 
			
		||||
 | 
			
		||||
	grpc_auth "github.com/grpc-ecosystem/go-grpc-middleware/auth"
 | 
			
		||||
 | 
			
		||||
	"go.linka.cloud/grpc/interceptors"
 | 
			
		||||
	"go.linka.cloud/grpc/interceptors/metadata"
 | 
			
		||||
	"go.linka.cloud/grpc-toolkit/interceptors"
 | 
			
		||||
	"go.linka.cloud/grpc-toolkit/interceptors/metadata"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type TokenValidator func(ctx context.Context, token string) (context.Context, error)
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@ import (
 | 
			
		||||
	"google.golang.org/grpc/credentials"
 | 
			
		||||
	"google.golang.org/grpc/peer"
 | 
			
		||||
 | 
			
		||||
	"go.linka.cloud/grpc/errors"
 | 
			
		||||
	"go.linka.cloud/grpc-toolkit/errors"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type X509Validator func(ctx context.Context, sans []string) (context.Context, error)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user