Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterEnsServer(s grpc.ServiceRegistrar, srv EnsServer)
- type Address
- type EnsClient
- type EnsServer
- type ResolveAddressesRequest
- func (*ResolveAddressesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResolveAddressesRequest) GetDomains() []string
- func (*ResolveAddressesRequest) ProtoMessage()
- func (x *ResolveAddressesRequest) ProtoReflect() protoreflect.Message
- func (x *ResolveAddressesRequest) Reset()
- func (x *ResolveAddressesRequest) String() string
- type ResolveDomainsRequest
- func (*ResolveDomainsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResolveDomainsRequest) GetAddresses() []string
- func (*ResolveDomainsRequest) ProtoMessage()
- func (x *ResolveDomainsRequest) ProtoReflect() protoreflect.Message
- func (x *ResolveDomainsRequest) Reset()
- func (x *ResolveDomainsRequest) String() string
- type ResolveResponse
- type UnimplementedEnsServer
- type UnsafeEnsServer
Constants ¶
const ( Ens_ResolveAddresses_FullMethodName = "/enspb.Ens/ResolveAddresses" Ens_ResolveDomains_FullMethodName = "/enspb.Ens/ResolveDomains" )
Variables ¶
var Ens_ServiceDesc = grpc.ServiceDesc{ ServiceName: "enspb.Ens", HandlerType: (*EnsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ResolveAddresses", Handler: _Ens_ResolveAddresses_Handler, }, { MethodName: "ResolveDomains", Handler: _Ens_ResolveDomains_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "enspb/ens.proto", }
Ens_ServiceDesc is the grpc.ServiceDesc for Ens service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_enspb_ens_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEnsServer ¶
func RegisterEnsServer(s grpc.ServiceRegistrar, srv EnsServer)
Types ¶
type Address ¶
type Address struct { EnsName string `protobuf:"bytes,1,opt,name=ens_name,json=ensName,proto3" json:"ens_name,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*Address) Descriptor
deprecated
func (*Address) GetAddress ¶
func (*Address) GetEnsName ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type EnsClient ¶
type EnsClient interface { ResolveAddresses(ctx context.Context, in *ResolveAddressesRequest, opts ...grpc.CallOption) (*ResolveResponse, error) ResolveDomains(ctx context.Context, in *ResolveDomainsRequest, opts ...grpc.CallOption) (*ResolveResponse, error) }
EnsClient is the client API for Ens 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 NewEnsClient ¶
func NewEnsClient(cc grpc.ClientConnInterface) EnsClient
type EnsServer ¶
type EnsServer interface { ResolveAddresses(context.Context, *ResolveAddressesRequest) (*ResolveResponse, error) ResolveDomains(context.Context, *ResolveDomainsRequest) (*ResolveResponse, error) // contains filtered or unexported methods }
EnsServer is the server API for Ens service. All implementations must embed UnimplementedEnsServer for forward compatibility
type ResolveAddressesRequest ¶
type ResolveAddressesRequest struct { Domains []string `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"` // contains filtered or unexported fields }
func (*ResolveAddressesRequest) Descriptor
deprecated
func (*ResolveAddressesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResolveAddressesRequest.ProtoReflect.Descriptor instead.
func (*ResolveAddressesRequest) GetDomains ¶
func (x *ResolveAddressesRequest) GetDomains() []string
func (*ResolveAddressesRequest) ProtoMessage ¶
func (*ResolveAddressesRequest) ProtoMessage()
func (*ResolveAddressesRequest) ProtoReflect ¶
func (x *ResolveAddressesRequest) ProtoReflect() protoreflect.Message
func (*ResolveAddressesRequest) Reset ¶
func (x *ResolveAddressesRequest) Reset()
func (*ResolveAddressesRequest) String ¶
func (x *ResolveAddressesRequest) String() string
type ResolveDomainsRequest ¶
type ResolveDomainsRequest struct { Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` // contains filtered or unexported fields }
func (*ResolveDomainsRequest) Descriptor
deprecated
func (*ResolveDomainsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResolveDomainsRequest.ProtoReflect.Descriptor instead.
func (*ResolveDomainsRequest) GetAddresses ¶
func (x *ResolveDomainsRequest) GetAddresses() []string
func (*ResolveDomainsRequest) ProtoMessage ¶
func (*ResolveDomainsRequest) ProtoMessage()
func (*ResolveDomainsRequest) ProtoReflect ¶
func (x *ResolveDomainsRequest) ProtoReflect() protoreflect.Message
func (*ResolveDomainsRequest) Reset ¶
func (x *ResolveDomainsRequest) Reset()
func (*ResolveDomainsRequest) String ¶
func (x *ResolveDomainsRequest) String() string
type ResolveResponse ¶
type ResolveResponse struct { Addresses []*Address `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` // contains filtered or unexported fields }
func (*ResolveResponse) Descriptor
deprecated
func (*ResolveResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResolveResponse.ProtoReflect.Descriptor instead.
func (*ResolveResponse) GetAddresses ¶
func (x *ResolveResponse) GetAddresses() []*Address
func (*ResolveResponse) ProtoMessage ¶
func (*ResolveResponse) ProtoMessage()
func (*ResolveResponse) ProtoReflect ¶
func (x *ResolveResponse) ProtoReflect() protoreflect.Message
func (*ResolveResponse) Reset ¶
func (x *ResolveResponse) Reset()
func (*ResolveResponse) String ¶
func (x *ResolveResponse) String() string
type UnimplementedEnsServer ¶
type UnimplementedEnsServer struct { }
UnimplementedEnsServer must be embedded to have forward compatible implementations.
func (UnimplementedEnsServer) ResolveAddresses ¶
func (UnimplementedEnsServer) ResolveAddresses(context.Context, *ResolveAddressesRequest) (*ResolveResponse, error)
func (UnimplementedEnsServer) ResolveDomains ¶
func (UnimplementedEnsServer) ResolveDomains(context.Context, *ResolveDomainsRequest) (*ResolveResponse, error)
type UnsafeEnsServer ¶
type UnsafeEnsServer interface {
// contains filtered or unexported methods
}
UnsafeEnsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EnsServer will result in compilation errors.