grpc

package
v0.0.0-...-e78ca02 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClaimsKey struct{}

Functions

This section is empty.

Types

type AuthControllerGrpc

type AuthControllerGrpc struct {
	servicepb.UnimplementedAuthServiceServer
	// contains filtered or unexported fields
}

func NewAuthControllerGrpc

func NewAuthControllerGrpc(userStorage auth.UserStorage, jwtManager *crypta.JWTManager, logger logging.Logger) *AuthControllerGrpc

func (*AuthControllerGrpc) Login

func (*AuthControllerGrpc) Register

func (*AuthControllerGrpc) RegisterService

func (a *AuthControllerGrpc) RegisterService(srv *grpc.Server)

func (*AuthControllerGrpc) ServiceName

func (a *AuthControllerGrpc) ServiceName() string

type Interceptor

type Interceptor struct {
	// contains filtered or unexported fields
}

func NewAuthInterceptor

func NewAuthInterceptor(jwtManager *crypta.JWTManager, ignoreServiceNames ...string) *Interceptor

func (*Interceptor) AuthFunc

func (i *Interceptor) AuthFunc(ctx context.Context) (context.Context, error)

func (*Interceptor) Match

func (i *Interceptor) Match(_ context.Context, fullMethod interceptors.CallMeta) bool

type SecretControllerGrpc

type SecretControllerGrpc struct {
	servicepb.UnimplementedSecretServiceServer
	// contains filtered or unexported fields
}

func NewSecretControllerGrpc

func NewSecretControllerGrpc(cfg config.SecretsConfig, userStorage secret.Storage, logger logging.Logger) (*SecretControllerGrpc, error)

func (*SecretControllerGrpc) GetAllSecrets

func (*SecretControllerGrpc) GetSecret

func (*SecretControllerGrpc) RegisterService

func (s *SecretControllerGrpc) RegisterService(srv *grpc.Server)

func (*SecretControllerGrpc) RemoveSecret

func (*SecretControllerGrpc) ServiceName

func (s *SecretControllerGrpc) ServiceName() string

func (*SecretControllerGrpc) SetSecret

Jump to

Keyboard shortcuts

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