models

package
v0.0.0-...-2de4640 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApproveEvent

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

func NewApproveEvent

func NewApproveEvent(_eventSignature string, _collectionName string) *ApproveEvent

func (*ApproveEvent) GetConfig

func (event *ApproveEvent) GetConfig() *Config

func (*ApproveEvent) Store

func (event *ApproveEvent) Store(collection *mongo.Collection, eventLog *types.Log, contractAbi *abi.ABI, logger *zap.Logger) bool

type Config

type Config struct {
	EventSignature string
	CollectionName string
}

type Model

type Model interface {
	GetConfig() *Config
	Store(*mongo.Collection, *types.Log, *abi.ABI, *zap.Logger) bool
}

type Models

type Models []Model

type TransferEvent

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

func NewTransferEvent

func NewTransferEvent(_eventSignature string, _collectionName string) *TransferEvent

func (*TransferEvent) GetConfig

func (event *TransferEvent) GetConfig() *Config

func (*TransferEvent) Store

func (event *TransferEvent) Store(collection *mongo.Collection, eventLog *types.Log, contractAbi *abi.ABI, logger *zap.Logger) bool

Jump to

Keyboard shortcuts

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