api

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupApplication

func SetupApplication(app *iris.Application)

func SetupCodecJs

func SetupCodecJs(app *iris.Application)

func SetupConnector

func SetupConnector(app *iris.Application)

func SetupDataPoint

func SetupDataPoint(app *iris.Application)

func SetupLogic

func SetupLogic(app *iris.Application)

func SetupTrigger

func SetupTrigger(app *iris.Application)

Types

type AppForm

type AppForm struct {
	AppId       string
	Name        string
	CodecType   string
	ConnectorId string
}

type Application

type Application struct {
	AppId          string `json:"id"`
	AppDescription string `json:"description,omitempty"`
	// 编码插件
	CodecType string `json:"codec,omitempty"`
	// Proxy ID
	Connector  string `json:"connector,omitempty"`
	CreateTime int64  `json:"createTime,omitempty"`
	UpdateTime int64  `json:"updateTime,omitempty"`
}

type Codec

type Codec struct {
	AppId         string `json:"appId"`
	EncodeContent string `json:"encode,omitempty"`
	DecodeContent string `json:"decode,omitempty"`
	CreateTime    int64  `json:"createTime,omitempty"`
	UpdateTime    int64  `json:"updateTime,omitempty"`
}

type CodecJsForm

type CodecJsForm struct {
	EncodeContent string
	DecodeContent string
}

type Connector

type Connector struct {
	Id         string      `json:"id"`
	Name       string      `json:"name"`
	Type       string      `json:"type"`
	Props      interface{} `json:"props,omitempty"`
	CreateTime int64       `json:"createTime,omitempty"`
	UpdateTime int64       `json:"updateTime,omitempty"`
}

type ConnectorForm

type ConnectorForm struct {
	Name  string
	Type  string
	Props string
}

type DataPointForm

type DataPointForm struct {
	Content string
}

type Logic

type Logic struct {
	AppId      string `json:"appId"`
	Content    string `json:"content,omitempty"`
	CreateTime int64  `json:"createTime,omitempty"`
	UpdateTime int64  `json:"updateTime,omitempty"`
}

type LogicForm

type LogicForm struct {
	Content string
}

type SimpleResult

type SimpleResult struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Item    interface{} `json:"item,omitempty"`
	Page    *repo.Page  `json:"page,omitempty"`
}

func NewBean

func NewBean() *SimpleResult

type Trigger

type Trigger struct {
	Id         string         `json:"id"`
	AppId      string         `json:"appId"`
	Content    *model.Trigger `json:"content,omitempty"`
	CreateTime int64          `json:"createTime,omitempty"`
	UpdateTime int64          `json:"updateTime,omitempty"`
	Status     int            `json:"status,omitempty"`
}

type TriggerForm

type TriggerForm struct {
	Content string
}

Jump to

Keyboard shortcuts

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