pointers.mx raw

   1  package pointers
   2  
   3  import "smesh.lol/pkg/nostr/kind"
   4  
   5  type Profile struct {
   6  	PublicKey []byte   `json:"pubkey"`
   7  	Relays    [][]byte `json:"relays,omitempty"`
   8  }
   9  
  10  type Event struct {
  11  	ID     []byte   `json:"id"`
  12  	Relays [][]byte `json:"relays,omitempty"`
  13  	Author []byte   `json:"author,omitempty"`
  14  	Kind   *kind.K  `json:"kind,omitempty"`
  15  }
  16  
  17  type Entity struct {
  18  	PublicKey  []byte   `json:"pubkey"`
  19  	Kind      *kind.K  `json:"kind,omitempty"`
  20  	Identifier []byte  `json:"identifier,omitempty"`
  21  	Relays    [][]byte `json:"relays,omitempty"`
  22  }
  23