res

package
v0.0.0-...-62da268 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EXAMPLE_LIST_MACHINES *v1.ListMachineResult = &v1.ListMachineResult{
	Total: 2,
	Machines: []*v1.Machine{
		{
			UniqId:      "MACHINE_JSKNKAJSD71283",
			MachineName: "server-A",
			LanIps: []string{
				"10.20.30.40",
			},
			WanIps: []string{},
		},
		{
			UniqId:      "MACHINE_JSKNKAJSD71284",
			MachineName: "server-B",
			LanIps: []string{
				"10.20.30.41",
				"10.20.30.42",
			},
			WanIps: []string{
				"43.222.111.1",
			},
		},
	},
}

Functions

This section is empty.

Types

type ResourceService

type ResourceService struct {
	svc.ResourceServiceHandler
}

func (*ResourceService) GetServiceMeta

func (s *ResourceService) GetServiceMeta(
	context.Context,
	*connect.Request[v1.GetServiceMetaRequest],
) (*connect.Response[v1.GetServiceMetaResponse], error)

func (*ResourceService) ListMachine

func (s *ResourceService) ListMachine(
	context.Context, *connect.Request[v1.ListMachineRequest],
) (*connect.Response[v1.ListMachineResponse], error)

Jump to

Keyboard shortcuts

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