Documentation
¶
Index ¶
- Constants
- func AllOrNoneReqd(opts ...string) (ok bool)
- func CreateTLSConfiguration(tlsConfig *conf.TLSConfig) (t *tls.Config, err error)
- func DecodePayload(payload []byte) interface{}
- func GetMapString(genericMap map[string]interface{}, key string) string
- func GetenvOrDefault(varName, defaultVal string) string
- func GetenvOrDefaultLowerCase(varName, defaultVal string) string
- func GetenvOrDefaultUpperCase(varName, defaultVal string) string
- func MarshalToYAML(conf interface{}) (yamlBytes []byte, err error)
- func ParseJSONPayload(req *http.Request) (map[string]interface{}, error)
- func SwaggerUIHTML(_ context.Context) []byte
- func UUIDv4() string
Constants ¶
View Source
const (
// MaxPayloadSize max size of content
MaxPayloadSize = 1024 * 1024
)
Variables ¶
This section is empty.
Functions ¶
func AllOrNoneReqd ¶
AllOrNoneReqd util for checking parameters that must be provided together
func CreateTLSConfiguration ¶
CreateTLSConfiguration creates a tls.Config structure based on parsing the configuration passed in via a TLSConfig structure
func DecodePayload ¶ added in v0.9.7
func DecodePayload(payload []byte) interface{}
func GetMapString ¶
GetMapString is a helper to safely extract strings from generic interface maps
func GetenvOrDefault ¶
func MarshalToYAML ¶
MarshalToYAML marshals a JSON annotated structure into YAML, by first going to JSON
func ParseJSONPayload ¶
parseJSONPayload processes either a YAML or JSON payload from an input HTTP request
func SwaggerUIHTML ¶ added in v0.9.4
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.