tools

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Tools_SaveRemoteBypassFile_FullMethodName = "/yuhaiin.tools.tools/save_remote_bypass_file"
	Tools_GetInterface_FullMethodName         = "/yuhaiin.tools.tools/get_interface"
)

Variables

View Source
var File_tools_tools_proto protoreflect.FileDescriptor
View Source
var Tools_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yuhaiin.tools.tools",
	HandlerType: (*ToolsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "save_remote_bypass_file",
			Handler:    _Tools_SaveRemoteBypassFile_Handler,
		},
		{
			MethodName: "get_interface",
			Handler:    _Tools_GetInterface_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "tools/tools.proto",
}

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

Functions

func RegisterToolsServer

func RegisterToolsServer(s grpc.ServiceRegistrar, srv ToolsServer)

Types

type Interface added in v0.3.4

type Interface struct {
	Name      string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// contains filtered or unexported fields
}

func (*Interface) Descriptor deprecated added in v0.3.4

func (*Interface) Descriptor() ([]byte, []int)

Deprecated: Use Interface.ProtoReflect.Descriptor instead.

func (*Interface) GetAddresses added in v0.3.4

func (x *Interface) GetAddresses() []string

func (*Interface) GetName added in v0.3.4

func (x *Interface) GetName() string

func (*Interface) ProtoMessage added in v0.3.4

func (*Interface) ProtoMessage()

func (*Interface) ProtoReflect added in v0.3.4

func (x *Interface) ProtoReflect() protoreflect.Message

func (*Interface) Reset added in v0.3.4

func (x *Interface) Reset()

func (*Interface) String added in v0.3.4

func (x *Interface) String() string

type Interfaces added in v0.3.4

type Interfaces struct {
	Interfaces []*Interface `protobuf:"bytes,1,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
	// contains filtered or unexported fields
}

func (*Interfaces) Descriptor deprecated added in v0.3.4

func (*Interfaces) Descriptor() ([]byte, []int)

Deprecated: Use Interfaces.ProtoReflect.Descriptor instead.

func (*Interfaces) GetInterfaces added in v0.3.4

func (x *Interfaces) GetInterfaces() []*Interface

func (*Interfaces) ProtoMessage added in v0.3.4

func (*Interfaces) ProtoMessage()

func (*Interfaces) ProtoReflect added in v0.3.4

func (x *Interfaces) ProtoReflect() protoreflect.Message

func (*Interfaces) Reset added in v0.3.4

func (x *Interfaces) Reset()

func (*Interfaces) String added in v0.3.4

func (x *Interfaces) String() string

type ToolsClient

type ToolsClient interface {
	// req: url
	SaveRemoteBypassFile(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetInterface(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Interfaces, error)
}

ToolsClient is the client API for Tools 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 NewToolsClient

func NewToolsClient(cc grpc.ClientConnInterface) ToolsClient

type ToolsServer

type ToolsServer interface {
	// req: url
	SaveRemoteBypassFile(context.Context, *wrapperspb.StringValue) (*emptypb.Empty, error)
	GetInterface(context.Context, *emptypb.Empty) (*Interfaces, error)
	// contains filtered or unexported methods
}

ToolsServer is the server API for Tools service. All implementations must embed UnimplementedToolsServer for forward compatibility

type UnimplementedToolsServer

type UnimplementedToolsServer struct {
}

UnimplementedToolsServer must be embedded to have forward compatible implementations.

func (UnimplementedToolsServer) GetInterface added in v0.3.4

func (UnimplementedToolsServer) SaveRemoteBypassFile

type UnsafeToolsServer

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

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

Jump to

Keyboard shortcuts

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