api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

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

func New

func New(ns *server.Server) *Api

func (*Api) Register

func (a *Api) Register(engine *gin.Engine)

type NatsInfoMsg

type NatsInfoMsg struct {
	ServerId    string   `json:"server_id"`
	ServerName  string   `json:"server_name"`
	Version     string   `json:"version"`
	Proto       int      `json:"proto"`
	Go          string   `json:"go"`
	Host        string   `json:"host"`
	Port        int      `json:"port"`
	Headers     bool     `json:"headers"`
	MaxPayload  int      `json:"max_payload"`
	ClientId    int      `json:"client_id"`
	ClientIp    string   `json:"client_ip"`
	Cluster     string   `json:"cluster"`
	ConnectUrls []string `json:"connect_urls"`
}

Jump to

Keyboard shortcuts

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