service

package
v0.0.0-...-84939c7 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
}

type ObjectStatusService

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

func New

func New(repo *db.Repository) *ObjectStatusService

func (*ObjectStatusService) HandleId

func (service *ObjectStatusService) HandleId(id int)

func (*ObjectStatusService) Start

func (service *ObjectStatusService) Start()

type ResponseObjectStatus

type ResponseObjectStatus struct {
	Id     int  `json:"id"`
	Status bool `json:"online"`
}

type Worker

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

func NewWorker

func NewWorker(n int, idCh chan int, statusCh chan db.ObjectModel, client *Client) *Worker

func (*Worker) Start

func (w *Worker) Start()

Jump to

Keyboard shortcuts

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