scheme

package
v0.0.0-...-48543aa Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionScheme

type ActionScheme struct {
	URL     string
	Method  string
	Trigger string
	Worker  string
}

ActionScheme ...

type GetTask

type GetTask struct {
	Duck struct {
		UUID   string `yaml:"uuid" json:"uuid"`
		Action struct {
			Trigger string `yaml:"trigger" json:"trigger"`
			Worker  string `yaml:"worker" json:"worker"`
		} `yaml:"action" json:"action"`
	} `yaml:"duck" json:"duck"`
}

GetTask mapping

type Query

type Query struct {
	Name  string `yaml:"name" json:"name"`
	Value string `yaml:"value" json:"value"`
	Type  string `yaml:"type" json:"type"`
}

Query ...

type RegisterTask

type RegisterTask struct {
	Worker struct {
		Register []struct {
			Action string `yaml:"action"`
			Name   string `yaml:"name"`
		} `yaml:"register"`
	} `yaml:"worker"`
}

RegisterTask mapping register task worker

type ResultsSend

type ResultsSend struct {
	Result interface{} `json:"result"`
	UUID   string      `json:"uuid"`
}

ResultsSend ...

type SendResponse

type SendResponse struct {
	UUID      string      `json:"uuid"`
	TaskName  string      `json:"task_name"`
	QueueName string      `json:"queue_name"`
	Args      interface{} `json:"args"`
	CreatedAt time.Time   `json:"created_at"`
}

SendResponse ...

type SendTask

type SendTask struct {
	Duck struct {
		Task   string `yaml:"task" json:"tasks"`
		Action struct {
			URL     string `yaml:"url" json:"url"`
			Method  string `yaml:"method" json:"method"`
			Trigger string `yaml:"trigger" json:"trigger"`
			Worker  string `yaml:"worker" json:"worker"`
		} `yaml:"action" json:"action"`
		Headers []struct {
			Name  string `yaml:"name" json:"name"`
			Value string `yaml:"value" json:"value"`
			Type  string `yaml:"type" json:"type"`
		} `yaml:"headers" json:"headers"`
		Params []struct {
			Name  string `yaml:"name" json:"name"`
			Value string `yaml:"value" json:"value"`
			Type  string `yaml:"type" json:"type"`
		} `yaml:"parameter" json:"parameter"`
		Body []struct {
			Name  string `yaml:"name" json:"name"`
			Value string `yaml:"value" json:"value"`
			Type  string `yaml:"type" json:"type"`
		} `yaml:"body" json:"body"`
		Setting struct {
			Loop bool `yaml:"loop" json:"loop"`
		} `yaml:"setting" json:"setting"`
	} `yaml:"duck" json:"duck"`
}

SendTask mapping send task to worker

type SettingScheme

type SettingScheme struct {
	Loop       bool
	TimeResult int64
}

ActionScheme ...

Jump to

Keyboard shortcuts

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