client

package
v0.0.0-...-d23ef4a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AccountRPCName = "AccountRPC"

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountRPC

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

func NewAccountRPC

func NewAccountRPC(address string) (*AccountRPC, error)

func (*AccountRPC) DeleteByUsername

func (t *AccountRPC) DeleteByUsername(username string, reply *models.Account) (err error)

func (*AccountRPC) GetAll

func (t *AccountRPC) GetAll(_, reply *[]models.Account) (err error)

func (*AccountRPC) GetByUsername

func (t *AccountRPC) GetByUsername(username string, reply *models.Account) (err error)

func (*AccountRPC) Register

func (t *AccountRPC) Register(username string, password string, role []string) (reply models.Account, err error)

func (*AccountRPC) Verify

func (t *AccountRPC) Verify(args *shared.VerifyParam, reply *models.Account) (err error)

Jump to

Keyboard shortcuts

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