Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NatsConfig ¶
type NatsConfig struct { PidFile string `json:"pid_file"` Http int `json:"http"` Leafnodes Leafnodes `json:"leafnodes"` }
func NewJson ¶
func NewJson(path string) *NatsConfig
func (*NatsConfig) Dump ¶
func (c *NatsConfig) Dump() string
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is a registry for nats-leafnodes
func NewRegistry ¶
NewRegistry creates a new registry
type State ¶
type State struct { // Path to the state file Path string // Current state Current current }
State is a struct that holds the state of the registry
type UpdateAction ¶
type UpdateAction string
UpdateAction is an enum for the update action
const ( // Add is the action for adding a component to the state Add UpdateAction = "add" // Remove is the action for removing a component from the state Remove UpdateAction = "remove" )
Click to show internal directories.
Click to hide internal directories.