usersclient

package
v0.1.2-0...-cc8761f Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: GPL-3.0 Imports: 5 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client pb.UserServiceClient
}

Client ...

func New

func New(address string) (*Client, error)

New ...

func (*Client) Create

func (c *Client) Create(user *users.User) (*users.User, error)

Create ...

func (*Client) Delete

func (c *Client) Delete(ID string) error

Delete ...

func (*Client) Get

func (c *Client) Get(userID string) (*users.User, error)

Get ...

func (*Client) GetByEmail

func (c *Client) GetByEmail(email string) (*users.User, error)

GetByEmail ...

func (*Client) List

func (c *Client) List() ([]*users.User, error)

List ...

func (*Client) Update

func (c *Client) Update(ID string, u *users.User) (*users.User, error)

Update ...

func (*Client) VerifyPassword

func (c *Client) VerifyPassword(email, password string) error

VerifyPassword ...

Jump to

Keyboard shortcuts

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