accessible

package
v0.0.0-...-cf604a8 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Agents = make([]Agent, 3)

Functions

func GetAgent

func GetAgent() *grpc.ClientConn

данная функция нужна для получения свободного агента

func Ping

func Ping(addr string) (*grpc.ClientConn, error)

Types

type Agent

type Agent struct {
	Addr     string
	LastPing string
	IsBusy   bool
	// contains filtered or unexported fields
}

структура агента

type AgentJson

type AgentJson struct {
	Addr     string `json:"address"`
	IsBusy   bool   `json:"is_busy"`
	LastPing string `json:"last_ping"`
}

json структура агента, которую мы возвращаем при запросе

Jump to

Keyboard shortcuts

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