validator

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2017 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 ValidateBf_Tx

func ValidateBf_Tx(bf_tx bf_tx.BF_TX) (string, error)

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

func ValidateFields

func ValidateFields(bf_tx 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