config

package
v0.0.0-...-09e72e1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package config deals with parsing and manipulation of the config files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfig

func ParseConfig(contents []byte) (*model.Config, error)

ParseConfig takes in an absolute path for the config.json and uses it to create a config object.

func TransformConfigToClientConfig

func TransformConfigToClientConfig(input *model.Config) (conf *model.ClientConfig)

TransformConfigToClientConfig transforms the config object to one that's safe to use for javascript by omitting all the sensitive fields.

func TransformToAdminConfig

func TransformToAdminConfig(input *model.Config) (conf *model.AdminConfig)

TransformToAdminConfig takes in a config object and spits out an admin config

Types

This section is empty.

Directories

Path Synopsis
Package model deals with the model definitions of the configuration file.
Package model deals with the model definitions of the configuration file.

Jump to

Keyboard shortcuts

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