Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MockNostrClient = &NostrClient{}
)
Functions ¶
This section is empty.
Types ¶
type NostrClient ¶
type NostrClient struct {
// contains filtered or unexported fields
}
func NewNostrClient ¶
func NewNostrClient(serviceNSeckey string, servicename string, serviceRelayList []string) (*NostrClient, error)
func (*NostrClient) PublishEvent ¶
func (n *NostrClient) PublishEvent(p *NostrPublishParam) error
type NostrPublishParam ¶
type NostrPublishParam struct { UserNPubkey string `json:"nPubkey"` UserRelayList []string `json:"relayList,omitempty"` Slug string `json:"slug"` // the identifier of blog artcle Price int64 `json:"price"` // invoice's price, which may be optional using BOLT12 or LNURL in the future Preimage lntypes.Preimage `json:"preimage,omitempty"` // invoice's preimage, which will basically be filled in when the invoice settle Invoice *lnrpc.Invoice }
Click to show internal directories.
Click to hide internal directories.