specification

package
v0.0.0-...-48e1cf4 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisAllowedDataKeyNames = map[string]bool{
	"":           true,
	"string":     true,
	"int32":      true,
	"int64":      true,
	"float32":    true,
	"float64":    true,
	"int":        true,
	"uint":       true,
	"float":      true,
	"bool":       true,
	"byte":       true,
	"rune":       true,
	"complex64":  true,
	"complex128": true,
}
View Source
var DisAllowedServiceNames = map[string]bool{
	"":           true,
	"string":     true,
	"int32":      true,
	"int64":      true,
	"float32":    true,
	"float64":    true,
	"int":        true,
	"uint":       true,
	"float":      true,
	"bool":       true,
	"byte":       true,
	"rune":       true,
	"complex64":  true,
	"complex128": true,
}

Functions

func ApiName

func ApiName(ServiceName string) string

return the api name of the service name with format "api:serviceName". first letter of serviceName should be lower case, and start with "api:" two possible source of the service name: 1. the type name of the first parameter of the function 2. the name give by the user do not panic, because it may be called by web client. otherwise the server can be maliciously closed by the client

func ApiNameByType

func ApiNameByType(i interface{}) (name string)

func GetValidDataKeyName

func GetValidDataKeyName(value interface{}, Key *string) (isValidName bool)

func MarshalApiInput

func MarshalApiInput(paramIn interface{}) (out []byte, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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