Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Patch ¶
type Patch struct { nostr.Event Repository nostr.EntityPointer Files []*gitdiff.File Header *gitdiff.PatchHeader }
func ParsePatch ¶
func ParsePatch(event nostr.Event) Patch
type Repository ¶
type Repository struct { nostr.Event ID string Name string Description string Web []string Clone []string Relays []string EarliestUniqueCommitID string Maintainers []string }
func ParseRepository ¶
func ParseRepository(event nostr.Event) Repository
func (Repository) FetchState ¶ added in v0.34.11
func (repo Repository) FetchState(ctx context.Context, s nostr.RelayStore) *RepositoryState
func (Repository) GetPatchesSync ¶
func (repo Repository) GetPatchesSync(ctx context.Context, s nostr.RelayStore) []Patch
func (Repository) ToEvent ¶ added in v0.34.11
func (r Repository) ToEvent() *nostr.Event
type RepositoryState ¶ added in v0.34.11
type RepositoryState struct { nostr.Event ID string HEAD string Tags map[string]string Branches map[string]string }
func ParseRepositoryState ¶ added in v0.34.11
func ParseRepositoryState(event nostr.Event) RepositoryState
func (RepositoryState) ToEvent ¶ added in v0.34.11
func (rs RepositoryState) ToEvent() *nostr.Event
Click to show internal directories.
Click to hide internal directories.