protocol

package
v0.0.0-...-af2943a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	*core.Postgres
}

Storage -

func NewStorage

func NewStorage(pg *core.Postgres) *Storage

NewStorage -

func (*Storage) Get

func (storage *Storage) Get(ctx context.Context, hash string, level int64) (p protocol.Protocol, err error)

Get - returns current protocol for `level` (`hash` is optional, leave empty string for default)

func (*Storage) GetByID

func (storage *Storage) GetByID(ctx context.Context, id int64) (response protocol.Protocol, err error)

GetByID - returns protocol by id

Jump to

Keyboard shortcuts

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