parser

package
v0.0.0-...-6bcc447 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package parser for parsing cmd configs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJSONIntoConfig

func ParseJSONIntoConfig(content []byte) (models.Config, error)

ParseJSONIntoConfig parses the JSON configuration

func ParseJSONIntoFarm

func ParseJSONIntoFarm(content []byte) (models.Farm, error)

ParseJSONIntoFarm parses JSON into farm

func ParseJSONIntoNode

func ParseJSONIntoNode(content []byte) (models.Node, error)

ParseJSONIntoNode parses JSON into node

func ParseJSONIntoNodeOptions

func ParseJSONIntoNodeOptions(content []byte) (models.NodeOptions, error)

ParseJSONIntoNodeOptions parses JSON into node options

func ParseJSONIntoPower

func ParseJSONIntoPower(content []byte) (models.Power, error)

ParseJSONIntoPower parses JSON into power

func ReadFile

func ReadFile(path string) ([]byte, error)

ReadFile reads a file and returns its contents

Types

This section is empty.

Jump to

Keyboard shortcuts

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