Documentation ¶
Index ¶
- Constants
- Variables
- func FileLine(depth int) string
- func LoadClientTLSConfig(sslCA, sslCert, sslCertKey string) (*tls.Config, error)
- func LoadServerTLSConfig(sslCA, sslClientCA, sslCert, sslCertKey string) (*tls.Config, error)
- func P(format string, a ...interface{})
- func PB(w io.Writer, format string, a ...interface{})
- func PP(format string, a ...interface{})
- func PPP(format string, a ...interface{})
- func Printf(format string, a ...interface{}) (n int, err error)
- func QPrintf(format string, a ...interface{}) (n int, err error)
- func TSPrintf(format string, a ...interface{})
- func VPrintf(format string, a ...interface{}) (n int, err error)
- func VV(format string, a ...interface{})
- func XclientMain()
- type Args
- type Reply
- type ServerCallbackMgr
Constants ¶
const ( EmbeddedCertsDir = "test_certs" EmbeddedCACert = "ca.crt" EmbeddedCAKey = "ca.key" EmbeddedClientCACert = "ca-client.crt" EmbeddedClientCAKey = "ca-client.key" EmbeddedUICACert = "ca-ui.crt" EmbeddedUICAKey = "ca-ui.key" EmbeddedNodeCert = "node.crt" EmbeddedNodeKey = "node.key" EmbeddedRootCert = "client.root.crt" EmbeddedRootKey = "client.root.key" EmbeddedTestUserCert = "client.testuser.crt" EmbeddedTestUserKey = "client.testuser.key" )
EmbeddedCertsDir is the certs directory inside embedded assets. Embedded*{Cert,Key} are the filenames for embedded certs.
Variables ¶
var ErrTimePointInFuture = fmt.Errorf("Tm pt in future")
var NYC *time.Location
var NoTicksAvail = fmt.Errorf("no ticks available")
var OurStdout io.Writer = os.Stdout
so we can multi write easily, use our own printf
var Verbose bool = false
for tons of debug output
var VerboseVerbose bool = false
Functions ¶
func LoadClientTLSConfig ¶
LoadClientTLSConfig creates a client TLSConfig by loading the CA and client certs. The following paths must be passed: - sslCA: path to the CA certificate - sslCert: path to the client certificate - sslCertKey: path to the client key If the path is prefixed with "embedded=", load the embedded certs.
func LoadServerTLSConfig ¶
LoadServerTLSConfig creates a server TLSConfig by loading the CA and server certs. The following paths must be passed:
- sslCA: path to the CA certificate
- sslClientCA: path to the CA certificate to verify client certificates, can be the same as sslCA
- sslCert: path to the server certificate
- sslCertKey: path to the server key
If the path is prefixed with "embedded=", load the embedded certs.
func PPP ¶
func PPP(format string, a ...interface{})
without the file/line, otherwise the same as PP
func Printf ¶
Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered.
func XclientMain ¶
func XclientMain()
Types ¶
type ServerCallbackMgr ¶
type ServerCallbackMgr struct { RpcXsrv *rpcxServer.Server // contains filtered or unexported fields }