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
- 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 QueryClient
- type QueryGetSessionRequest
- func (*QueryGetSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetSessionRequest) GetApplicationAddress() string
- func (x *QueryGetSessionRequest) GetBlockHeight() int64
- func (x *QueryGetSessionRequest) GetService() *shared.Service
- func (*QueryGetSessionRequest) ProtoMessage()
- func (x *QueryGetSessionRequest) ProtoReflect() protoreflect.Message
- func (x *QueryGetSessionRequest) Reset()
- func (x *QueryGetSessionRequest) String() string
- type QueryGetSessionResponse
- func (*QueryGetSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGetSessionResponse) GetSession() *Session
- func (*QueryGetSessionResponse) ProtoMessage()
- func (x *QueryGetSessionResponse) ProtoReflect() protoreflect.Message
- func (x *QueryGetSessionResponse) Reset()
- func (x *QueryGetSessionResponse) 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 Session
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetApplication() *application.Application
- func (x *Session) GetHeader() *SessionHeader
- func (x *Session) GetNumBlocksPerSession() int64
- func (x *Session) GetSessionId() string
- func (x *Session) GetSessionNumber() int64
- func (x *Session) GetSuppliers() []*shared.Supplier
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) Reset()
- func (x *Session) String() string
- type SessionHeader
- func (*SessionHeader) Descriptor() ([]byte, []int)deprecated
- func (x *SessionHeader) GetApplicationAddress() string
- func (x *SessionHeader) GetService() *shared.Service
- func (x *SessionHeader) GetSessionEndBlockHeight() int64
- func (x *SessionHeader) GetSessionId() string
- func (x *SessionHeader) GetSessionStartBlockHeight() int64
- func (*SessionHeader) ProtoMessage()
- func (x *SessionHeader) ProtoReflect() protoreflect.Message
- func (x *SessionHeader) Reset()
- func (x *SessionHeader) String() string
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_Params_FullMethodName = "/poktroll.session.Query/Params" Query_GetSession_FullMethodName = "/poktroll.session.Query/GetSession" )
const (
Msg_UpdateParams_FullMethodName = "/poktroll.session.Msg/UpdateParams"
)
Variables ¶
var File_poktroll_session_genesis_proto protoreflect.FileDescriptor
var File_poktroll_session_params_proto protoreflect.FileDescriptor
var File_poktroll_session_query_proto protoreflect.FileDescriptor
var File_poktroll_session_session_proto protoreflect.FileDescriptor
var File_poktroll_session_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "poktroll.session.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "poktroll/session/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.session.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "GetSession", Handler: _Query_GetSession_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "poktroll/session/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"` // contains filtered or unexported fields }
GenesisState defines the session 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) 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 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) }
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) // 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/session 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 {
// contains filtered or unexported fields
}
Params defines the parameters for the module.
func (*Params) Descriptor
deprecated
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
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 the session given app_address, service and block_height. GetSession(ctx context.Context, in *QueryGetSessionRequest, opts ...grpc.CallOption) (*QueryGetSessionResponse, 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 QueryGetSessionRequest ¶
type QueryGetSessionRequest struct { ApplicationAddress string `protobuf:"bytes,1,opt,name=application_address,json=applicationAddress,proto3" json:"application_address,omitempty"` // The Bech32 address of the application using cosmos' ScalarDescriptor to ensure deterministic encoding Service *shared.Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` // The service to query the session for BlockHeight int64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // The block height to query the session for // contains filtered or unexported fields }
func (*QueryGetSessionRequest) Descriptor
deprecated
func (*QueryGetSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetSessionRequest.ProtoReflect.Descriptor instead.
func (*QueryGetSessionRequest) GetApplicationAddress ¶
func (x *QueryGetSessionRequest) GetApplicationAddress() string
func (*QueryGetSessionRequest) GetBlockHeight ¶
func (x *QueryGetSessionRequest) GetBlockHeight() int64
func (*QueryGetSessionRequest) GetService ¶
func (x *QueryGetSessionRequest) GetService() *shared.Service
func (*QueryGetSessionRequest) ProtoMessage ¶
func (*QueryGetSessionRequest) ProtoMessage()
func (*QueryGetSessionRequest) ProtoReflect ¶
func (x *QueryGetSessionRequest) ProtoReflect() protoreflect.Message
func (*QueryGetSessionRequest) Reset ¶
func (x *QueryGetSessionRequest) Reset()
func (*QueryGetSessionRequest) String ¶
func (x *QueryGetSessionRequest) String() string
type QueryGetSessionResponse ¶
type QueryGetSessionResponse struct { Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"` // contains filtered or unexported fields }
func (*QueryGetSessionResponse) Descriptor
deprecated
func (*QueryGetSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryGetSessionResponse.ProtoReflect.Descriptor instead.
func (*QueryGetSessionResponse) GetSession ¶
func (x *QueryGetSessionResponse) GetSession() *Session
func (*QueryGetSessionResponse) ProtoMessage ¶
func (*QueryGetSessionResponse) ProtoMessage()
func (*QueryGetSessionResponse) ProtoReflect ¶
func (x *QueryGetSessionResponse) ProtoReflect() protoreflect.Message
func (*QueryGetSessionResponse) Reset ¶
func (x *QueryGetSessionResponse) Reset()
func (*QueryGetSessionResponse) String ¶
func (x *QueryGetSessionResponse) 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 the session given app_address, service and block_height. GetSession(context.Context, *QueryGetSessionRequest) (*QueryGetSessionResponse, 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 Session ¶
type Session struct { Header *SessionHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // The header of the session containing lightweight data SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // A unique pseudoranom ID for this session SessionNumber int64 `protobuf:"varint,3,opt,name=session_number,json=sessionNumber,proto3" json:"session_number,omitempty"` // The session number since genesis NumBlocksPerSession int64 `protobuf:"varint,4,opt,name=num_blocks_per_session,json=numBlocksPerSession,proto3" json:"num_blocks_per_session,omitempty"` // The number of blocks per session when this session started Application *application.Application `protobuf:"bytes,5,opt,name=application,proto3" json:"application,omitempty"` // A fully hydrated application object this session is for Suppliers []*shared.Supplier `protobuf:"bytes,6,rep,name=suppliers,proto3" json:"suppliers,omitempty"` // A fully hydrated set of servicers that are serving the application // contains filtered or unexported fields }
Session is a fully hydrated session object that contains all the information for the Session and its parcipants.
func (*Session) Descriptor
deprecated
func (*Session) GetApplication ¶
func (x *Session) GetApplication() *application.Application
func (*Session) GetHeader ¶
func (x *Session) GetHeader() *SessionHeader
func (*Session) GetNumBlocksPerSession ¶
func (*Session) GetSessionId ¶
func (*Session) GetSessionNumber ¶
func (*Session) GetSuppliers ¶
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
type SessionHeader ¶
type SessionHeader struct { ApplicationAddress string `protobuf:"bytes,1,opt,name=application_address,json=applicationAddress,proto3" json:"application_address,omitempty"` // The Bech32 address of the application using cosmos' ScalarDescriptor to ensure deterministic encoding Service *shared.Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` // The service this session is for // NOTE: session_id can be derived from the above values using on-chain but is included in the header for convenience SessionId string `protobuf:"bytes,3,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // A unique pseudoranom ID for this session SessionStartBlockHeight int64 `` // The height at which this session started /* 135-byte string literal not displayed */ // Note that`session_end_block_height` is a derivative of (`start` + `num_blocks_per_session`) // as goverened by on-chain params at the time of the session start. // It is stored as an additional field to simplofy business logic in case // the number of blocks_per_session changes during the session. SessionEndBlockHeight int64 `` // The height at which this session ended, this is the last block of the session /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
SessionHeader is a lightweight header for a session that can be passed around. It is the minimal amount of data required to hydrate & retrieve all data relevant to the session.
func (*SessionHeader) Descriptor
deprecated
func (*SessionHeader) Descriptor() ([]byte, []int)
Deprecated: Use SessionHeader.ProtoReflect.Descriptor instead.
func (*SessionHeader) GetApplicationAddress ¶
func (x *SessionHeader) GetApplicationAddress() string
func (*SessionHeader) GetService ¶
func (x *SessionHeader) GetService() *shared.Service
func (*SessionHeader) GetSessionEndBlockHeight ¶
func (x *SessionHeader) GetSessionEndBlockHeight() int64
func (*SessionHeader) GetSessionId ¶
func (x *SessionHeader) GetSessionId() string
func (*SessionHeader) GetSessionStartBlockHeight ¶
func (x *SessionHeader) GetSessionStartBlockHeight() int64
func (*SessionHeader) ProtoMessage ¶
func (*SessionHeader) ProtoMessage()
func (*SessionHeader) ProtoReflect ¶
func (x *SessionHeader) ProtoReflect() protoreflect.Message
func (*SessionHeader) Reset ¶
func (x *SessionHeader) Reset()
func (*SessionHeader) String ¶
func (x *SessionHeader) String() string
type UnimplementedMsgServer ¶ added in v0.0.3
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
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) GetSession ¶ added in v0.0.3
func (UnimplementedQueryServer) GetSession(context.Context, *QueryGetSessionRequest) (*QueryGetSessionResponse, error)
func (UnimplementedQueryServer) Params ¶ added in v0.0.3
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, 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.