Skip to content

Value Types

Rick Zhou edited this page Jul 6, 2015 · 15 revisions

number

example values:

  • 1
  • 0.12

int

example values:

  • 1
  • -1

uint

example values:

  • 1
  • 0

string

example values:

  • "hello world"
  • ""

when string type is used in action parameter, it support addition properties

  • editor: the editor used in GUI tool
  • can be password, daterange, date, textarea
  • placeholder: the placeholder for the input box when used in GUI tool

bool

Bools can also have labels attached to them similar to enums. The first value is always equivalent to false and the second value is always equivalent of true

  • bool[disabled,enabled]

However the responder must always send either of these two values.

  • true
  • false

enum[..]

a enum value type can be enum[...] with comma separated values, example:

  • enum[off,on,auto]
  • enum[Sun,Mon,Tue,Wed,Thu,Fri,Sat]

the first value in the list will be the default value

the value sent in network will look same as a string

bytes

binary type

map

a map object with key:value pairs key is always string and value is dynamic type example values:

array

a array object, children values are dynamic example values:

dynamic

a dynamic value type can have value of any above type

Protocol
 ◌ Design
 ◌ Initializing Connection
 ◌ Node API
  ◌ Methods
  ◌ Broker
   ◌ Broker Discovery
  ◌ Configs
  ◌ Value Types
 ◌ Tokens
 ◌ Quality of Service
DSLink Manager
 ◌ dslink.json
 ◌ Startup Command
SDK Development
 ◌ Implementation Guide
DSA Server
 ◌ Installation
 ◌ Update Server
 ◌ Server Configuration
 ◌ CLI Tools
 ◌ DSA Permission Basics
 ◌ DSA Permission Model
  ◌ Permission List for the Root
 ◌ Authentication
  ◌ OpenID Connect
  ◌ Password Hasher
 ◌ DGLux Server SSL (HTTPS)
 ◌ Docker
 ◌ Audit
 ◌ Data Node
 ◌ Install NGINX with DSA Server
 ◌ Configure Ubuntu Linux to auto start DSA server
 ◌ Troubleshooting

Clone this wiki locally