mirror

package
v1.7.12 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mirror provides vald server interface

Index

Constants

View Source
const (
	RPCServiceName  = "Mirror"
	RegisterRPCName = "Register"
)

Variables

View Source
var File_v1_mirror_mirror_proto protoreflect.FileDescriptor
View Source
var Mirror_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "mirror.v1.Mirror",
	HandlerType: (*MirrorServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _Mirror_Register_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/mirror/mirror.proto",
}

Mirror_ServiceDesc is the grpc.ServiceDesc for Mirror service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMirrorServer

func RegisterMirrorServer(s grpc.ServiceRegistrar, srv MirrorServer)

Types

type MirrorClient

type MirrorClient interface {
	// Register is the RPC to register other mirror servers.
	Register(ctx context.Context, in *payload.Mirror_Targets, opts ...grpc.CallOption) (*payload.Mirror_Targets, error)
}

MirrorClient is the client API for Mirror service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMirrorClient

func NewMirrorClient(cc grpc.ClientConnInterface) MirrorClient

type MirrorServer

type MirrorServer interface {
	// Register is the RPC to register other mirror servers.
	Register(context.Context, *payload.Mirror_Targets) (*payload.Mirror_Targets, error)
	// contains filtered or unexported methods
}

MirrorServer is the server API for Mirror service. All implementations must embed UnimplementedMirrorServer for forward compatibility

type UnimplementedMirrorServer

type UnimplementedMirrorServer struct {
}

UnimplementedMirrorServer must be embedded to have forward compatible implementations.

func (UnimplementedMirrorServer) Register

type UnsafeMirrorServer

type UnsafeMirrorServer interface {
	// contains filtered or unexported methods
}

UnsafeMirrorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MirrorServer will result in compilation errors.

Jump to

Keyboard shortcuts

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