tmwsproxy

package
v0.0.0-...-efdc0dc Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOtherSideAbsent = fmt.Errorf("other side absent")
)

Functions

func NewProxy

func NewProxy(logger *zap.SugaredLogger) *proxy

Types

type Config

type Config struct {
	TendermintNode        string `validate:"required"`
	ListenAddr            string `validate:"required"`
	DatabaseConnectionURL string `validate:"required"`
	Debug                 bool
}

func ReadConfig

func ReadConfig() (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

type TendermintClient

type TendermintClient struct {
	DataChannel chan json.RawMessage
	// contains filtered or unexported fields
}

func NewTendermintClient

func NewTendermintClient(endpoint string, logger *zap.SugaredLogger, db *database.Instance) (*TendermintClient, error)

func (*TendermintClient) Subscribe

func (t *TendermintClient) Subscribe(evtString string) error

Jump to

Keyboard shortcuts

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