postgres

package
v0.0.0-...-16063ba Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Events

type Events struct {
	*postgres.Table[*storage.Event]
}

Events -

func NewEvents

func NewEvents(db *database.PgGo) *Events

NewEvents -

type Metadata

type Metadata struct {
	*postgres.Table[*models.Metadata]
}

Metadata -

func NewMetadata

func NewMetadata(db *database.PgGo) *Metadata

NewMetadata -

func (*Metadata) GetByAddress

func (m *Metadata) GetByAddress(ctx context.Context, address string) (*models.Metadata, error)

GetByAddress -

func (*Metadata) GetByMethod

func (m *Metadata) GetByMethod(ctx context.Context, signature string, limit, offset uint64, order storage.SortOrder) ([]*models.Metadata, error)

GetByMethod -

func (*Metadata) GetByTopic

func (m *Metadata) GetByTopic(ctx context.Context, topic string, limit, offset uint64, order storage.SortOrder) ([]*models.Metadata, error)

GetByTopic -

type Methods

type Methods struct {
	*postgres.Table[*storage.Method]
}

Methods -

func NewMethods

func NewMethods(db *database.PgGo) *Methods

NewMethods -

type Storage

type Storage struct {
	*postgres.Storage

	Metadata models.IMetadata
	Methods  models.IMethod
	Events   models.IEvent
}

Storage -

func Create

func Create(ctx context.Context, cfg config.Database) (*Storage, error)

Create -

Jump to

Keyboard shortcuts

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