repository

package
v0.0.0-...-042a1d3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

type Postgres struct {
	// contains filtered or unexported fields
}

Postgres manages Runestones in the database.

func NewPostgres

func NewPostgres(ctx context.Context) (*Postgres, error)

NewPostgres returns new Postgres instance.

func (*Postgres) CreateRunestone

func (pg *Postgres) CreateRunestone(ctx context.Context, url string) (string, error)

CreateRunestone creates appropriate runestone item in the db and returns new id.

func (*Postgres) FindRunestone

func (pg *Postgres) FindRunestone(ctx context.Context, id string) (runestones.Runestone, error)

FindRunestone selects runestone from the db by id.

Jump to

Keyboard shortcuts

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