eventstream

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWebsocket

func NewWebsocket(url string, onOpenMsg []byte, logger zerolog.Logger) *ws

Types

type Stream

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

func Dial

func Dial(tendermintRPCEndpoint string, grpcEndpoint string, enableTLS bool, logger zerolog.Logger) *Stream

Dial opens two connections to the given endpoint, one for the websocket and one for the oracle grpc.

func (*Stream) Close

func (s *Stream) Close()

func (*Stream) ParamsUpdate

func (s *Stream) ParamsUpdate() <-chan types.Params

func (*Stream) VotingPeriodStarted

func (s *Stream) VotingPeriodStarted() <-chan types.VotingPeriod

Jump to

Keyboard shortcuts

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