pulsar

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublicTenant          = "public"
	GexNamespace          = "trade"
	MatchSourceTopic      = "match_source"
	MatchResultTopic      = "match_result"
	MatchResultAccountSub = "MatchResultAccountSub"
	MatchSourceSub        = "match_source_sub"
	MatchResultOrderSub   = "MatchResultOrderSub"
	MatchResultKlineSub   = "MatchResultKlineSub"
	MatchResultTickerSub  = "MatchResultTickerSub"
	MatchResultMatchSub   = "MatchResultMatchSub"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PulsarConfig

type PulsarConfig struct {
	Hosts []string `json:"hosts" yaml:"Hosts"`
}

func (PulsarConfig) BuildClient

func (pc PulsarConfig) BuildClient() (pulsar.Client, error)

type Topic

type Topic struct {
	Tenant    string
	Namespace string
	Topic     string
}

func (Topic) BuildTopic

func (t Topic) BuildTopic() string

Jump to

Keyboard shortcuts

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