types

package
v0.0.0-...-7354bfe Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agents

type Agents struct {
	Agents []string `json:"agents"`
}

Agents type for holding agent list

type InvalidateTokens

type InvalidateTokens struct {
	Token SecurityToken `json:"security_token"`
}

InvalidateTokens type for calling invalidate on tokens

type Message

type Message struct {
	Queue   string        `json:"queue"`
	Message interface{}   `json:"message"`
	Token   SecurityToken `json:"security_token"`
}

Message for pushing a message to the queue

type PopRequest

type PopRequest struct {
	Queue string        `json:"queue"`
	Token SecurityToken `json:"security_token"`
}

PopRequest for popping messages of the queue

type PopResponse

type PopResponse struct {
	Queue   string      `json:"queue"`
	Message interface{} `json:"message"`
}

PopResponse response for popping messages off queue

type PushResponse

type PushResponse struct {
	Success bool `json:"success"`
}

PushResponse response for pushing messages to queue

type Register

type Register struct {
	AgentName string `json:"agent_name"`
}

Register type expected for registering an agent

type RegisterResponse

type RegisterResponse struct {
	Success       bool          `json:"success"`
	Message       string        `json:"message"`
	SecurityToken SecurityToken `json:"security_token"`
}

RegisterResponse type for response to agent registration

type SecurityToken

type SecurityToken struct {
	AgentName string `json:"agent_name"`
	Token     string `json:"token"`
}

SecurityToken token for agents to use

type ValidateResponse

type ValidateResponse struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

ValidateResponse type for response to validating registration

Jump to

Keyboard shortcuts

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