service

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 16 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

This section is empty.

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

Functions

This section is empty.

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_DOCUMENT(@h5law): This is a key function in making services permissionless, document it's usage and design - in docusaurus covering how the entire process works.

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetAddServiceFee

func (x *Params) GetAddServiceFee() uint64

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 QueryGetServiceRequest

type QueryGetServiceRequest struct {

	// TODO: 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 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"`
	// 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) 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

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