islb

package
v0.0.0-...-b742d14 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Global  global    `mapstructure:"global"`
	Log     logConf   `mapstructure:"log"`
	Nats    natsConf  `mapstructure:"nats"`
	Node    nodeConf  `mapstructure:"node"`
	Redis   db.Config `mapstructure:"redis"`
	CfgFile string
}

Config for islb node

type ISLB

type ISLB struct {
	ion.Node
	// contains filtered or unexported fields
}

ISLB represents islb node

func NewISLB

func NewISLB(nid string) *ISLB

NewISLB create a islb node instance

func (*ISLB) Close

func (i *ISLB) Close()

Close all

func (*ISLB) Start

func (i *ISLB) Start(conf Config) error

Start islb node

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(dc string, nc *nats.Conn, redis *db.Redis) (*Registry, error)

func (*Registry) Close

func (r *Registry) Close()

Jump to

Keyboard shortcuts

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