Documentation ¶
Overview ¶
Package healthcheck defines the RPC interface for the sansshell HealthCheck actions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_dns_proto protoreflect.FileDescriptor
var Lookup_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Dns.Lookup", HandlerType: (*LookupServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Lookup", Handler: _Lookup_Lookup_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "dns.proto", }
Lookup_ServiceDesc is the grpc.ServiceDesc for Lookup service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLookupServer ¶
func RegisterLookupServer(s grpc.ServiceRegistrar, srv LookupServer)
Types ¶
type LookupClient ¶
type LookupClient interface { // Lookup issues a DNS lookup request and returns the result Lookup(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (*LookupReply, error) }
LookupClient is the client API for Lookup 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 NewLookupClient ¶
func NewLookupClient(cc grpc.ClientConnInterface) LookupClient
type LookupClientProxy ¶
type LookupClientProxy interface { LookupClient LookupOneMany(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (<-chan *LookupManyResponse, error) }
LookupClientProxy is the superset of LookupClient which additionally includes the OneMany proxy methods
func NewLookupClientProxy ¶
func NewLookupClientProxy(cc *proxy.Conn) LookupClientProxy
NewLookupClientProxy creates a LookupClientProxy for use in proxied connections. NOTE: This takes a proxy.Conn instead of a generic ClientConnInterface as the methods here are only valid in proxy.Conn contexts.
type LookupManyResponse ¶
type LookupManyResponse struct { Target string // As targets can be duplicated this is the index into the slice passed to proxy.Conn. Index int Resp *LookupReply Error error }
LookupManyResponse encapsulates a proxy data packet. It includes the target, index, response and possible error returned.
type LookupReply ¶
type LookupReply struct { Result []string `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
LookupReply describes the result of a DNS query
func (*LookupReply) Descriptor
deprecated
func (*LookupReply) Descriptor() ([]byte, []int)
Deprecated: Use LookupReply.ProtoReflect.Descriptor instead.
func (*LookupReply) GetResult ¶
func (x *LookupReply) GetResult() []string
func (*LookupReply) ProtoMessage ¶
func (*LookupReply) ProtoMessage()
func (*LookupReply) ProtoReflect ¶
func (x *LookupReply) ProtoReflect() protoreflect.Message
func (*LookupReply) Reset ¶
func (x *LookupReply) Reset()
func (*LookupReply) String ¶
func (x *LookupReply) String() string
type LookupRequest ¶
type LookupRequest struct { // The hostname to query Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` // contains filtered or unexported fields }
LookupRequest describes the DNS query request
func (*LookupRequest) Descriptor
deprecated
func (*LookupRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupRequest.ProtoReflect.Descriptor instead.
func (*LookupRequest) GetHostname ¶
func (x *LookupRequest) GetHostname() string
func (*LookupRequest) ProtoMessage ¶
func (*LookupRequest) ProtoMessage()
func (*LookupRequest) ProtoReflect ¶
func (x *LookupRequest) ProtoReflect() protoreflect.Message
func (*LookupRequest) Reset ¶
func (x *LookupRequest) Reset()
func (*LookupRequest) String ¶
func (x *LookupRequest) String() string
type LookupServer ¶
type LookupServer interface { // Lookup issues a DNS lookup request and returns the result Lookup(context.Context, *LookupRequest) (*LookupReply, error) }
LookupServer is the server API for Lookup service. All implementations should embed UnimplementedLookupServer for forward compatibility
type UnimplementedLookupServer ¶
type UnimplementedLookupServer struct { }
UnimplementedLookupServer should be embedded to have forward compatible implementations.
func (UnimplementedLookupServer) Lookup ¶
func (UnimplementedLookupServer) Lookup(context.Context, *LookupRequest) (*LookupReply, error)
type UnsafeLookupServer ¶
type UnsafeLookupServer interface {
// contains filtered or unexported methods
}
UnsafeLookupServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LookupServer will result in compilation errors.