proto

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DNS_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.DNS",
	HandlerType: (*DNSServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Present",
			Handler:    _DNS_Present_Handler,
		},
		{
			MethodName: "CleanUp",
			Handler:    _DNS_CleanUp_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "selfhosted.proto",
}

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

View Source
var File_selfhosted_proto protoreflect.FileDescriptor
View Source
var Restart_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Restart",
	HandlerType: (*RestartServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Quit",
			Handler:    _Restart_Quit_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "selfhosted.proto",
}

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

Functions

func RegisterDNSServer

func RegisterDNSServer(s grpc.ServiceRegistrar, srv DNSServer)

func RegisterRestartServer

func RegisterRestartServer(s grpc.ServiceRegistrar, srv RestartServer)

Types

type DNSClient

type DNSClient interface {
	Present(ctx context.Context, in *Record, opts ...grpc.CallOption) (*Empty, error)
	CleanUp(ctx context.Context, in *Record, opts ...grpc.CallOption) (*Empty, error)
}

DNSClient is the client API for DNS 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 NewDNSClient

func NewDNSClient(cc grpc.ClientConnInterface) DNSClient

type DNSServer

type DNSServer interface {
	Present(context.Context, *Record) (*Empty, error)
	CleanUp(context.Context, *Record) (*Empty, error)
	// contains filtered or unexported methods
}

DNSServer is the server API for DNS service. All implementations must embed UnimplementedDNSServer for forward compatibility

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Record

type Record struct {
	Txt string `protobuf:"bytes,1,opt,name=txt,proto3" json:"txt,omitempty"`
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*Record) Descriptor deprecated

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetKey

func (x *Record) GetKey() string

func (*Record) GetTxt

func (x *Record) GetTxt() string

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

type RestartClient

type RestartClient interface {
	Quit(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}

RestartClient is the client API for Restart 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 NewRestartClient

func NewRestartClient(cc grpc.ClientConnInterface) RestartClient

type RestartServer

type RestartServer interface {
	Quit(context.Context, *Empty) (*Empty, error)
	// contains filtered or unexported methods
}

RestartServer is the server API for Restart service. All implementations must embed UnimplementedRestartServer for forward compatibility

type UnimplementedDNSServer

type UnimplementedDNSServer struct {
}

UnimplementedDNSServer must be embedded to have forward compatible implementations.

func (UnimplementedDNSServer) CleanUp

func (UnimplementedDNSServer) Present

type UnimplementedRestartServer

type UnimplementedRestartServer struct {
}

UnimplementedRestartServer must be embedded to have forward compatible implementations.

func (UnimplementedRestartServer) Quit

type UnsafeDNSServer

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

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

type UnsafeRestartServer

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

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

Jump to

Keyboard shortcuts

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