auth

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitGRPC

func InitGRPC(tlsConfig *TLS) *grpc.Server

InitGRPC initializes RPCs

func NewGRPC

func NewGRPC(tlsConfig *TLS) *grpc.Server

NewGRPC creates a GRPC server

func NewServerCredentials

func NewServerCredentials(certPath, keyPath, caPath string) (credentials.TransportCredentials, error)

NewServerCredentials loads TLS transport credentials for the GRPC server.

Types

type HealthRPC

type HealthRPC struct {
	grpc_health_v1.UnimplementedHealthServer
}

Blueprint struct for db service and auth provider.

func (*HealthRPC) Check

Check applies the logic to determine which variant to be applied to the given request.

func (*HealthRPC) Register

func (rpc *HealthRPC) Register(server *grpc.Server)

Register wires up the RPC to the server

type RPCInterface

type RPCInterface interface {
	Register(*grpc.Server)
}

RPCInterface interface for RPC.

func NewHealthRPC

func NewHealthRPC() RPCInterface

NewRPC returns a new initialized RPC object.

func NewRPCv2

func NewRPCv2() RPCInterface

NewRPCv2 returns a new initialized RPC object.

func NewRPCv3

func NewRPCv3() RPCInterface

NewRPCv3 returns a new initialized RPC object.

type RPCv2

func (*RPCv2) Check

func (*RPCv2) Register

func (rpc *RPCv2) Register(server *grpc.Server)

Register wires up the RPC to the server

type RPCv3

func (*RPCv3) Check

func (*RPCv3) Register

func (rpc *RPCv3) Register(server *grpc.Server)

Register wires up the RPC to the server

type TLS

type TLS struct {
	CAPath   string
	CertPath string
	KeyPath  string
}

Jump to

Keyboard shortcuts

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