Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_gsubnetlookup_proto protoreflect.FileDescriptor
var SubnetLookup_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gsubnetlookupproto.SubnetLookup", HandlerType: (*SubnetLookupServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SubnetID", Handler: _SubnetLookup_SubnetID_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "gsubnetlookup.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=chainID,proto3" json:"chainID,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 ¶ added in v1.4.7
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 ¶ added in v1.4.7
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.
func NewSubnetLookupClient ¶
func NewSubnetLookupClient(cc grpc.ClientConnInterface) SubnetLookupClient
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 ¶
func (UnimplementedSubnetLookupServer) SubnetID(context.Context, *SubnetIDRequest) (*SubnetIDResponse, error)
type UnsafeSubnetLookupServer ¶ added in v1.4.7
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.