Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleMethod ¶
func HandleMethod(w http.ResponseWriter, r *http.Request)
Types ¶
type Response ¶
Response is returned by API handlers
func NewClientError ¶
NewClientError is returned from handlers when client has provided invalid input
func NewRemoteError ¶
NewRemoteError is returned from handlers when there's been a remote service error
func NewResponse ¶
func NewResponse(d interface{}) Response
NewResponse is returned from handlers when client has provided invalid input
type User ¶
type User struct { gorm.Model // CreatedAt time.Time `json:"created_at"` AuthToken string `json:"auth_token" gorm:"unique;not null" gorm:"index:auth_token"` SDKAccountID string `json:"sdk_account_id" gorm:"unique;not null"` }
User is a thin model containing basic data about lbryweb user. The majority of user data is stored in internal-apis, referenced by AuthToken
Click to show internal directories.
Click to hide internal directories.