mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNodeService

type MockNodeService struct {
	TestServer *utils_mocks.MockHttpServer
	TestTarget *target.Target
	TestConfig config.Config

	LoggedInUser *userspace.User
}

func StartMockNodeServices

func StartMockNodeServices() *MockNodeService

func (*MockNodeService) NewApiClient

func (s *MockNodeService) NewApiClient() *mycsnode.ApiClient

func (*MockNodeService) NewServiceHandler

func (s *MockNodeService) NewServiceHandler() *MockServiceHandler

func (*MockNodeService) Stop

func (s *MockNodeService) Stop()

type MockServiceHandler

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

func (*MockServiceHandler) SendAuthResponse

func (h *MockServiceHandler) SendAuthResponse(w http.ResponseWriter, r *http.Request, body string) *string

func (*MockServiceHandler) ValidateEncryption

func (h *MockServiceHandler) ValidateEncryption(apiClient *mycsnode.ApiClient)

Jump to

Keyboard shortcuts

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