enspb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ens_ResolveAddresses_FullMethodName = "/enspb.Ens/ResolveAddresses"
	Ens_ResolveDomains_FullMethodName   = "/enspb.Ens/ResolveDomains"
)

Variables

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetAddress

func (x *Address) GetAddress() string

func (*Address) GetEnsName

func (x *Address) GetEnsName() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

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

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

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) ResolveDomains

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.

Jump to

Keyboard shortcuts

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