Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithApiKey ¶ added in v0.0.4
Types ¶
type Config ¶ added in v0.0.3
type Config struct {
AppName string `json:"app_name"`
Contracts []Contract `json:"contracts"`
StartBlock uint64 `json:"start_block"`
}
Indexer configuration
func (Config) FilterByName ¶ added in v0.0.3
type Contract ¶ added in v0.0.3
type HandlerCancelFunc ¶
type HandlerCancelFunc func()
func RegisterHandler ¶
func RegisterHandler(n string, s string, cb ConsumerHandleFunc) (HandlerCancelFunc, error)
type MiddlewareHandleFunc ¶
type MiddlewareHandleFunc func(ConsumerHandleFunc) ConsumerHandleFunc
type RawEvent ¶
type RawEvent struct {
RecordedAt time.Time `json:"recorded_at"`
EventId string `json:"event_id"`
FromAddress string `json:"from_address"`
Keys []string `json:"keys"`
Data []string `json:"data"`
}
Event directly pulled onchain
type RegisterResponse ¶ added in v0.0.3
RegisterResponse
func Configure ¶ added in v0.0.4
func Configure(c Config) (*RegisterResponse, error)
Click to show internal directories.
Click to hide internal directories.