rpc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Function1

func Function1(msg string, fail bool) (s string, err error)

func Function2

func Function2(
	b bool,
	i int,
	f float64,
	s string,
) (
	bool,
	int,
	float64,
	string,
)

Types

type TestClient

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

func NewTestClient

func NewTestClient(port string, services ...string) *TestClient

func (TestClient) Run

func (c TestClient) Run(t *testing.T)

type TestGoService

type TestGoService struct {
	*rpc.App
}

func NewTestGoService

func NewTestGoService(port string) *TestGoService

type TestStruct1

type TestStruct1 struct {
	B bool    `json:"b"`
	I int     `json:"i"`
	F float64 `json:"f"`
	S string  `json:"s"`
}

func Function4

func Function4(
	b bool,
	i int,
	f float64,
	s string,
) TestStruct1

type TestStruct2

type TestStruct2 struct {
	TestStruct1 `json:"struct1"`
}

func Function3

func Function3(struct1 *TestStruct2) *TestStruct2

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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