Documentation ¶
Index ¶
- func CheckLeafNodeConnectedCount(t *testing.T, s *server.Server, lnCons int)
- func ClientConnect(t testing.TB, s *server.Server, opts ...nats.Option) *nats.Conn
- func ClientConnectURL(t testing.TB, url string, opts ...nats.Option) *nats.Conn
- func DefaultOptions() *server.Options
- func GetJsConsumerInfo(t *testing.T, nc *nats.Conn, stream string, consumer string, apiPrefix string) *server.ConsumerInfo
- func GetJsStreamInfo(t *testing.T, nc *nats.Conn, stream string, apiPrefix string) *server.StreamInfo
- func GetOCSPStatus(s tls.ConnectionState) (*ocsp.Response, error)
- func HttpMonitorGetVarz(t *testing.T, httpHost string, httpPort int, opts string) *server.Varz
- func JsClientConnect(t *testing.T, s *server.Server, opts ...nats.Option) (*nats.Conn, nats.JetStreamContext)
- func JsCreateStream(t *testing.T, nc *nats.Conn, stream string, apiPrefix string, jsReq []byte)
- func JsCreateStreamFromFile(t *testing.T, nc *nats.Conn, stream string, apiPrefix string, jsReqFile string)
- func LoadConfig(configFile string) (opts *server.Options)
- func MergeOptions(base *server.Options, override *server.Options) (opts *server.Options)
- func NewOCSPResponder(t *testing.T, issuerCertPEM, issuerKeyPEM string) *http.Server
- func NewOCSPResponderCustomAddress(t *testing.T, issuerCertPEM, issuerKeyPEM string, addr string) *http.Server
- func NewOCSPResponderDesignatedCustomAddress(t *testing.T, issuerCertPEM, respCertPEM, respKeyPEM string, addr string) *http.Server
- func ParseCertPEM(t *testing.T, certPEM string) *x509.Certificate
- func ParseKeyPEM(t *testing.T, keyPEM string) crypto.Signer
- func RunServer(opts *server.Options) *server.Server
- func SetOCSPStatus(t *testing.T, ocspURL, certPEM string, status int)
- func Up(configFile string) (s *server.Server, opts *server.Options)
- func UpByOpts(opts *server.Options) (*server.Server, *server.Options)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLeafNodeConnectedCount ¶
CheckLeafNodeConnectedCount checks that the server has the expected number of leaf node connections
func ClientConnect ¶
ClientConnect creates a client connection from passed server reference taking optional options e.g. user credentials nats.UserCredentials("path/to/creds") or nats.UserInfo("user", "password")
func ClientConnectURL ¶
ClientConnectURL creates a client connection from passed NATS URL taking optional options e.g. user credentials nats.UserCredentials("path/to/creds") or nats.UserInfo("user", "password")
func DefaultOptions ¶
DefaultOptions returns a set of default server options
func GetJsConsumerInfo ¶
func GetJsStreamInfo ¶
func GetOCSPStatus ¶
func GetOCSPStatus(s tls.ConnectionState) (*ocsp.Response, error)
func HttpMonitorGetVarz ¶
HttpMonitorGetVarz returns the Varz struct from the NATS Server HTTP Monitor endpoint
func JsClientConnect ¶
func JsClientConnect(t *testing.T, s *server.Server, opts ...nats.Option) (*nats.Conn, nats.JetStreamContext)
JsClientConnect creates a client connection and JetStream context from passed server reference taking optional options e.g. user credentials nats.UserCredentials("path/to/creds") or nats.UserInfo("user", "password")
func JsCreateStream ¶
func JsCreateStreamFromFile ¶
func LoadConfig ¶
LoadConfig loads a configuration from a filename
func MergeOptions ¶
MergeOptions merges two sets of server options, one considered overrides
func NewOCSPResponder ¶
func ParseCertPEM ¶
func ParseCertPEM(t *testing.T, certPEM string) *x509.Certificate
Types ¶
This section is empty.