package
0.0.0-20190722071344-ea1d8b2dbe68
Repository: https://github.com/arxanchain/sdk-go-common.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
DecodeBody is used to decode a JSON request body.
NewHTTPServer creates new HTTP server.
RegionSpecificWrapper is used to invoke a static Region and turns a RegionWrapper into a Wrapper type.
Wrap a net.Conn into a client tls connection, performing any additional verification as needed.

# Constants

ErrCodeDuplicateEntity is error code to indicate has duplicate resource.
No description provided by the author
ErrInvalidMethod is used if the HTTP method is not supported.
ErrInvalidParams is used if the HTTP request params is not valid.
ErrInvalidRequest is used if the HTTP request is invalid for example: invalid parameter ...
No description provided by the author
No description provided by the author

# Structs

Config used to create tls.Config.
HTTPServer is used to wrap an Agent and expose it over an HTTP interface.
TLSConfig provides TLS related configuration.

# Interfaces

HTTPCodedError is used to provide the HTTP error code.
Server interface ...

# Type aliases

RegionWrapper is a function that is used to wrap a non-TLS connection and returns an appropriate TLS connection or error.
RequestHandler defines the function type for handling http request.
Wrapper wraps a connection and enables TLS on it.