sidecar

package
v0.0.0-...-fbce341 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultClientURL            = "ws://127.0.0.1:8546"
	DefaultClientConnectionType = eth.ConnectionTypeDirect
	DefaultNatsURL              = "ns://127.0.0.1:4222"
	DefaultBucketClientProfile  = "eth_client_profiles"
	DefaultBucketClientStatus   = "eth_client_statuses"
)

Default Constants

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, options ...Option) error

Types

type Option

type Option func(opts *Options) error

func BucketClientProfile

func BucketClientProfile(bucket string) Option

func BucketClientStatus

func BucketClientStatus(bucket string) Option

func ClientConnectionType

func ClientConnectionType(connectionType eth.ConnectionType) Option

func ClientId

func ClientId(id string) Option

func ClientUrl

func ClientUrl(url string) Option

func NatsUrl

func NatsUrl(url string) Option

type Options

type Options struct {
	ClientUrl            string
	ClientId             *string
	ClientConnectionType eth.ConnectionType

	NatsUrl string

	BucketClientProfile string
	BucketClientStatus  string
}

Options can be used to create a customized connection.

func GetDefaultOptions

func GetDefaultOptions() Options

GetDefaultOptions returns default configuration options for the sidecar.

Jump to

Keyboard shortcuts

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