Documentation ¶
Index ¶
- Variables
- func RegisterDNSServer(s grpc.ServiceRegistrar, srv DNSServer)
- func RegisterRestartServer(s grpc.ServiceRegistrar, srv RestartServer)
- type DNSClient
- type DNSServer
- type Empty
- type Record
- type RestartClient
- type RestartServer
- type UnimplementedDNSServer
- type UnimplementedRestartServer
- type UnsafeDNSServer
- type UnsafeRestartServer
Constants ¶
This section is empty.
Variables ¶
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)
var File_selfhosted_proto protoreflect.FileDescriptor
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) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
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.
type UnimplementedRestartServer ¶
type UnimplementedRestartServer struct { }
UnimplementedRestartServer must be embedded to have forward compatible implementations.
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.