subnetlookup

package
v1.8.0-rebuild Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_subnetlookup_subnetlookup_proto protoreflect.FileDescriptor
View Source
var SubnetLookup_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "subnetlookup.SubnetLookup",
	HandlerType: (*SubnetLookupServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubnetID",
			Handler:    _SubnetLookup_SubnetID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "subnetlookup/subnetlookup.proto",
}

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

Functions

func RegisterSubnetLookupServer

func RegisterSubnetLookupServer(s grpc.ServiceRegistrar, srv SubnetLookupServer)

Types

type SubnetIDRequest

type SubnetIDRequest struct {
	ChainId []byte `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SubnetIDRequest) Descriptor deprecated

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

Deprecated: Use SubnetIDRequest.ProtoReflect.Descriptor instead.

func (*SubnetIDRequest) GetChainId

func (x *SubnetIDRequest) GetChainId() []byte

func (*SubnetIDRequest) ProtoMessage

func (*SubnetIDRequest) ProtoMessage()

func (*SubnetIDRequest) ProtoReflect

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

func (*SubnetIDRequest) Reset

func (x *SubnetIDRequest) Reset()

func (*SubnetIDRequest) String

func (x *SubnetIDRequest) String() string

type SubnetIDResponse

type SubnetIDResponse struct {
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*SubnetIDResponse) Descriptor deprecated

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

Deprecated: Use SubnetIDResponse.ProtoReflect.Descriptor instead.

func (*SubnetIDResponse) GetId

func (x *SubnetIDResponse) GetId() []byte

func (*SubnetIDResponse) ProtoMessage

func (*SubnetIDResponse) ProtoMessage()

func (*SubnetIDResponse) ProtoReflect

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

func (*SubnetIDResponse) Reset

func (x *SubnetIDResponse) Reset()

func (*SubnetIDResponse) String

func (x *SubnetIDResponse) String() string

type SubnetLookupClient

type SubnetLookupClient interface {
	SubnetID(ctx context.Context, in *SubnetIDRequest, opts ...grpc.CallOption) (*SubnetIDResponse, error)
}

SubnetLookupClient is the client API for SubnetLookup 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.

type SubnetLookupServer

type SubnetLookupServer interface {
	SubnetID(context.Context, *SubnetIDRequest) (*SubnetIDResponse, error)
	// contains filtered or unexported methods
}

SubnetLookupServer is the server API for SubnetLookup service. All implementations must embed UnimplementedSubnetLookupServer for forward compatibility

type UnimplementedSubnetLookupServer

type UnimplementedSubnetLookupServer struct {
}

UnimplementedSubnetLookupServer must be embedded to have forward compatible implementations.

func (UnimplementedSubnetLookupServer) SubnetID

type UnsafeSubnetLookupServer

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

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

Jump to

Keyboard shortcuts

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