package
0.0.0-20241009020746-86db61e7dc7e
Repository: https://github.com/laoshanxi/app-mesh.git
Documentation: pkg.go.dev

# Functions

ConnectAppMeshServer establishes a secure TLS TCP connection to an App Mesh server.
GetFileAttributes returns a map with file attributes: mode, user ID, and group ID.
IsFileExist checks if the file at the given path exists.
LoadCA loads a CA certificate, either from a single file or from a directory of certificates.
LoadCACertificate loads a single CA certificate from a file and returns a CertPool containing it.
LoadCACertificates loads multiple CA certificates from a directory.
LoadCertificatePair loads a TLS certificate and key from the given PEM and key file paths.
No description provided by the author
NewHttpClient creates a new AppMeshClient instance for interacting with a REST server.
NewTcpClient creates a new AppMeshClientTCP instance for interacting with a TCP server.
ParseURL parses the given input string into a URL object.
PrettyJSON takes a JSON string as input and returns a formatted, indented JSON string.
SetFileAttributes applies file mode and ownership (UID, GID) to a given file based on HTTP headers.
SetTcpNoDelay disables Nagle's algorithm for the given net.Conn, and supports both TCP and TLS connections.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
default 7 day(s).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Application json.
AppMeshClient interacts with the REST server using REST API requests.
AppMeshClientTCP interacts with the TCP server using REST API requests via a socket.
No description provided by the author
Behavior.
HTTP Request executor.
TCP Request executor.
Daily time limitation.
JWT Response.
No description provided by the author
Request represents the message sent over TCP.
CPU & Memory limitation.
Response represents the message received over TCP.
No description provided by the author

# Interfaces

Requester interface.

# Type aliases

Env json.
REST Headers.
Label json.