handler

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIN_VALUE       = 0
	MAX_VALUE       = 4294967295
	MAX_NAME_LENGTH = 20
	FAMILY_NAME     = "intkey"
)

Variables

This section is empty.

Functions

func DecodeCBOR

func DecodeCBOR(data []byte, pointer interface{}) error

func EncodeCBOR

func EncodeCBOR(value interface{}) ([]byte, error)

func Hexdigest

func Hexdigest(str string) string

Types

type IntkeyHandler

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

func NewIntkeyHandler

func NewIntkeyHandler(namespace string) *IntkeyHandler

func (*IntkeyHandler) Apply

func (self *IntkeyHandler) Apply(request *processor_pb2.TpProcessRequest, context *processor.Context) error

func (*IntkeyHandler) FamilyName

func (self *IntkeyHandler) FamilyName() string

func (*IntkeyHandler) FamilyVersions added in v1.0.0

func (self *IntkeyHandler) FamilyVersions() []string

func (*IntkeyHandler) Namespaces

func (self *IntkeyHandler) Namespaces() []string

type IntkeyPayload

type IntkeyPayload struct {
	Verb  string
	Name  string
	Value int
}

Jump to

Keyboard shortcuts

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