tools

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	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: "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 Tools added in v0.3.6

type Tools struct {
	UnimplementedToolsServer
}

func NewTools added in v0.3.6

func NewTools() *Tools

func (*Tools) GetInterface added in v0.3.6

func (t *Tools) GetInterface(context.Context, *emptypb.Empty) (*Interfaces, error)

type ToolsClient

type ToolsClient interface {
	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 {
	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.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedToolsServer) GetInterface added in v0.3.4

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