sidecar

package
v0.0.0-...-6b508d1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sidecar

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

func NewSidecar

func NewSidecar(config SidecarConfig, rpc *ethclient.Client, ph posthog.Client) (*Sidecar, error)

func (*Sidecar) Run

func (s *Sidecar) Run() error

type SidecarConfig

type SidecarConfig struct {
	SnapshotInterval      uint64
	EvictionThreshold     uint64
	RpcURL                string
	GameFactoryAddressHex string
	PostHogApiKey         string
	PostHogEndpoint       string
	JWTSecret             [32]byte
}

func (*SidecarConfig) Validate

func (c *SidecarConfig) Validate() error

Jump to

Keyboard shortcuts

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