dsn

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DSN

type DSN struct {
	Key    string // app key
	Secret string // app secret
	Group  string // kafka group
	Topic  string // kafka topic
	Role   string // pub or sub
	Color  string // env color
}

DSN is a configuration parsed from a DSN string key:secret@group/topic=?&role=?

func ParseDSN

func ParseDSN(s string) (*DSN, error)

ParseDSN parse databus info.

Jump to

Keyboard shortcuts

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