Documentation
¶
Index ¶
- type ActiveToken
- type ActivityData
- type Address
- type AddressResponse
- type AggregatedKindData
- type Audio
- type BarChartData
- type BitcoinRate
- type BlobDescriptor
- type BlockData
- type CacheData
- type CacheMetaData
- type DagData
- type DagLeafData
- type DownloadFilter
- type DownloadMessage
- type ErrorMessage
- type GitNestr
- type JWTClaims
- type Kind
- type KindData
- type LeafLabelRange
- type Libp2pStream
- type LoginPayload
- type LoginRequest
- type Misc
- type MonthlyKindData
- type PendingTransaction
- type Photo
- type QueryMessage
- type QueryResponse
- type RelaySettings
- type ReplaceTransactionRequest
- type ResponseMessage
- type SignUpRequest
- type Stream
- type Subscriber
- type SubscriptionTier
- type TimeSeriesData
- type UploadMessage
- type User
- type UserChallenge
- type UserProfile
- type Video
- type WalletAddress
- type WalletBalance
- type WalletTransactions
- type WebSocketStream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveToken ¶
type ActivityData ¶
type Address ¶
type Address struct { Index string `json:"index,string"` // Use string tag to handle string-encoded integers Address string `json:"address"` WalletName string `json:"wallet_name"` Status string `json:"status"` AllocatedAt *time.Time `json:"allocated_at,omitempty"` Npub string `json:"npub,omitempty"` }
Address structure to be stored in Graviton
type AddressResponse ¶
type AggregatedKindData ¶
type BarChartData ¶
type BitcoinRate ¶
type BlobDescriptor ¶
type BlockData ¶
type BlockData struct { Leaf merkle_dag.DagLeaf Branch merkle_dag.ClassicTreeBranch }
type CacheMetaData ¶
type CacheMetaData struct {
LastAccessed string
}
type DagLeafData ¶
type DagLeafData struct { PublicKey string Signature string Leaf merkle_dag.DagLeaf }
type DownloadFilter ¶
type DownloadFilter struct { Leaves []string LeafRanges []LeafLabelRange IncludeContent bool // IncludeContent from LeafLabelRange always overrides this }
type DownloadMessage ¶
type DownloadMessage struct { Root string PublicKey string Signature string Filter *DownloadFilter }
type ErrorMessage ¶
type ErrorMessage struct {
Message string
}
type JWTClaims ¶
type JWTClaims struct { UserID uint `json:"user_id"` Email string `json:"email"` jwt.RegisteredClaims }
JWTClaims represents the structure of the JWT claims
type LeafLabelRange ¶
type Libp2pStream ¶
func (*Libp2pStream) Close ¶
func (ls *Libp2pStream) Close() error
func (*Libp2pStream) Context ¶
func (ls *Libp2pStream) Context() context.Context
type LoginPayload ¶
LoginPayload represents the structure of the login request payload
type LoginRequest ¶
type MonthlyKindData ¶
type PendingTransaction ¶
type PendingTransaction struct { ID uint `gorm:"primaryKey"` TxID string `gorm:"not null;uniqueIndex" json:"txid"` FeeRate int `gorm:"not null" json:"feeRate"` Amount int `gorm:"not null" json:"amount"` RecipientAddress string `gorm:"not null" json:"recipient_address"` Timestamp time.Time `gorm:"not null" json:"timestamp"` EnableRBF bool `gorm:"not null" json:"enable_rbf"` // New field for RBF }
type QueryMessage ¶
type QueryResponse ¶
type QueryResponse struct {
Hashes []string
}
type RelaySettings ¶
type RelaySettings struct { Mode string `json:"mode"` Protocol []string `json:"protocol"` Chunked []string `json:"chunked"` Chunksize string `json:"chunksize"` MaxFileSize int `json:"maxFileSize"` MaxFileSizeUnit string `json:"maxFileSizeUnit"` Kinds []string `json:"kinds"` DynamicKinds []string `json:"dynamicKinds"` Photos []string `json:"photos"` Videos []string `json:"videos"` GitNestr []string `json:"gitNestr"` Audio []string `json:"audio"` IsKindsActive bool `json:"isKindsActive"` IsPhotosActive bool `json:"isPhotosActive"` IsVideosActive bool `json:"isVideosActive"` IsGitNestrActive bool `json:"isGitNestrActive"` IsAudioActive bool `json:"isAudioActive"` }
type ResponseMessage ¶
type ResponseMessage struct {
Ok bool
}
type SignUpRequest ¶
type Subscriber ¶
type Subscriber struct { Npub string `json:"npub"` // The unique public key of the subscriber Tier string `json:"tier"` // The subscription tier the user has selected StartDate time.Time `json:"start_date"` // When the subscription started EndDate time.Time `json:"end_date"` // When the subscription ends Address string `json:"address"` // The address associated with the subscription LastTransactionID string `json:"last_transaction_id"` // The ID of the last processed transaction }
type SubscriptionTier ¶
type TimeSeriesData ¶
type UploadMessage ¶
type UploadMessage struct { Root string Count int Leaf merkle_dag.DagLeaf Parent string Branch *merkle_dag.ClassicTreeBranch PublicKey string Signature string }
type UserChallenge ¶
type UserProfile ¶
type WalletAddress ¶
type WalletBalance ¶
type WalletTransactions ¶
type WebSocketStream ¶
type WebSocketStream struct { Conn *websocket.Conn Ctx context.Context // contains filtered or unexported fields }
func NewWebSocketStream ¶
func NewWebSocketStream(conn *websocket.Conn, ctx context.Context) *WebSocketStream
func (*WebSocketStream) Close ¶
func (ws *WebSocketStream) Close() error
func (*WebSocketStream) Context ¶
func (ws *WebSocketStream) Context() context.Context
func (*WebSocketStream) Flush ¶
func (ws *WebSocketStream) Flush() error
Click to show internal directories.
Click to hide internal directories.