server

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 14 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(client *client.Client, configFile, apiToMock string, port uint32) *MockServer

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