# Packages
No description provided by the author
No description provided by the author
Package setupclient assists in setting up TLS credentials for a client.
Package setupserver assists in setting up TLS credentials for a server.
# Functions
CheckTlsRequired returns true if the server requires TLS connections with trusted certificates.
DialHTTP connects to an HTTP SRPC server at the specified network address listening on the HTTP SRPC path.
DialHTTPWithDialer is similar to DialHTTP except that the dialer is used to create the underlying connection.
DialTlsHTTP connects to an HTTP SRPC TLS server at the specified network address listening on the HTTP SRPC TLS path.
DialTlsHTTPWithDialer is similar to DialTlsHTTP except that the dialer is used to create the underlying connection.
GetEarliestClientCertExpiration returns the earliest expiration time of any certificate registered with RegisterClientTlsConfig.
LoadCertificates loads zero or more X509 certificates from directory.
NewClientResource returns a ClientResource which may be later used to Get* a Client which is part of a managed pool of connection slots (to limit consumption of resources such as file descriptors).
RegisterClientTlsConfig registers the configuration for TLS client connections.
RegisterFullAuthCA registers the CA certificate pool used for full authentication/authorisation checks (including method checks).
RegisterName publishes in the server the set of methods of the receiver value that satisfy one of the following interfaces: func Method(*Conn) error func Method(*Conn, Decoder, Encoder) error func Method(*Conn, request, *response) error The request/response method must not perform I/O on the Conn type.
No description provided by the author
RegisterServerTlsConfig registers the configuration for TLS server connections.
SetDefaultGrantMethod registers the grantMethod function which will be called to grant access to methods (if access is not granted by the built-in authorisation mechanism) for all receivers.
# Variables
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
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
# Interfaces
No description provided by the author
Dialer implements a dialer that can be use to create connections.
No description provided by the author
MethodBlocker defines an interface to block method calls (after possible authorisation) for a receiver (passed to RegisterName).
MethodGranter defines an interface to grant method calls (if access is not granted by the built-in authorisation mechanism) for a receiver (passed to RegisterName).