Documentation ¶
Index ¶
- Variables
- type QueryOptions
- func (q *QueryOptions) Address() string
- func (q *QueryOptions) Alias() string
- func (q *QueryOptions) Assertion() string
- func (q *QueryOptions) Attestion() string
- func (q *QueryOptions) Challenge() string
- func (q *QueryOptions) DID() string
- func (q *QueryOptions) GetDID() (*idtypes.Identity, error)
- func (q *QueryOptions) GetService() (*srvtypes.ServiceRecord, error)
- func (q *QueryOptions) HasAddress() bool
- func (q *QueryOptions) HasAlias() bool
- func (q *QueryOptions) HasAssertion() bool
- func (q *QueryOptions) HasAttestion() bool
- func (q *QueryOptions) HasChallenge() bool
- func (q *QueryOptions) HasDID() bool
- func (q *QueryOptions) HasOrigin() bool
- func (q *QueryOptions) HasQuery() bool
- func (q *QueryOptions) HasUCWID() bool
- func (q *QueryOptions) IsMobile() bool
- func (q *QueryOptions) Origin() string
- func (q *QueryOptions) UCWID() uint64
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidToken is returned when the token is invalid ErrInvalidToken = fmt.Errorf("invalid token") )
Functions ¶
This section is empty.
Types ¶
type QueryOptions ¶
type QueryOptions struct {
// contains filtered or unexported fields
}
func ParseQuery ¶
func ParseQuery(c *fiber.Ctx) *QueryOptions
func (*QueryOptions) Address ¶
func (q *QueryOptions) Address() string
func (*QueryOptions) Alias ¶
func (q *QueryOptions) Alias() string
func (*QueryOptions) Assertion ¶
func (q *QueryOptions) Assertion() string
func (*QueryOptions) Attestion ¶
func (q *QueryOptions) Attestion() string
func (*QueryOptions) Challenge ¶
func (q *QueryOptions) Challenge() string
func (*QueryOptions) DID ¶
func (q *QueryOptions) DID() string
func (*QueryOptions) GetService ¶
func (q *QueryOptions) GetService() (*srvtypes.ServiceRecord, error)
func (*QueryOptions) HasAddress ¶
func (q *QueryOptions) HasAddress() bool
func (*QueryOptions) HasAlias ¶
func (q *QueryOptions) HasAlias() bool
func (*QueryOptions) HasAssertion ¶
func (q *QueryOptions) HasAssertion() bool
func (*QueryOptions) HasAttestion ¶
func (q *QueryOptions) HasAttestion() bool
func (*QueryOptions) HasChallenge ¶
func (q *QueryOptions) HasChallenge() bool
func (*QueryOptions) HasDID ¶
func (q *QueryOptions) HasDID() bool
func (*QueryOptions) HasOrigin ¶
func (q *QueryOptions) HasOrigin() bool
func (*QueryOptions) HasQuery ¶
func (q *QueryOptions) HasQuery() bool
func (*QueryOptions) HasUCWID ¶
func (q *QueryOptions) HasUCWID() bool
func (*QueryOptions) IsMobile ¶
func (q *QueryOptions) IsMobile() bool
func (*QueryOptions) Origin ¶
func (q *QueryOptions) Origin() string
func (*QueryOptions) UCWID ¶
func (q *QueryOptions) UCWID() uint64
type User ¶
type User struct { // DID of the user Did string `json:"_id"` // DID document of the primary identity Username string `json:"username"` Accounts []*v1.AccountInfo `json:"accounts"` // Controller identity.Controller }
func (*User) ListAccounts ¶
func (u *User) ListAccounts() ([]*v1.AccountInfo, error)
Click to show internal directories.
Click to hide internal directories.