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 ¶
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 ¶
func (r Repository) ToEvent() *nostr.Event
type RepositoryState ¶
type RepositoryState struct {
nostr.Event
ID string
HEAD string
Tags map[string]string
Branches map[string]string
}
func ParseRepositoryState ¶
func ParseRepositoryState(event nostr.Event) RepositoryState
func (RepositoryState) ToEvent ¶
func (rs RepositoryState) ToEvent() *nostr.Event
Click to show internal directories.
Click to hide internal directories.