tests

package
v0.0.0-...-3ff2ba2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Copyright (c) technicianted. All rights reserved. Licensed under the MIT License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerWrapper

type ServerWrapper struct {
	Server  *server.Server
	Options server.ServerOptions

	TLSCertPath string
	TLSKeyPath  string
}

func CreateNewServer

func CreateNewServer(t *testing.T) *ServerWrapper

func CreateNewTLSServer

func CreateNewTLSServer(ca *tlsutils.SelfSignedCA, validUntil time.Time, t *testing.T) *ServerWrapper

func (*ServerWrapper) DialContext

func (s *ServerWrapper) DialContext(ctx context.Context, network, address string, logger logging.TraceLogger, opts ...types.DialOption) (net.Conn, error)

func (*ServerWrapper) Start

func (s *ServerWrapper) Start(t *testing.T, logger logging.TraceLogger)

func (*ServerWrapper) Stop

func (s *ServerWrapper) Stop(t *testing.T, logger logging.TraceLogger)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL