Documentation ¶
Index ¶
- type Pg
- func (pg *Pg) Close()
- func (pg *Pg) InsertFaucetGive(ctx context.Context, eventPayload event.Event) error
- func (pg *Pg) InsertPoolDeposit(ctx context.Context, eventPayload event.Event) error
- func (pg *Pg) InsertPoolSwap(ctx context.Context, eventPayload event.Event) error
- func (pg *Pg) InsertPriceQuoteUpdate(ctx context.Context, eventPayload event.Event) error
- func (pg *Pg) InsertTokenBurn(ctx context.Context, eventPayload event.Event) error
- func (pg *Pg) InsertTokenMint(ctx context.Context, eventPayload event.Event) error
- func (pg *Pg) InsertTokenTransfer(ctx context.Context, eventPayload event.Event) error
- func (pg *Pg) Pool() *pgxpool.Pool
- type PgOpts
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pg ¶
type Pg struct {
// contains filtered or unexported fields
}
func (*Pg) InsertFaucetGive ¶
func (*Pg) InsertPoolDeposit ¶
func (*Pg) InsertPoolSwap ¶
func (*Pg) InsertPriceQuoteUpdate ¶
func (*Pg) InsertTokenBurn ¶
func (*Pg) InsertTokenMint ¶
func (*Pg) InsertTokenTransfer ¶
type Store ¶
type Store interface { InsertTokenTransfer(context.Context, event.Event) error InsertTokenMint(context.Context, event.Event) error InsertTokenBurn(context.Context, event.Event) error InsertFaucetGive(context.Context, event.Event) error InsertPoolSwap(context.Context, event.Event) error InsertPoolDeposit(context.Context, event.Event) error InsertPriceQuoteUpdate(context.Context, event.Event) error Pool() *pgxpool.Pool Close() }
func NewPgStore ¶
Click to show internal directories.
Click to hide internal directories.