Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetServiceList() []*shared.Service
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type MsgAddService
- func (*MsgAddService) Descriptor() ([]byte, []int)deprecated
- func (x *MsgAddService) GetAddress() string
- func (x *MsgAddService) GetService() *shared.Service
- func (*MsgAddService) ProtoMessage()
- func (x *MsgAddService) ProtoReflect() protoreflect.Message
- func (x *MsgAddService) Reset()
- func (x *MsgAddService) String() string
- type MsgAddServiceResponse
- type MsgClient
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type Params
- type QueryAllServicesRequest
- func (*QueryAllServicesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllServicesRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryAllServicesRequest) ProtoMessage()
- func (x *QueryAllServicesRequest) ProtoReflect() protoreflect.Message
- func (x *QueryAllServicesRequest) Reset()
- func (x *QueryAllServicesRequest) String() string
- type QueryAllServicesResponse
- func (*QueryAllServicesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAllServicesResponse) GetPagination() *v1beta1.PageResponse
- func (x *QueryAllServicesResponse) GetService() []*shared.Service
- func (*QueryAllServicesResponse) ProtoMessage()
- func (x *QueryAllServicesResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAllServicesResponse) Reset()
- func (x *QueryAllServicesResponse) String() string
- type QueryClient
- type QueryGetServiceRequest
- func (*QueryGetServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetServiceRequest) GetId() string
- func (*QueryGetServiceRequest) ProtoMessage()
- func (x *QueryGetServiceRequest) ProtoReflect() protoreflect.Message
- func (x *QueryGetServiceRequest) Reset()
- func (x *QueryGetServiceRequest) String() string
- type QueryGetServiceResponse
- func (*QueryGetServiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetServiceResponse) GetService() *shared.Service
- func (*QueryGetServiceResponse) ProtoMessage()
- func (x *QueryGetServiceResponse) ProtoReflect() protoreflect.Message
- func (x *QueryGetServiceResponse) Reset()
- func (x *QueryGetServiceResponse) String() string
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type Relay
- type RelayRequest
- func (*RelayRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RelayRequest) GetMeta() *RelayRequestMetadata
- func (x *RelayRequest) GetPayload() []byte
- func (*RelayRequest) ProtoMessage()
- func (x *RelayRequest) ProtoReflect() protoreflect.Message
- func (x *RelayRequest) Reset()
- func (x *RelayRequest) String() string
- type RelayRequestMetadata
- func (*RelayRequestMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *RelayRequestMetadata) GetSessionHeader() *session.SessionHeader
- func (x *RelayRequestMetadata) GetSignature() []byte
- func (x *RelayRequestMetadata) GetSupplierAddress() string
- func (*RelayRequestMetadata) ProtoMessage()
- func (x *RelayRequestMetadata) ProtoReflect() protoreflect.Message
- func (x *RelayRequestMetadata) Reset()
- func (x *RelayRequestMetadata) String() string
- type RelayResponse
- func (*RelayResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RelayResponse) GetMeta() *RelayResponseMetadata
- func (x *RelayResponse) GetPayload() []byte
- func (*RelayResponse) ProtoMessage()
- func (x *RelayResponse) ProtoReflect() protoreflect.Message
- func (x *RelayResponse) Reset()
- func (x *RelayResponse) String() string
- type RelayResponseMetadata
- func (*RelayResponseMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *RelayResponseMetadata) GetSessionHeader() *session.SessionHeader
- func (x *RelayResponseMetadata) GetSupplierSignature() []byte
- func (*RelayResponseMetadata) ProtoMessage()
- func (x *RelayResponseMetadata) ProtoReflect() protoreflect.Message
- func (x *RelayResponseMetadata) Reset()
- func (x *RelayResponseMetadata) String() string
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) AllServices(context.Context, *QueryAllServicesRequest) (*QueryAllServicesResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- func (UnimplementedQueryServer) Service(context.Context, *QueryGetServiceRequest) (*QueryGetServiceResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_Params_FullMethodName = "/poktroll.service.Query/Params" Query_Service_FullMethodName = "/poktroll.service.Query/Service" Query_AllServices_FullMethodName = "/poktroll.service.Query/AllServices" )
const ( Msg_UpdateParams_FullMethodName = "/poktroll.service.Msg/UpdateParams" Msg_AddService_FullMethodName = "/poktroll.service.Msg/AddService" )
Variables ¶
var File_poktroll_service_genesis_proto protoreflect.FileDescriptor
var File_poktroll_service_params_proto protoreflect.FileDescriptor
var File_poktroll_service_query_proto protoreflect.FileDescriptor
var File_poktroll_service_relay_proto protoreflect.FileDescriptor
var File_poktroll_service_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "poktroll.service.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, { MethodName: "AddService", Handler: _Msg_AddService_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "poktroll/service/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "poktroll.service.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "Service", Handler: _Query_Service_Handler, }, { MethodName: "AllServices", Handler: _Query_AllServices_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "poktroll/service/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶ added in v0.0.3
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶ added in v0.0.3
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` ServiceList []*shared.Service `protobuf:"bytes,2,rep,name=service_list,json=serviceList,proto3" json:"service_list,omitempty"` // contains filtered or unexported fields }
GenesisState defines the service module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetServiceList ¶
func (x *GenesisState) GetServiceList() []*shared.Service
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type MsgAddService ¶
type MsgAddService struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the service supplier using cosmos' ScalarDescriptor Service *shared.Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` // The Service for which the supplier is adding to the network // contains filtered or unexported fields }
MsgAddService defines a message for adding a new message to the network. Services can be added by any actor in the network making them truly permissionless. TODO_BETA: Add Champions / Sources once its fully defined.
func (*MsgAddService) Descriptor
deprecated
func (*MsgAddService) Descriptor() ([]byte, []int)
Deprecated: Use MsgAddService.ProtoReflect.Descriptor instead.
func (*MsgAddService) GetAddress ¶
func (x *MsgAddService) GetAddress() string
func (*MsgAddService) GetService ¶
func (x *MsgAddService) GetService() *shared.Service
func (*MsgAddService) ProtoMessage ¶
func (*MsgAddService) ProtoMessage()
func (*MsgAddService) ProtoReflect ¶
func (x *MsgAddService) ProtoReflect() protoreflect.Message
func (*MsgAddService) Reset ¶
func (x *MsgAddService) Reset()
func (*MsgAddService) String ¶
func (x *MsgAddService) String() string
type MsgAddServiceResponse ¶
type MsgAddServiceResponse struct {
// contains filtered or unexported fields
}
func (*MsgAddServiceResponse) Descriptor
deprecated
func (*MsgAddServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgAddServiceResponse.ProtoReflect.Descriptor instead.
func (*MsgAddServiceResponse) ProtoMessage ¶
func (*MsgAddServiceResponse) ProtoMessage()
func (*MsgAddServiceResponse) ProtoReflect ¶
func (x *MsgAddServiceResponse) ProtoReflect() protoreflect.Message
func (*MsgAddServiceResponse) Reset ¶
func (x *MsgAddServiceResponse) Reset()
func (*MsgAddServiceResponse) String ¶
func (x *MsgAddServiceResponse) String() string
type MsgClient ¶ added in v0.0.3
type MsgClient interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) AddService(ctx context.Context, in *MsgAddService, opts ...grpc.CallOption) (*MsgAddServiceResponse, error) }
MsgClient is the client API for Msg 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.
Msg defines the Msg service.
func NewMsgClient ¶ added in v0.0.3
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgServer ¶ added in v0.0.3
type MsgServer interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) AddService(context.Context, *MsgAddService) (*MsgAddServiceResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
Msg defines the Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/service parameters to update. // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type Params ¶
type Params struct { // The amount of uPOKT required to add a new service. // This will be deducted from the signer's account balance, // and transferred to the pocket network foundation. AddServiceFee uint64 `protobuf:"varint,1,opt,name=add_service_fee,json=addServiceFee,proto3" json:"add_service_fee,omitempty"` // contains filtered or unexported fields }
Params defines the parameters for the module.
func (*Params) Descriptor
deprecated
func (*Params) GetAddServiceFee ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryAllServicesRequest ¶
type QueryAllServicesRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*QueryAllServicesRequest) Descriptor
deprecated
func (*QueryAllServicesRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllServicesRequest.ProtoReflect.Descriptor instead.
func (*QueryAllServicesRequest) GetPagination ¶
func (x *QueryAllServicesRequest) GetPagination() *v1beta1.PageRequest
func (*QueryAllServicesRequest) ProtoMessage ¶
func (*QueryAllServicesRequest) ProtoMessage()
func (*QueryAllServicesRequest) ProtoReflect ¶
func (x *QueryAllServicesRequest) ProtoReflect() protoreflect.Message
func (*QueryAllServicesRequest) Reset ¶
func (x *QueryAllServicesRequest) Reset()
func (*QueryAllServicesRequest) String ¶
func (x *QueryAllServicesRequest) String() string
type QueryAllServicesResponse ¶
type QueryAllServicesResponse struct { Service []*shared.Service `protobuf:"bytes,1,rep,name=service,proto3" json:"service,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*QueryAllServicesResponse) Descriptor
deprecated
func (*QueryAllServicesResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryAllServicesResponse.ProtoReflect.Descriptor instead.
func (*QueryAllServicesResponse) GetPagination ¶
func (x *QueryAllServicesResponse) GetPagination() *v1beta1.PageResponse
func (*QueryAllServicesResponse) GetService ¶
func (x *QueryAllServicesResponse) GetService() []*shared.Service
func (*QueryAllServicesResponse) ProtoMessage ¶
func (*QueryAllServicesResponse) ProtoMessage()
func (*QueryAllServicesResponse) ProtoReflect ¶
func (x *QueryAllServicesResponse) ProtoReflect() protoreflect.Message
func (*QueryAllServicesResponse) Reset ¶
func (x *QueryAllServicesResponse) Reset()
func (*QueryAllServicesResponse) String ¶
func (x *QueryAllServicesResponse) String() string
type QueryClient ¶ added in v0.0.3
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of Service items. Service(ctx context.Context, in *QueryGetServiceRequest, opts ...grpc.CallOption) (*QueryGetServiceResponse, error) AllServices(ctx context.Context, in *QueryAllServicesRequest, opts ...grpc.CallOption) (*QueryAllServicesResponse, error) }
QueryClient is the client API for Query 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.
Query defines the gRPC querier service.
func NewQueryClient ¶ added in v0.0.3
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryGetServiceRequest ¶
type QueryGetServiceRequest struct { // TODO_IMPROVE: We could support getting services by name. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*QueryGetServiceRequest) Descriptor
deprecated
func (*QueryGetServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetServiceRequest.ProtoReflect.Descriptor instead.
func (*QueryGetServiceRequest) GetId ¶
func (x *QueryGetServiceRequest) GetId() string
func (*QueryGetServiceRequest) ProtoMessage ¶
func (*QueryGetServiceRequest) ProtoMessage()
func (*QueryGetServiceRequest) ProtoReflect ¶
func (x *QueryGetServiceRequest) ProtoReflect() protoreflect.Message
func (*QueryGetServiceRequest) Reset ¶
func (x *QueryGetServiceRequest) Reset()
func (*QueryGetServiceRequest) String ¶
func (x *QueryGetServiceRequest) String() string
type QueryGetServiceResponse ¶
type QueryGetServiceResponse struct { Service *shared.Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
func (*QueryGetServiceResponse) Descriptor
deprecated
func (*QueryGetServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetServiceResponse.ProtoReflect.Descriptor instead.
func (*QueryGetServiceResponse) GetService ¶
func (x *QueryGetServiceResponse) GetService() *shared.Service
func (*QueryGetServiceResponse) ProtoMessage ¶
func (*QueryGetServiceResponse) ProtoMessage()
func (*QueryGetServiceResponse) ProtoReflect ¶
func (x *QueryGetServiceResponse) ProtoReflect() protoreflect.Message
func (*QueryGetServiceResponse) Reset ¶
func (x *QueryGetServiceResponse) Reset()
func (*QueryGetServiceResponse) String ¶
func (x *QueryGetServiceResponse) String() string
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
type QueryServer ¶ added in v0.0.3
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of Service items. Service(context.Context, *QueryGetServiceRequest) (*QueryGetServiceResponse, error) AllServices(context.Context, *QueryAllServicesRequest) (*QueryAllServicesResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
Query defines the gRPC querier service.
type Relay ¶
type Relay struct { Req *RelayRequest `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"` Res *RelayResponse `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"` // contains filtered or unexported fields }
Relay contains both the RelayRequest (signed by the Application) and the RelayResponse (signed by the Supplier). The serialized tuple is inserted into the SMST leaves as values in the Claim/Proof lifecycle.
func (*Relay) Descriptor
deprecated
func (*Relay) GetReq ¶
func (x *Relay) GetReq() *RelayRequest
func (*Relay) GetRes ¶
func (x *Relay) GetRes() *RelayResponse
func (*Relay) ProtoMessage ¶
func (*Relay) ProtoMessage()
func (*Relay) ProtoReflect ¶
func (x *Relay) ProtoReflect() protoreflect.Message
type RelayRequest ¶
type RelayRequest struct { Meta *RelayRequestMetadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // payload is the serialized payload for the request. // The payload is passed directly to the service and as such can be any // format that the service supports: JSON-RPC, REST, gRPC, etc. Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
RelayRequest holds the request details for a relay.
func (*RelayRequest) Descriptor
deprecated
func (*RelayRequest) Descriptor() ([]byte, []int)
Deprecated: Use RelayRequest.ProtoReflect.Descriptor instead.
func (*RelayRequest) GetMeta ¶
func (x *RelayRequest) GetMeta() *RelayRequestMetadata
func (*RelayRequest) GetPayload ¶
func (x *RelayRequest) GetPayload() []byte
func (*RelayRequest) ProtoMessage ¶
func (*RelayRequest) ProtoMessage()
func (*RelayRequest) ProtoReflect ¶
func (x *RelayRequest) ProtoReflect() protoreflect.Message
func (*RelayRequest) Reset ¶
func (x *RelayRequest) Reset()
func (*RelayRequest) String ¶
func (x *RelayRequest) String() string
type RelayRequestMetadata ¶
type RelayRequestMetadata struct { SessionHeader *session.SessionHeader `protobuf:"bytes,1,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"` // Session header associated with the relay. // The request signature is a serialized ring signature that may have been // by either the application itself or one of the gateways that the // application has delegated to. The signature is made using the ring of the // application in both cases. Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // TODO_MAINNET: make sure we're checking/verifying this address on-chain (if needed). // Relevant conversation: https://github.com/pokt-network/poktroll/pull/567#discussion_r1628722168 // // The supplier address the relay is sent to. It is being used on the RelayMiner to // route to the correct supplier. SupplierAddress string `protobuf:"bytes,3,opt,name=supplier_address,json=supplierAddress,proto3" json:"supplier_address,omitempty"` // The Bech32 address of the application, using cosmos' ScalarDescriptor to ensure deterministic encoding // contains filtered or unexported fields }
RelayRequestMetadata contains the metadata for a RelayRequest.
func (*RelayRequestMetadata) Descriptor
deprecated
func (*RelayRequestMetadata) Descriptor() ([]byte, []int)
Deprecated: Use RelayRequestMetadata.ProtoReflect.Descriptor instead.
func (*RelayRequestMetadata) GetSessionHeader ¶
func (x *RelayRequestMetadata) GetSessionHeader() *session.SessionHeader
func (*RelayRequestMetadata) GetSignature ¶
func (x *RelayRequestMetadata) GetSignature() []byte
func (*RelayRequestMetadata) GetSupplierAddress ¶ added in v0.0.3
func (x *RelayRequestMetadata) GetSupplierAddress() string
func (*RelayRequestMetadata) ProtoMessage ¶
func (*RelayRequestMetadata) ProtoMessage()
func (*RelayRequestMetadata) ProtoReflect ¶
func (x *RelayRequestMetadata) ProtoReflect() protoreflect.Message
func (*RelayRequestMetadata) Reset ¶
func (x *RelayRequestMetadata) Reset()
func (*RelayRequestMetadata) String ¶
func (x *RelayRequestMetadata) String() string
type RelayResponse ¶
type RelayResponse struct { Meta *RelayResponseMetadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` // payload is the serialized payload for the response. // The payload is passed directly from the service and as such can be any // format the the service responds with: JSON-RPC, REST, gRPC, etc. Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
RelayResponse contains the response details for a RelayRequest.
func (*RelayResponse) Descriptor
deprecated
func (*RelayResponse) Descriptor() ([]byte, []int)
Deprecated: Use RelayResponse.ProtoReflect.Descriptor instead.
func (*RelayResponse) GetMeta ¶
func (x *RelayResponse) GetMeta() *RelayResponseMetadata
func (*RelayResponse) GetPayload ¶
func (x *RelayResponse) GetPayload() []byte
func (*RelayResponse) ProtoMessage ¶
func (*RelayResponse) ProtoMessage()
func (*RelayResponse) ProtoReflect ¶
func (x *RelayResponse) ProtoReflect() protoreflect.Message
func (*RelayResponse) Reset ¶
func (x *RelayResponse) Reset()
func (*RelayResponse) String ¶
func (x *RelayResponse) String() string
type RelayResponseMetadata ¶
type RelayResponseMetadata struct { SessionHeader *session.SessionHeader `protobuf:"bytes,1,opt,name=session_header,json=sessionHeader,proto3" json:"session_header,omitempty"` // Session header associated with the relay. SupplierSignature []byte `protobuf:"bytes,2,opt,name=supplier_signature,json=supplierSignature,proto3" json:"supplier_signature,omitempty"` // Signature of the supplier on the response. // contains filtered or unexported fields }
RelayResponseMetadata contains the metadata for a RelayResponse.
func (*RelayResponseMetadata) Descriptor
deprecated
func (*RelayResponseMetadata) Descriptor() ([]byte, []int)
Deprecated: Use RelayResponseMetadata.ProtoReflect.Descriptor instead.
func (*RelayResponseMetadata) GetSessionHeader ¶
func (x *RelayResponseMetadata) GetSessionHeader() *session.SessionHeader
func (*RelayResponseMetadata) GetSupplierSignature ¶
func (x *RelayResponseMetadata) GetSupplierSignature() []byte
func (*RelayResponseMetadata) ProtoMessage ¶
func (*RelayResponseMetadata) ProtoMessage()
func (*RelayResponseMetadata) ProtoReflect ¶
func (x *RelayResponseMetadata) ProtoReflect() protoreflect.Message
func (*RelayResponseMetadata) Reset ¶
func (x *RelayResponseMetadata) Reset()
func (*RelayResponseMetadata) String ¶
func (x *RelayResponseMetadata) String() string
type UnimplementedMsgServer ¶ added in v0.0.3
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) AddService ¶ added in v0.0.3
func (UnimplementedMsgServer) AddService(context.Context, *MsgAddService) (*MsgAddServiceResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶ added in v0.0.3
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶ added in v0.0.3
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) AllServices ¶ added in v0.0.3
func (UnimplementedQueryServer) AllServices(context.Context, *QueryAllServicesRequest) (*QueryAllServicesResponse, error)
func (UnimplementedQueryServer) Params ¶ added in v0.0.3
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
func (UnimplementedQueryServer) Service ¶ added in v0.0.3
func (UnimplementedQueryServer) Service(context.Context, *QueryGetServiceRequest) (*QueryGetServiceResponse, error)
type UnsafeMsgServer ¶ added in v0.0.3
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶ added in v0.0.3
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.