nip34

package
v0.28.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 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
	Subject    string

	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
}

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