objects

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name        string   `json:"name"`
	Initialized bool     `json:"initialized"`
	MainServer  Server   `json:"main_server"`
	Servers     []Server `json:"servers"`
	MetricsPort *int     `json:"metrics_port"`
}

type Client

type Client interface {
	Connect() error
	Close() error
	GetSocket() *zmq4.Socket
}

type Server

type Server struct {
	Name       string `json:"name"`
	Ip         string `json:"ip"`
	Port       int    `json:"port"`
	Protocol   string `json:"protocol"`
	SocketType int    `json:"socket"`
}

type ServerInterface

type ServerInterface interface {
	Bind() error
	Close() error
	GetSocket() *zmq4.Socket
}

type SocketType

type SocketType int16
const (
	REP_SERVER    SocketType = 4
	PUB_SERVER    SocketType = 1
	PUSH_SERVER   SocketType = 8
	ROUTER_SERVER SocketType = 6
	DEALER_SERVER SocketType = 5
)

Jump to

Keyboard shortcuts

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