common

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Influx added in v1.3.0

type Influx struct {
	Url   string `yaml:"url"`
	Token string `yaml:"token"`
	Org   string `yaml:"org"`
}

type Inject

type Inject struct {
	Values *Values
	Log    *zap.Logger
	Js     nats.JetStreamContext
	Store  nats.ObjectStore
	Influx influxdb2.Client
}

type Nats

type Nats struct {
	Hosts []string `yaml:"hosts"`
	Nkey  string   `yaml:"nkey"`
}

type Values

type Values struct {
	// 命名空间
	Namespace string `yaml:"namespace"`

	// NATS 配置
	Nats Nats `yaml:"nats"`

	// Influx 配置
	Influx Influx `yaml:"influx"`
}

Jump to

Keyboard shortcuts

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