authenticator

package
v0.0.0-...-718b68f Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

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

Authenticator defines authenticator gRPC service.

func NewAuthenticator

func NewAuthenticator(log *zap.Logger, config *Config, authDelivery *authDelivery.AuthenticateDelivery) *Authenticator

NewAuthenticator returns new authenticator gRPC service.

func (*Authenticator) Listen

func (authenticator *Authenticator) Listen()

Listen gRPC service.

type Config

type Config struct {
	ListenAddress          string `toml:"listen_address"`
	DatabaseAddress        string `toml:"database_address"`
	DatabaseName           string `toml:"database_name"`
	GRPCTLSCertificateFile string `toml:"grpc_tls_certificate_file"`
	GRPCTLSKeyFile         string `toml:"grpc_tls_key_file"`
}

Config of Authenticator service.

Jump to

Keyboard shortcuts

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