eventapi

package
v0.11.0-dev.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.10.0

type Config struct {
	// ListenAddr is the address on which the event API will listen.
	ListenAddr string `hcl:"listen_addr"`

	// Memory is the configuration for the in-memory storage. Cannot be
	// used together with storage_redis configuration.
	Memory *storageMemory `hcl:"storage_memory,block,optional"`

	// Redis is the configuration for the Redis storage. Cannot be used
	// together with storage_memory configuration.
	Redis *storageRedis `hcl:"storage_redis,block,optional"`

	// HCL fields:
	Range   hcl.Range       `hcl:",range"`
	Content hcl.BodyContent `hcl:",content"`
	// contains filtered or unexported fields
}

func (*Config) EventAPI added in v0.10.0

func (c *Config) EventAPI(d Dependencies) (*api.EventAPI, error)

func (*Config) Storage added in v0.10.0

func (c *Config) Storage() (store.Storage, error)

type DatastoreDependencies

type DatastoreDependencies struct {
	Transport transport.Transport
	Feeds     []types.Address
	Logger    log.Logger
}

type Dependencies

type Dependencies struct {
	EventStore *store.EventStore
	Transport  transport.Transport
	Logger     log.Logger
}

Jump to

Keyboard shortcuts

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