Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventRepository ¶
type EventRepository interface { PersistLogs(logs []types.Log, eventInfo types.Event, contractAddr, contractName string) error CreateEventTable(contractAddr string, event types.Event) (bool, error) CreateContractSchema(contractName string) (bool, error) CheckSchemaCache(key string) (interface{}, bool) CheckTableCache(key string) (interface{}, bool) }
EventRepository is used to persist event data into custom tables
func NewEventRepository ¶
func NewEventRepository(db *postgres.DB, mode types.Mode) EventRepository
NewEventRepository returns a new EventRepository
type MethodRepository ¶
type MethodRepository interface { PersistResults(results []types.Result, methodInfo types.Method, contractAddr, contractName string) error CreateMethodTable(contractAddr string, method types.Method) (bool, error) CreateContractSchema(contractAddr string) (bool, error) CheckSchemaCache(key string) (interface{}, bool) CheckTableCache(key string) (interface{}, bool) }
MethodRepository is used to persist public getter method data
func NewMethodRepository ¶
func NewMethodRepository(db *postgres.DB, mode types.Mode) MethodRepository
NewMethodRepository returns a new MethodRepository
Click to show internal directories.
Click to hide internal directories.