userservicev1

package
v0.0.0-...-b9cf7ac Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIParams

type APIParams struct {
	fx.In
	Context context.Context
	Config  config.UserServiceConfig
}

type GRPCClient

type GRPCClient interface {
	CreateUser(ctx context.Context, username, password string) (*models.User, error)
	LoginUser(ctx context.Context, username, password string) (*models.User, error)
	DeleteUser(ctx context.Context, username, password string) error
	GetUser(ctx context.Context, username string) (*models.User, error)
}

func NewGRPCClient

func NewGRPCClient(ctx context.Context, logger *log.Log, params APIParams) (GRPCClient, error)

NewGRPCClient is a grpcClient constructor

Jump to

Keyboard shortcuts

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