client

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuilderTopic = "builder"

BuilderTopic builder for linux

View Source
var WindowsBuilderTopic = "windows_builder"

WindowsBuilderTopic builder for windows

View Source
var WorkerTopic = "worker"

WorkerTopic worker topic

Functions

This section is empty.

Types

type MQClient

type MQClient interface {
	pb.TaskQueueClient
	Close()
	SendBuilderTopic(t TaskStruct) error
}

MQClient mq client

func NewMqClient

func NewMqClient(mqAddr string) (MQClient, error)

NewMqClient new a mq client

type TaskStruct

type TaskStruct struct {
	Topic    string
	TaskType string
	Operator string
	TaskBody interface{}
}

TaskStruct task struct

Jump to

Keyboard shortcuts

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