rainbond: github.com/goodrain/rainbond/mq/client Index | Files

package client

import "github.com/goodrain/rainbond/mq/client"

Index

Package Files

client.go

Variables

var BuilderTopic = "builder"

BuilderTopic builder for linux

var WindowsBuilderTopic = "windows_builder"

WindowsBuilderTopic builder for windows

var WorkerTopic = "worker"

WorkerTopic worker topic

type MQClient Uses

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

MQClient mq client

func NewMqClient Uses

func NewMqClient(etcdendpoints []string, defaultserver string) (MQClient, error)

NewMqClient new a mq client

type TaskStruct Uses

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

TaskStruct task struct

Package client imports 9 packages (graph) and is imported by 12 packages. Updated 2018-12-08. Refresh now. Tools for package owners.