nip34

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 5 Imported by: 1

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) GetPatchesSync

func (repo Repository) GetPatchesSync(ctx context.Context, s nostr.RelayStore) []Patch

Jump to

Keyboard shortcuts

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