Documentation
¶
Index ¶
- Constants
- type AccountRPC
- func (t *AccountRPC) DeleteByUsername(username string, reply *models.Account) (err error)
- func (t *AccountRPC) GetAll(_, reply *[]models.Account) (err error)
- func (t *AccountRPC) GetByUsername(username string, reply *models.Account) (err error)
- func (t *AccountRPC) Register(username string, password string, role []string) (reply models.Account, err error)
- func (t *AccountRPC) Verify(args *shared.VerifyParam, reply *models.Account) (err error)
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) GetByUsername ¶
func (t *AccountRPC) GetByUsername(username string, reply *models.Account) (err error)
func (*AccountRPC) Verify ¶
func (t *AccountRPC) Verify(args *shared.VerifyParam, reply *models.Account) (err error)
Click to show internal directories.
Click to hide internal directories.