Documentation ¶
Index ¶
- func Abs(bashPath, path string) string
- func BasePath() string
- func BytesToString(b []byte) string
- func MD5String(val string) (result string)
- func MatchName(val string) bool
- func MatchPassword(val string) bool
- func NewGateway() *runtime.ServeMux
- func StringToBytes(s string) []byte
- type HTTPBodyMarshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
BytesToString converts byte slice to string.
func MatchPassword ¶
MatchPassword if match passsword name return true
func NewGateway ¶
func StringToBytes ¶
StringToBytes converts string to byte slice.
Types ¶
type HTTPBodyMarshaler ¶
HTTPBodyMarshaler is a Marshaler which supports marshaling of a google.api.HttpBody message as the full response body if it is the actual message used as the response. If not, then this will simply fallback to the Marshaler specified as its default Marshaler.
func (*HTTPBodyMarshaler) ContentType ¶
func (h *HTTPBodyMarshaler) ContentType(v interface{}) string
ContentType returns its specified content type in case v is a google.api.HttpBody message, otherwise it will fall back to the default Marshalers content type.
func (*HTTPBodyMarshaler) Delimiter ¶
func (h *HTTPBodyMarshaler) Delimiter() []byte
Delimiter returns the record separator for the stream.
func (*HTTPBodyMarshaler) Marshal ¶
func (h *HTTPBodyMarshaler) Marshal(v interface{}) ([]byte, error)
Marshal marshals "v" by returning the body bytes if v is a google.api.HttpBody message, otherwise it falls back to the default Marshaler.