server

package
v1.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLogEntry

type AccessLogEntry struct {
	TimeStamp  string
	Method     string
	Path       string
	StatusCode string

	Error error
}

type MockServer

type MockServer struct {
	LogCh chan AccessLogEntry
	ErrCh chan error
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, client *client.Client, configFile, apiToMock string, port uint32) (MockServer, error)

func (MockServer) Restart

func (m MockServer) Restart(ctx context.Context, MockServerId string) error

func (MockServer) ServerWait

func (m MockServer) ServerWait(ctx context.Context, MockServerId string) (<-chan container.ContainerWaitOKBody, <-chan error)

func (MockServer) Start

func (m MockServer) Start(ctx context.Context) (string, error)

func (MockServer) Stop

func (m MockServer) Stop(ctx context.Context, MockServerId string) error

func (MockServer) StreamLogs

func (m MockServer) StreamLogs(ctx context.Context, containerId string)

Jump to

Keyboard shortcuts

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