server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Running = "running"
	Stopped = "stopped"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MockServerState

type MockServerState struct {
	MockID string `json:"mock_id"`
	URL    string `json:"url"`
	Status string `json:"status"`
	// contains filtered or unexported fields
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(db database.EngineDB) *Server

func (*Server) GetMockServerStates

func (s *Server) GetMockServerStates() map[string]*MockServerState

func (*Server) GetMockServerURLs

func (s *Server) GetMockServerURLs() []string

func (*Server) NewMockServer

func (s *Server) NewMockServer(ctx context.Context, mo *mock.Mock) (*MockServerState, error)

func (*Server) NewMockServerByID

func (s *Server) NewMockServerByID(ctx context.Context, id string) (*MockServerState, error)

func (*Server) StopAllServers

func (s *Server) StopAllServers()

func (*Server) StopMockServer

func (s *Server) StopMockServer(mockID string) (*MockServerState, error)

Jump to

Keyboard shortcuts

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