auth

package
v0.0.0-...-4a2620c Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Conn *grpc.ClientConn
	pb.AuthAPIClient
}

Client sends auth requests to AUTH service via gRPC

func NewClient

func NewClient(addr string) (*Client, error)

NewClient creates auth Client

func (*Client) Authenticate

func (c *Client) Authenticate(ctx context.Context, tokenPair *models.TokenPair) (*models.TokenPair, error)

Authenticate ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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