Documentation ¶
Index ¶
- func QueryAccount(c *fiber.Ctx) error
- type HttpTransport
- func (htt *HttpTransport) CreateAccount(c *fiber.Ctx) error
- func (htt *HttpTransport) GetAccount(c *fiber.Ctx) error
- func (htt *HttpTransport) Keygen(c *fiber.Ctx) error
- func (htt *HttpTransport) ListAccounts(c *fiber.Ctx) error
- func (htt *HttpTransport) Login(c *fiber.Ctx) error
- func (htt *HttpTransport) QueryDocument(c *fiber.Ctx) error
- func (htt *HttpTransport) QueryService(c *fiber.Ctx) error
- func (htt *HttpTransport) ReadMail(c *fiber.Ctx) error
- func (htt *HttpTransport) SendMail(c *fiber.Ctx) error
- func (htt *HttpTransport) SignMessage(c *fiber.Ctx) error
- func (htt *HttpTransport) VerifyMessage(c *fiber.Ctx) error
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryAccount ¶
func QueryAccount(c *fiber.Ctx) error
Types ¶
type HttpTransport ¶
func NewHttpTransport ¶
func NewHttpTransport(ctx client.Context) *HttpTransport
func (*HttpTransport) CreateAccount ¶
func (htt *HttpTransport) CreateAccount(c *fiber.Ctx) error
! ||--------------------------------------------------------------------------------|| ! || Accounts API Rest Implementation || ! ||--------------------------------------------------------------------------------||
func (*HttpTransport) GetAccount ¶
func (htt *HttpTransport) GetAccount(c *fiber.Ctx) error
func (*HttpTransport) Keygen ¶
func (htt *HttpTransport) Keygen(c *fiber.Ctx) error
func (*HttpTransport) ListAccounts ¶
func (htt *HttpTransport) ListAccounts(c *fiber.Ctx) error
func (*HttpTransport) Login ¶
func (htt *HttpTransport) Login(c *fiber.Ctx) error
func (*HttpTransport) QueryDocument ¶
func (htt *HttpTransport) QueryDocument(c *fiber.Ctx) error
func (*HttpTransport) QueryService ¶
func (htt *HttpTransport) QueryService(c *fiber.Ctx) error
func (*HttpTransport) ReadMail ¶
func (htt *HttpTransport) ReadMail(c *fiber.Ctx) error
func (*HttpTransport) SendMail ¶
func (htt *HttpTransport) SendMail(c *fiber.Ctx) error
func (*HttpTransport) SignMessage ¶
func (htt *HttpTransport) SignMessage(c *fiber.Ctx) error
func (*HttpTransport) VerifyMessage ¶
func (htt *HttpTransport) VerifyMessage(c *fiber.Ctx) error
type User ¶
type User struct { // DID of the user Did string `json:"_id"` // DID document of the primary identity Username string `json:"username"` // Map of the dids of the keyshares to the dids of the accounts Accounts []string `json:"accounts"` // DidDocument of the primary identity PrimaryIdentity *types.DidDocument `json:"primaryIdentity"` }
func NewUser ¶
func NewUser(c controller.Controller) *User
Click to show internal directories.
Click to hide internal directories.