binary

package
v0.0.0-...-309cb8d Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2017 karma.run AG. All rights reserved. Use of this source code is governed by an AGPL license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte, _ mdl.Model) (val.Value, err.Error)

func Encode

func Encode(v val.Value) []byte

Types

type JstrCodec

type JstrCodec struct{}

func (JstrCodec) Decode

func (dec JstrCodec) Decode(data []byte, model mdl.Model) (val.Value, err.Error)

func (JstrCodec) Encode

func (dec JstrCodec) Encode(v val.Value) []byte

type Type

type Type byte
const (
	TypeTuple    Type = 0
	TypeList     Type = 1
	TypeUnion    Type = 2
	TypeStruct   Type = 3
	TypeMap      Type = 4
	TypeFloat    Type = 5
	TypeBool     Type = 6
	TypeString   Type = 7
	TypeRef      Type = 8
	TypeDateTime Type = 9
	TypeNull     Type = 10
	TypeSymbol   Type = 11
	TypeSet      Type = 12
	TypeInt8     Type = 13
	TypeInt16    Type = 14
	TypeInt32    Type = 15
	TypeInt64    Type = 16
	TypeUint8    Type = 17
	TypeUint16   Type = 18
	TypeUint32   Type = 19
	TypeUint64   Type = 20
)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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