Documentation ¶
Index ¶
- type Cluster
- type Configuration
- func (c *Configuration) GetClusterByName(name string) (Cluster, bool)
- func (c *Configuration) GetCurrentCluster() Cluster
- func (c *Configuration) GetTopicByName(name string) (Topic, bool)
- func (c *Configuration) SetCluster(cluster Cluster)
- func (c *Configuration) SetCurrentCluster(name string) bool
- func (c *Configuration) SetTopic(topic Topic)
- type Encoding
- type SASL
- type TLS
- type Topic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Name string `yaml:"name,omitempty"` Brokers []string `yaml:"brokers,omitempty"` Version string `yaml:"version,omitempty"` SASL *SASL `yaml:"sasl,omitempty"` TLS *TLS `yaml:"tls,omitempty"` SecurityProtocol string `yaml:"security_protocol,omitempty"` SchemaRegistryURL string `yaml:"schema_registry_url,omitempty"` }
type Configuration ¶ added in v0.1.0
type Configuration struct { CurrentCluster string `yaml:"current_cluster"` Clusters []Cluster `yaml:"clusters"` Topics []Topic `yaml:"topics"` }
func (*Configuration) GetClusterByName ¶ added in v0.1.0
func (c *Configuration) GetClusterByName(name string) (Cluster, bool)
func (*Configuration) GetCurrentCluster ¶ added in v0.1.0
func (c *Configuration) GetCurrentCluster() Cluster
func (*Configuration) GetTopicByName ¶ added in v0.1.0
func (c *Configuration) GetTopicByName(name string) (Topic, bool)
func (*Configuration) SetCluster ¶ added in v0.1.0
func (c *Configuration) SetCluster(cluster Cluster)
func (*Configuration) SetCurrentCluster ¶ added in v0.1.0
func (c *Configuration) SetCurrentCluster(name string) bool
func (*Configuration) SetTopic ¶ added in v0.1.0
func (c *Configuration) SetTopic(topic Topic)
type SASL ¶ added in v0.1.0
type SASL struct { Mechanism string `yaml:"mechanism,omitempty"` Username string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` ClientID string `yaml:"client_id,omitempty"` ClientSecret string `yaml:"client_secret,omitempty"` TokenURL string `yaml:"token_url,omitempty"` Token string `yaml:"token,omitempty"` }
type Topic ¶
type Topic struct { Name string `yaml:"name"` Encoding Encoding `yaml:"encoding,omitempty"` ProtoType string `yaml:"proto_type,omitempty"` ProtoPaths []string `yaml:"proto_paths,omitempty"` ProtoExcludePaths []string `yaml:"proto_exclude_paths,omitempty"` AvroSchemaURL string `yaml:"avro_schema_url,omitempty"` AvroSchemaID int `yaml:"avro_schema_id,omitempty"` }
Click to show internal directories.
Click to hide internal directories.