validation

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Status string            `json:"status"`
	Errors map[string]string `json:"errors"`
}

func BuildErrorResponse

func BuildErrorResponse(bodyError map[string]string) *ErrorResponse

func BuildEventErrorResponse

func BuildEventErrorResponse(bodyError map[string]string) *ErrorResponse

func CheckErrorBody

func CheckErrorBody(envID string, body *activate_request.ActivateRequest) *ErrorResponse

func CheckEventErrorBody

func CheckEventErrorBody(body *event_request.EventRequest) *ErrorResponse

type EventErrorResponse

type EventErrorResponse struct {
	Status string            `json:"status"`
	Errors map[string]string `json:"errors"`
}

Jump to

Keyboard shortcuts

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