SERVICE_NAME_common

package
v0.0.0-...-068ed5e Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrJsonPayloadEmpty is returned when the JSON payload is empty.
	ErrJsonPayloadEmpty = errors.New("JSON payload is empty")
)
View Source
var RE_stripFnPreamble = regexp.MustCompile(`^.*\.(.*)$`)

Regex to extract just the function name (and not the module path)

Functions

func GetFuncName

func GetFuncName(level int) string

func GetFuncTestName

func GetFuncTestName() string

func LogRequest

func LogRequest(r *rest.Request) error

Types

type DELETE_METHOD_NAMERequest

type DELETE_METHOD_NAMERequest struct {
	FieldName1 string    `json:"fieldName1"`
	FieldName2 time.Time `json:"fieldName2"`
}

type DELETE_METHOD_NAMEResponse

type DELETE_METHOD_NAMEResponse struct {
	FieldName3 uint    `json:"fieldName3"`
	FieldName4 float64 `json:"fieldName4"`
}

type GET_METHOD_NAMEResponse

type GET_METHOD_NAMEResponse struct {
	FieldName3 uint    `json:"fieldName3"`
	FieldName4 float64 `json:"fieldName4"`
}

type POST_METHOD_NAMERequest

type POST_METHOD_NAMERequest struct {
	FieldName1 string    `json:"fieldName1"`
	FieldName2 time.Time `json:"fieldName2"`
}

type POST_METHOD_NAMEResponse

type POST_METHOD_NAMEResponse struct {
	FieldName3 uint    `json:"fieldName3"`
	FieldName4 float64 `json:"fieldName4"`
}

type PUT_METHOD_NAMERequest

type PUT_METHOD_NAMERequest struct {
	FieldName1 string    `json:"fieldName1"`
	FieldName2 time.Time `json:"fieldName2"`
}

type PUT_METHOD_NAMEResponse

type PUT_METHOD_NAMEResponse struct {
	FieldName3 uint    `json:"fieldName3"`
	FieldName4 float64 `json:"fieldName4"`
}

type ServiceRequest1

type ServiceRequest1 struct {
	FieldName1 string    `json:"fieldName1"`
	FieldName2 string    `json:"fieldName2"`
	FieldName3 time.Time `json:"fieldName3"`
}

Jump to

Keyboard shortcuts

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