treatments

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factor

type Factor struct {
	Name   string         `validate:"required,gt=0,alphanumunicode" json:"name" yaml:"name"`
	Desc   string         `json:"desc,omitempty" yaml:"desc,omitempty"`
	Values []*FactorValue `json:"values" yaml:"values"`
}

type FactorValue

type FactorValue struct {
	Name  string      `json:"name,omitempty" yaml:"name,omitempty"`
	Value interface{} `validate:"required" json:"value" yaml:"value"`
}

type Treatment

type Treatment struct {
	Name    string                 `json:"name,omitempty" yaml:"name,omitempty"`
	Desc    string                 `json:"desc,omitempty" yaml:"desc,omitempty"`
	Factors map[string]interface{} `validate:"required,dive,keys,gt=0,alphanumunicode,endkeys" json:"factors" yaml:"factors"`
}

type Treatments

type Treatments struct {
	Factors    []*Factor    `validate:"dive" json:"factors" yaml:"factors"`
	Treatments []*Treatment `validate:"dive" json:"treatments" yaml:"treatments"`
}

Jump to

Keyboard shortcuts

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