userpass

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLogin           = errors.New("login request failed")
	ErrNilOperation    = errors.New("nil operation")
	ErrUnauthorized    = errors.New("unauthorized")
	ErrLoginUnmarshall = errors.New("login response unmarshall failed")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Transport grpc.ClientConnInterface
	Username  string
	Password  string
}

type UserPass

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

func New

func New(cfg Config) *UserPass

func (*UserPass) GetToken

func (up *UserPass) GetToken(ctx context.Context) (token string, expires time.Time, err error)

Jump to

Keyboard shortcuts

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