grpc

package
v0.0.0-...-f6f4618 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthClient

func NewAuthClient(cfg *Config, lg *zap.Logger) *authClient

Types

type AuthClient

type AuthClient interface {
	GenerateToken(ctx context.Context, id uint64) (string, error)
}

type Config

type Config struct {
	AuthGrpcClientAddress string `koanf:"auth_grpc_client_address"`
}

Jump to

Keyboard shortcuts

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