mockspdk

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSpdkServer

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

func NewMockSpdkServer

func NewMockSpdkServer(network, address string, t *testing.T) (*MockSpdkServer, error)

func (*MockSpdkServer) AddMethod

func (s *MockSpdkServer) AddMethod(name string,
	api func(params interface{}) (*SpdkErr, interface{}))

func (*MockSpdkServer) Stop

func (s *MockSpdkServer) Stop()

type SpdkErr

type SpdkErr struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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