Documentation ¶
Index ¶
Constants ¶
View Source
const Subsystem = "NSTR"
Subsystem defines the sub system name of this package.
Variables ¶
View Source
var (
MockNostrClient = &NostrClient{}
)
Functions ¶
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 Invoice *lnrpc.Invoice }
Click to show internal directories.
Click to hide internal directories.