nip34

package
v0.38.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 5 Imported by: 2

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL