service

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 21 Imported by: 0

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

View Source
const (
	Query_Params_FullMethodName      = "/poktroll.service.Query/Params"
	Query_Service_FullMethodName     = "/poktroll.service.Query/Service"
	Query_AllServices_FullMethodName = "/poktroll.service.Query/AllServices"
)
View Source
const (
	Msg_UpdateParams_FullMethodName = "/poktroll.service.Msg/UpdateParams"
	Msg_UpdateParam_FullMethodName  = "/poktroll.service.Msg/UpdateParam"
	Msg_AddService_FullMethodName   = "/poktroll.service.Msg/AddService"
)

Variables

View Source
var File_poktroll_service_genesis_proto protoreflect.FileDescriptor
View Source
var File_poktroll_service_params_proto protoreflect.FileDescriptor
View Source
var File_poktroll_service_query_proto protoreflect.FileDescriptor
View Source
var File_poktroll_service_relay_proto protoreflect.FileDescriptor
View Source
var File_poktroll_service_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "poktroll.service.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "UpdateParam",
			Handler:    _Msg_UpdateParam_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)

View Source
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 {
	OwnerAddress string          `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // The Bech32 address of the service owner.
	Service      *shared.Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`                               // The Service being added 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) GetOwnerAddress added in v0.0.5

func (x *MsgAddService) GetOwnerAddress() 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)
	UpdateParam(ctx context.Context, in *MsgUpdateParam, opts ...grpc.CallOption) (*MsgUpdateParamResponse, 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)
	UpdateParam(context.Context, *MsgUpdateParam) (*MsgUpdateParamResponse, 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 MsgUpdateParam added in v0.0.8

type MsgUpdateParam 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"`
	// The (name, as_type) tuple must match the corresponding name and type as
	// specified in the `Params` message in `proof/params.proto.`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are assignable to AsType:
	//
	//	*MsgUpdateParam_AsCoin
	AsType isMsgUpdateParam_AsType `protobuf_oneof:"as_type"`
	// contains filtered or unexported fields
}

MsgUpdateParam is the Msg/UpdateParam request type to update a single param.

func (*MsgUpdateParam) Descriptor deprecated added in v0.0.8

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

Deprecated: Use MsgUpdateParam.ProtoReflect.Descriptor instead.

func (*MsgUpdateParam) GetAsCoin added in v0.0.8

func (x *MsgUpdateParam) GetAsCoin() *v1beta1.Coin

func (*MsgUpdateParam) GetAsType added in v0.0.8

func (x *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType

func (*MsgUpdateParam) GetAuthority added in v0.0.8

func (x *MsgUpdateParam) GetAuthority() string

func (*MsgUpdateParam) GetName added in v0.0.8

func (x *MsgUpdateParam) GetName() string

func (*MsgUpdateParam) ProtoMessage added in v0.0.8

func (*MsgUpdateParam) ProtoMessage()

func (*MsgUpdateParam) ProtoReflect added in v0.0.8

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

func (*MsgUpdateParam) Reset added in v0.0.8

func (x *MsgUpdateParam) Reset()

func (*MsgUpdateParam) String added in v0.0.8

func (x *MsgUpdateParam) String() string

type MsgUpdateParamResponse added in v0.0.8

type MsgUpdateParamResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParamResponse defines the response structure for executing a MsgUpdateParam message after a single param update.

func (*MsgUpdateParamResponse) Descriptor deprecated added in v0.0.8

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

Deprecated: Use MsgUpdateParamResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamResponse) GetParams added in v0.0.8

func (x *MsgUpdateParamResponse) GetParams() *Params

func (*MsgUpdateParamResponse) ProtoMessage added in v0.0.8

func (*MsgUpdateParamResponse) ProtoMessage()

func (*MsgUpdateParamResponse) ProtoReflect added in v0.0.8

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

func (*MsgUpdateParamResponse) Reset added in v0.0.8

func (x *MsgUpdateParamResponse) Reset()

func (*MsgUpdateParamResponse) String added in v0.0.8

func (x *MsgUpdateParamResponse) String() string

type MsgUpdateParam_AsCoin added in v0.0.8

type MsgUpdateParam_AsCoin struct {
	AsCoin *v1beta1.Coin `protobuf:"bytes,9,opt,name=as_coin,json=asCoin,proto3,oneof"`
}

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 *v1beta1.Coin `protobuf:"bytes,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) Descriptor() ([]byte, []int)

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetAddServiceFee

func (x *Params) GetAddServiceFee() *v1beta1.Coin

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

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

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

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

Deprecated: Use Relay.ProtoReflect.Descriptor instead.

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

func (*Relay) Reset

func (x *Relay) Reset()

func (*Relay) String

func (x *Relay) String() string

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 operator address the relay is sent to. It is being used on the
	// RelayMiner to route to the correct supplier.
	SupplierOperatorAddress string `` // The Bech32 address of the application.
	/* 132-byte string literal not displayed */
	// 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) GetSupplierOperatorAddress added in v0.0.6

func (x *RelayRequestMetadata) GetSupplierOperatorAddress() 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 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.
	SupplierOperatorSignature []byte                 ``                                                                                                     // Signature of the supplier's operator on the response.
	/* 138-byte string literal not displayed */
	// 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) GetSupplierOperatorSignature added in v0.0.6

func (x *RelayResponseMetadata) GetSupplierOperatorSignature() []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) UpdateParam added in v0.0.8

func (UnimplementedMsgServer) UpdateParams added in v0.0.3

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) Params added in v0.0.3

func (UnimplementedQueryServer) Service added in v0.0.3

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.

Directories

Path Synopsis
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

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