auth

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Center

type Center interface {
	Authenticate(request *http.Request) (*token.BearerToken, error)
}

Center is a user authentication interface.

func New

func New(conns pool.Pool, key hcs.PrivateKey) Center

New creates an instance of AuthCenter.

type Params

type Params struct {
	Pool       pool.Pool
	Logger     *zap.Logger
	Credential hcs.Credentials
}

Params stores node connection parameters.

Jump to

Keyboard shortcuts

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