schema

package
v0.0.0-...-076f285 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain

type Domain struct {
	Name    string `json:"name"`    // Domain name.
	Version string `json:"version"` // Domain version.
}

type GetDomainsCommand

type GetDomainsCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*GetDomainsCommand) Initalize

func (c *GetDomainsCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetDomainsCommand) Respond

func (c *GetDomainsCommand) Respond(r *GetDomainsReturn)

func (*GetDomainsCommand) RespondWithError

func (c *GetDomainsCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetDomainsCommandFn

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

func (*GetDomainsCommandFn) Load

func (a *GetDomainsCommandFn) Load() func(GetDomainsCommand)

func (*GetDomainsCommandFn) Store

func (a *GetDomainsCommandFn) Store(fn func(GetDomainsCommand))

type GetDomainsReturn

type GetDomainsReturn struct {
	Domains []Domain `json:"domains"` // List of supported domains.
}

type SchemaAgent

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

func NewAgent

func NewAgent(conn *shared.Connection) *SchemaAgent

func (*SchemaAgent) Name

func (agent *SchemaAgent) Name() string

func (*SchemaAgent) ProcessCommand

func (agent *SchemaAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)

func (*SchemaAgent) SetGetDomainsHandler

func (agent *SchemaAgent) SetGetDomainsHandler(handler func(GetDomainsCommand))

Commands Sent From Frontend

Jump to

Keyboard shortcuts

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