Documentation
¶
Index ¶
- type Comment
- type CreateInvoiceArgs
- type CreateInvoiceResponse
- type Dupe
- type DupesError
- type DupesResponse
- type GetSignedPOST
- type GetSignedPOSTResponse
- type GqlBody
- type GqlError
- type Invoice
- type Item
- type ItemResponse
- type ItemsCursor
- type ItemsQuery
- type ItemsResponse
- type MeResponse
- type Notification
- type NotificationsCursor
- type NotificationsResponse
- type PayIn
- type PaymentMethod
- type Rss
- type RssAuthor
- type RssChannel
- type RssDate
- type RssItem
- type UpsertCommentResponse
- type UpsertDiscussionResponse
- type UpsertLinkResponse
- type User
- type UserPrivates
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateInvoiceArgs ¶
type CreateInvoiceResponse ¶
type DupesError ¶
func (*DupesError) Error ¶
func (e *DupesError) Error() string
type DupesResponse ¶
type GetSignedPOST ¶
type GetSignedPOSTResponse ¶
type GetSignedPOSTResponse struct {
Errors []GqlError `json:"errors"`
Data struct {
GetSignedPOST GetSignedPOST `json:"getSignedPOST"`
} `json:"data"`
}
type Invoice ¶
type Invoice struct {
Id int `json:"id,string"`
Hash string `json:"hash"`
Hmac string `json:"hmac"`
Bolt11 string `json:"bolt11"`
SatsRequested int `json:"satsRequested"`
SatsReceived int `json:"satsReceived"`
Cancelled bool `json:"cancelled"`
ConfirmedAt time.Time `json:"createdAt"`
ExpiresAt time.Time `json:"expiresAt"`
Nostr map[string]interface{} `json:"nostr"`
IsHeld bool `json:"isHeld"`
Comment string `json:"comment"`
Lud18Data map[string]interface{} `json:"lud18Data"`
ConfirmedPreimage string `json:"confirmedPreimage"`
ActionState string `json:"actionState"`
ActionType string `json:"actionType"`
}
type Item ¶
type Item struct {
Id int `json:"id,string"`
ParentId int `json:"parentId"`
Title string `json:"title"`
Url string `json:"url"`
Text string `json:"text"`
Sats int `json:"sats"`
CreatedAt time.Time `json:"createdAt"`
DeletedAt null.Time `json:"deletedAt"`
Comments []Comment `json:"comments"`
NComments int `json:"ncomments"`
User User `json:"user"`
}
type ItemResponse ¶
type ItemsCursor ¶
type ItemsQuery ¶
type ItemsResponse ¶
type ItemsResponse struct {
Errors []GqlError `json:"errors"`
Data struct {
Items ItemsCursor `json:"items"`
} `json:"data"`
}
type MeResponse ¶
type Notification ¶
type NotificationsCursor ¶
type NotificationsCursor struct {
LastChecked time.Time `json:"lastChecked"`
Cursor string `json:"cursor"`
Notifications []Notification `json:"notifications"`
}
type NotificationsResponse ¶
type NotificationsResponse struct {
Errors []GqlError `json:"errors"`
Data struct {
Notifications NotificationsCursor `json:"notifications"`
} `json:"data"`
}
type PaymentMethod ¶
type PaymentMethod string
const ( PaymentMethodFeeCredits PaymentMethod = "FEE_CREDIT" PaymentMethodOptimistic PaymentMethod = "OPTIMISTIC" PaymentMethodPessimistic PaymentMethod = "PESSIMISTIC" )
type Rss ¶
type Rss struct {
Channel RssChannel `xml:"channel"`
}
type RssChannel ¶
type RssDate ¶
func (*RssDate) UnmarshalXML ¶
type UpsertCommentResponse ¶
type UpsertLinkResponse ¶
type User ¶
type User struct {
Id int `json:"id,string"`
Name string `json:"name"`
Privates UserPrivates `json:"privates"`
}
type UserPrivates ¶
type UserPrivates struct {
Sats int `json:"sats"`
}
Click to show internal directories.
Click to hide internal directories.