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) DID() string
- func (q *QueryOptions) GetDID() (*idtypes.DidDocument, 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) HasDID() bool
- func (q *QueryOptions) HasOrigin() bool
- func (q *QueryOptions) HasQuery() bool
- func (q *QueryOptions) IsMobile() bool
- func (q *QueryOptions) Origin() string
- type User
- type WebAuthentication
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) DID ¶
func (q *QueryOptions) DID() string
func (*QueryOptions) GetDID ¶
func (q *QueryOptions) GetDID() (*idtypes.DidDocument, error)
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) HasDID ¶
func (q *QueryOptions) HasDID() bool
func (*QueryOptions) HasOrigin ¶
func (q *QueryOptions) HasOrigin() bool
func (*QueryOptions) HasQuery ¶
func (q *QueryOptions) HasQuery() bool
func (*QueryOptions) IsMobile ¶ added in v0.6.17
func (q *QueryOptions) IsMobile() bool
func (*QueryOptions) Origin ¶
func (q *QueryOptions) Origin() string
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)
func (*User) PrimaryIdentity ¶
func (u *User) PrimaryIdentity() (*types.DidDocument, error)
type WebAuthentication ¶ added in v0.6.19
type WebAuthentication interface { }
Click to show internal directories.
Click to hide internal directories.