validator

package
v0.5.15 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package validator is a package that provides functions to assure the input JSON is correct.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateBFTX added in v0.5.0

func ValidateBFTX(bftx bf_tx.BF_TX) (string, error)

ValidateBFTX is a function that receives the BF_TX and return the proper message according with the result of ValidateFields function.

func ValidateFields

func ValidateFields(bftx bf_tx.BF_TX) (bool, string)

ValidateFields is a function that receives the BF_TX, validates every field in the BF_TX and return true or false, and a message if some field is wrong.

Types

This section is empty.

Jump to

Keyboard shortcuts

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