advisory

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountConnectionsV1 added in v0.0.20

type AccountConnectionsV1 struct {
	event.NATSEvent

	Server     ServerInfoV1 `json:"server"`
	Account    string       `json:"acc"`
	Conns      int          `json:"conns"`
	LeafNodes  int          `json:"leafnodes"`
	TotalConns int          `json:"total_conns"`
}

AccountConnectionsV1 is sent regularly reporting the state of all accounts with connections to a particular NATS Server

NATS Schema Type io.nats.server.advisory.v1.account_connections

type ClientInfoV1

type ClientInfoV1 struct {
	Start      time.Time     `json:"start,omitempty"`
	Host       string        `json:"host,omitempty"`
	ID         uint64        `json:"id,omitempty"`
	Account    string        `json:"acc"`
	User       string        `json:"user,omitempty"`
	Name       string        `json:"name,omitempty"`
	Lang       string        `json:"lang,omitempty"`
	Version    string        `json:"ver,omitempty"`
	RTT        time.Duration `json:"rtt,omitempty"`
	Server     string        `json:"server,omitempty"`
	Cluster    string        `json:"cluster,omitempty"`
	Stop       time.Time     `json:"stop,omitempty"`
	Jwt        string        `json:"jwt,omitempty"`
	IssuerKey  string        `json:"issuer_key,omitempty"`
	NameTag    string        `json:"name_tag,omitempty"`
	Tags       []string      `json:"tags,omitempty"`
	Kind       string        `json:"kind,omitempty"`
	ClientType string        `json:"client_type,omitempty"`
}

ClientInfoV1 is detailed information about the client forming a connection.

type ConnectEventMsgV1

type ConnectEventMsgV1 struct {
	event.NATSEvent

	Server ServerInfoV1 `json:"server"`
	Client ClientInfoV1 `json:"client"`
}

ConnectEventMsgV1 is sent when a new connection is made that is part of an account.

NATS Schema Type io.nats.server.advisory.v1.client_connect

type DataStatsV1

type DataStatsV1 struct {
	Msgs  int64 `json:"msgs"`
	Bytes int64 `json:"bytes"`
}

DataStatsV1 reports how may msg and bytes. Applicable for both sent and received.

type DisconnectEventMsgV1

type DisconnectEventMsgV1 struct {
	event.NATSEvent

	Server   ServerInfoV1 `json:"server"`
	Client   ClientInfoV1 `json:"client"`
	Sent     DataStatsV1  `json:"sent"`
	Received DataStatsV1  `json:"received"`
	Reason   string       `json:"reason"`
}

DisconnectEventMsgV1 is sent when a new connection previously defined from a ConnectEventMsg is closed.

NATS Schema Type io.nats.server.advisory.v1.client_disconnect

type ServerInfoV1

type ServerInfoV1 struct {
	Name      string    `json:"name"`
	Host      string    `json:"host"`
	ID        string    `json:"id"`
	Cluster   string    `json:"cluster,omitempty"`
	Version   string    `json:"ver"`
	Seq       uint64    `json:"seq"`
	JetStream bool      `json:"jetstream"`
	Time      time.Time `json:"time"`
}

ServerInfoV1 identifies remote servers.

Jump to

Keyboard shortcuts

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