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 EventCreateGovernor
- func (*EventCreateGovernor) Descriptor() ([]byte, []int)deprecated
- func (x *EventCreateGovernor) GetAddress() string
- func (*EventCreateGovernor) ProtoMessage()
- func (x *EventCreateGovernor) ProtoReflect() protoreflect.Message
- func (x *EventCreateGovernor) Reset()
- func (x *EventCreateGovernor) String() string
- type EventRemoveGovernor
- func (*EventRemoveGovernor) Descriptor() ([]byte, []int)deprecated
- func (x *EventRemoveGovernor) GetAddress() string
- func (*EventRemoveGovernor) ProtoMessage()
- func (x *EventRemoveGovernor) ProtoReflect() protoreflect.Message
- func (x *EventRemoveGovernor) Reset()
- func (x *EventRemoveGovernor) String() string
- type EventUpdateGovernorMetadata
- func (*EventUpdateGovernorMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *EventUpdateGovernorMetadata) GetAddress() string
- func (*EventUpdateGovernorMetadata) ProtoMessage()
- func (x *EventUpdateGovernorMetadata) ProtoReflect() protoreflect.Message
- func (x *EventUpdateGovernorMetadata) Reset()
- func (x *EventUpdateGovernorMetadata) String() string
- type Governor
- type GovernorAddressIndexKey
- type GovernorIndexKey
- type GovernorIterator
- type GovernorPrimaryKey
- type GovernorTable
- type MsgClient
- type MsgCreateGovernor
- func (*MsgCreateGovernor) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateGovernor) GetAddress() string
- func (x *MsgCreateGovernor) GetMetadata() string
- func (*MsgCreateGovernor) ProtoMessage()
- func (x *MsgCreateGovernor) ProtoReflect() protoreflect.Message
- func (x *MsgCreateGovernor) Reset()
- func (x *MsgCreateGovernor) String() string
- type MsgCreateGovernorResponse
- func (*MsgCreateGovernorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateGovernorResponse) GetAddress() string
- func (*MsgCreateGovernorResponse) ProtoMessage()
- func (x *MsgCreateGovernorResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCreateGovernorResponse) Reset()
- func (x *MsgCreateGovernorResponse) String() string
- type MsgRemoveGovernor
- type MsgRemoveGovernorResponse
- func (*MsgRemoveGovernorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRemoveGovernorResponse) GetAddress() string
- func (*MsgRemoveGovernorResponse) ProtoMessage()
- func (x *MsgRemoveGovernorResponse) ProtoReflect() protoreflect.Message
- func (x *MsgRemoveGovernorResponse) Reset()
- func (x *MsgRemoveGovernorResponse) String() string
- type MsgServer
- type MsgUpdateGovernorMetadata
- func (*MsgUpdateGovernorMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateGovernorMetadata) GetAddress() string
- func (x *MsgUpdateGovernorMetadata) GetNewMetadata() string
- func (*MsgUpdateGovernorMetadata) ProtoMessage()
- func (x *MsgUpdateGovernorMetadata) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateGovernorMetadata) Reset()
- func (x *MsgUpdateGovernorMetadata) String() string
- type MsgUpdateGovernorMetadataResponse
- func (*MsgUpdateGovernorMetadataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateGovernorMetadataResponse) GetAddress() string
- func (*MsgUpdateGovernorMetadataResponse) ProtoMessage()
- func (x *MsgUpdateGovernorMetadataResponse) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateGovernorMetadataResponse) Reset()
- func (x *MsgUpdateGovernorMetadataResponse) String() string
- type QueryClient
- type QueryGovernorRequest
- func (*QueryGovernorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGovernorRequest) GetAddress() string
- func (*QueryGovernorRequest) ProtoMessage()
- func (x *QueryGovernorRequest) ProtoReflect() protoreflect.Message
- func (x *QueryGovernorRequest) Reset()
- func (x *QueryGovernorRequest) String() string
- type QueryGovernorResponse
- func (*QueryGovernorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGovernorResponse) GetAddress() string
- func (x *QueryGovernorResponse) GetMetadata() string
- func (*QueryGovernorResponse) ProtoMessage()
- func (x *QueryGovernorResponse) ProtoReflect() protoreflect.Message
- func (x *QueryGovernorResponse) Reset()
- func (x *QueryGovernorResponse) String() string
- type QueryGovernorsRequest
- func (*QueryGovernorsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGovernorsRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryGovernorsRequest) ProtoMessage()
- func (x *QueryGovernorsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryGovernorsRequest) Reset()
- func (x *QueryGovernorsRequest) String() string
- type QueryGovernorsResponse
- func (*QueryGovernorsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGovernorsResponse) GetGovernors() []*QueryGovernorsResponse_Governor
- func (x *QueryGovernorsResponse) GetPagination() *v1beta1.PageResponse
- func (*QueryGovernorsResponse) ProtoMessage()
- func (x *QueryGovernorsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryGovernorsResponse) Reset()
- func (x *QueryGovernorsResponse) String() string
- type QueryGovernorsResponse_Governor
- func (*QueryGovernorsResponse_Governor) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGovernorsResponse_Governor) GetAddress() string
- func (x *QueryGovernorsResponse_Governor) GetMetadata() string
- func (*QueryGovernorsResponse_Governor) ProtoMessage()
- func (x *QueryGovernorsResponse_Governor) ProtoReflect() protoreflect.Message
- func (x *QueryGovernorsResponse_Governor) Reset()
- func (x *QueryGovernorsResponse_Governor) String() string
- type QueryServer
- type StateStore
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) CreateGovernor(context.Context, *MsgCreateGovernor) (*MsgCreateGovernorResponse, error)
- func (UnimplementedMsgServer) RemoveGovernor(context.Context, *MsgRemoveGovernor) (*MsgRemoveGovernorResponse, error)
- func (UnimplementedMsgServer) UpdateGovernorMetadata(context.Context, *MsgUpdateGovernorMetadata) (*MsgUpdateGovernorMetadataResponse, error)
- type UnimplementedQueryServer
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Msg_CreateGovernor_FullMethodName = "/chora.governor.v1.Msg/CreateGovernor" Msg_RemoveGovernor_FullMethodName = "/chora.governor.v1.Msg/RemoveGovernor" Msg_UpdateGovernorMetadata_FullMethodName = "/chora.governor.v1.Msg/UpdateGovernorMetadata" )
const ( Query_Governor_FullMethodName = "/chora.governor.v1.Query/Governor" Query_Governors_FullMethodName = "/chora.governor.v1.Query/Governors" )
Variables ¶
var File_chora_governor_v1_doc_proto protoreflect.FileDescriptor
var File_chora_governor_v1_events_proto protoreflect.FileDescriptor
var File_chora_governor_v1_msg_proto protoreflect.FileDescriptor
var File_chora_governor_v1_query_proto protoreflect.FileDescriptor
var File_chora_governor_v1_state_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "chora.governor.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateGovernor", Handler: _Msg_CreateGovernor_Handler, }, { MethodName: "RemoveGovernor", Handler: _Msg_RemoveGovernor_Handler, }, { MethodName: "UpdateGovernorMetadata", Handler: _Msg_UpdateGovernorMetadata_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "chora/governor/v1/msg.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: "chora.governor.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Governor", Handler: _Query_Governor_Handler, }, { MethodName: "Governors", Handler: _Query_Governors_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "chora/governor/v1/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 ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type EventCreateGovernor ¶
type EventCreateGovernor struct { // address is the address of the governor. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
EventCreateGovernor is an event emitted when a governor has registered.
func (*EventCreateGovernor) Descriptor
deprecated
func (*EventCreateGovernor) Descriptor() ([]byte, []int)
Deprecated: Use EventCreateGovernor.ProtoReflect.Descriptor instead.
func (*EventCreateGovernor) GetAddress ¶
func (x *EventCreateGovernor) GetAddress() string
func (*EventCreateGovernor) ProtoMessage ¶
func (*EventCreateGovernor) ProtoMessage()
func (*EventCreateGovernor) ProtoReflect ¶
func (x *EventCreateGovernor) ProtoReflect() protoreflect.Message
func (*EventCreateGovernor) Reset ¶
func (x *EventCreateGovernor) Reset()
func (*EventCreateGovernor) String ¶
func (x *EventCreateGovernor) String() string
type EventRemoveGovernor ¶
type EventRemoveGovernor struct { // address is the address of the governor. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
EventRemoveGovernor is an event emitted when a governor has been removed.
func (*EventRemoveGovernor) Descriptor
deprecated
func (*EventRemoveGovernor) Descriptor() ([]byte, []int)
Deprecated: Use EventRemoveGovernor.ProtoReflect.Descriptor instead.
func (*EventRemoveGovernor) GetAddress ¶
func (x *EventRemoveGovernor) GetAddress() string
func (*EventRemoveGovernor) ProtoMessage ¶
func (*EventRemoveGovernor) ProtoMessage()
func (*EventRemoveGovernor) ProtoReflect ¶
func (x *EventRemoveGovernor) ProtoReflect() protoreflect.Message
func (*EventRemoveGovernor) Reset ¶
func (x *EventRemoveGovernor) Reset()
func (*EventRemoveGovernor) String ¶
func (x *EventRemoveGovernor) String() string
type EventUpdateGovernorMetadata ¶
type EventUpdateGovernorMetadata struct { // address is the address of the governor. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
EventUpdateGovernorMetadata is an event emitted when a governor has updated.
func (*EventUpdateGovernorMetadata) Descriptor
deprecated
func (*EventUpdateGovernorMetadata) Descriptor() ([]byte, []int)
Deprecated: Use EventUpdateGovernorMetadata.ProtoReflect.Descriptor instead.
func (*EventUpdateGovernorMetadata) GetAddress ¶
func (x *EventUpdateGovernorMetadata) GetAddress() string
func (*EventUpdateGovernorMetadata) ProtoMessage ¶
func (*EventUpdateGovernorMetadata) ProtoMessage()
func (*EventUpdateGovernorMetadata) ProtoReflect ¶
func (x *EventUpdateGovernorMetadata) ProtoReflect() protoreflect.Message
func (*EventUpdateGovernorMetadata) Reset ¶
func (x *EventUpdateGovernorMetadata) Reset()
func (*EventUpdateGovernorMetadata) String ¶
func (x *EventUpdateGovernorMetadata) String() string
type Governor ¶
type Governor struct { // address is the address of the governor. Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // metadata is the metadata of the governor. Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
Governor defines the table and properties of a governor.
func (*Governor) Descriptor
deprecated
func (*Governor) GetAddress ¶
func (*Governor) GetMetadata ¶
func (*Governor) ProtoMessage ¶
func (*Governor) ProtoMessage()
func (*Governor) ProtoReflect ¶
func (x *Governor) ProtoReflect() protoreflect.Message
type GovernorAddressIndexKey ¶
type GovernorAddressIndexKey struct {
// contains filtered or unexported fields
}
func (GovernorAddressIndexKey) WithAddress ¶
func (this GovernorAddressIndexKey) WithAddress(address []byte) GovernorAddressIndexKey
type GovernorIndexKey ¶
type GovernorIndexKey interface {
// contains filtered or unexported methods
}
type GovernorIterator ¶
func (GovernorIterator) Value ¶
func (i GovernorIterator) Value() (*Governor, error)
type GovernorPrimaryKey ¶
type GovernorPrimaryKey = GovernorAddressIndexKey
primary key starting index..
type GovernorTable ¶
type GovernorTable interface { Insert(ctx context.Context, governor *Governor) error Update(ctx context.Context, governor *Governor) error Save(ctx context.Context, governor *Governor) error Delete(ctx context.Context, governor *Governor) error Has(ctx context.Context, address []byte) (found bool, err error) // Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found. Get(ctx context.Context, address []byte) (*Governor, error) List(ctx context.Context, prefixKey GovernorIndexKey, opts ...ormlist.Option) (GovernorIterator, error) ListRange(ctx context.Context, from, to GovernorIndexKey, opts ...ormlist.Option) (GovernorIterator, error) DeleteBy(ctx context.Context, prefixKey GovernorIndexKey) error DeleteRange(ctx context.Context, from, to GovernorIndexKey) error // contains filtered or unexported methods }
func NewGovernorTable ¶
func NewGovernorTable(db ormtable.Schema) (GovernorTable, error)
type MsgClient ¶
type MsgClient interface { // CreateGovernor registers a governor. CreateGovernor(ctx context.Context, in *MsgCreateGovernor, opts ...grpc.CallOption) (*MsgCreateGovernorResponse, error) // RemoveGovernor removes a governor. RemoveGovernor(ctx context.Context, in *MsgRemoveGovernor, opts ...grpc.CallOption) (*MsgRemoveGovernorResponse, error) // UpdateGovernorMetadata updates a governor. UpdateGovernorMetadata(ctx context.Context, in *MsgUpdateGovernorMetadata, opts ...grpc.CallOption) (*MsgUpdateGovernorMetadataResponse, 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 is the Msg service.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgCreateGovernor ¶
type MsgCreateGovernor struct { // address is the address of the governor. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // metadata is the metadata of the governor. Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
MsgCreateGovernor is the Msg/CreateGovernor request type.
func (*MsgCreateGovernor) Descriptor
deprecated
func (*MsgCreateGovernor) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateGovernor.ProtoReflect.Descriptor instead.
func (*MsgCreateGovernor) GetAddress ¶
func (x *MsgCreateGovernor) GetAddress() string
func (*MsgCreateGovernor) GetMetadata ¶
func (x *MsgCreateGovernor) GetMetadata() string
func (*MsgCreateGovernor) ProtoMessage ¶
func (*MsgCreateGovernor) ProtoMessage()
func (*MsgCreateGovernor) ProtoReflect ¶
func (x *MsgCreateGovernor) ProtoReflect() protoreflect.Message
func (*MsgCreateGovernor) Reset ¶
func (x *MsgCreateGovernor) Reset()
func (*MsgCreateGovernor) String ¶
func (x *MsgCreateGovernor) String() string
type MsgCreateGovernorResponse ¶
type MsgCreateGovernorResponse struct { // address is the address of the governor. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
MsgCreateGovernorResponse is the Msg/CreateGovernor response type.
func (*MsgCreateGovernorResponse) Descriptor
deprecated
func (*MsgCreateGovernorResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateGovernorResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateGovernorResponse) GetAddress ¶
func (x *MsgCreateGovernorResponse) GetAddress() string
func (*MsgCreateGovernorResponse) ProtoMessage ¶
func (*MsgCreateGovernorResponse) ProtoMessage()
func (*MsgCreateGovernorResponse) ProtoReflect ¶
func (x *MsgCreateGovernorResponse) ProtoReflect() protoreflect.Message
func (*MsgCreateGovernorResponse) Reset ¶
func (x *MsgCreateGovernorResponse) Reset()
func (*MsgCreateGovernorResponse) String ¶
func (x *MsgCreateGovernorResponse) String() string
type MsgRemoveGovernor ¶
type MsgRemoveGovernor struct { // address is the address of the governor. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
MsgRemoveGovernor is the Msg/RemoveGovernor request type.
func (*MsgRemoveGovernor) Descriptor
deprecated
func (*MsgRemoveGovernor) Descriptor() ([]byte, []int)
Deprecated: Use MsgRemoveGovernor.ProtoReflect.Descriptor instead.
func (*MsgRemoveGovernor) GetAddress ¶
func (x *MsgRemoveGovernor) GetAddress() string
func (*MsgRemoveGovernor) ProtoMessage ¶
func (*MsgRemoveGovernor) ProtoMessage()
func (*MsgRemoveGovernor) ProtoReflect ¶
func (x *MsgRemoveGovernor) ProtoReflect() protoreflect.Message
func (*MsgRemoveGovernor) Reset ¶
func (x *MsgRemoveGovernor) Reset()
func (*MsgRemoveGovernor) String ¶
func (x *MsgRemoveGovernor) String() string
type MsgRemoveGovernorResponse ¶
type MsgRemoveGovernorResponse struct { // address is the address of the governor. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
MsgRemoveGovernorResponse is the Msg/RemoveGovernor response type.
func (*MsgRemoveGovernorResponse) Descriptor
deprecated
func (*MsgRemoveGovernorResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgRemoveGovernorResponse.ProtoReflect.Descriptor instead.
func (*MsgRemoveGovernorResponse) GetAddress ¶
func (x *MsgRemoveGovernorResponse) GetAddress() string
func (*MsgRemoveGovernorResponse) ProtoMessage ¶
func (*MsgRemoveGovernorResponse) ProtoMessage()
func (*MsgRemoveGovernorResponse) ProtoReflect ¶
func (x *MsgRemoveGovernorResponse) ProtoReflect() protoreflect.Message
func (*MsgRemoveGovernorResponse) Reset ¶
func (x *MsgRemoveGovernorResponse) Reset()
func (*MsgRemoveGovernorResponse) String ¶
func (x *MsgRemoveGovernorResponse) String() string
type MsgServer ¶
type MsgServer interface { // CreateGovernor registers a governor. CreateGovernor(context.Context, *MsgCreateGovernor) (*MsgCreateGovernorResponse, error) // RemoveGovernor removes a governor. RemoveGovernor(context.Context, *MsgRemoveGovernor) (*MsgRemoveGovernorResponse, error) // UpdateGovernorMetadata updates a governor. UpdateGovernorMetadata(context.Context, *MsgUpdateGovernorMetadata) (*MsgUpdateGovernorMetadataResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility.
Msg is the Msg service.
type MsgUpdateGovernorMetadata ¶
type MsgUpdateGovernorMetadata struct { // address is the address of the governor. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // new_metadata is the new metadata of the governor. NewMetadata string `protobuf:"bytes,2,opt,name=new_metadata,json=newMetadata,proto3" json:"new_metadata,omitempty"` // contains filtered or unexported fields }
MsgUpdateGovernorMetadata is the Msg/UpdateGovernorMetadata request type.
func (*MsgUpdateGovernorMetadata) Descriptor
deprecated
func (*MsgUpdateGovernorMetadata) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateGovernorMetadata.ProtoReflect.Descriptor instead.
func (*MsgUpdateGovernorMetadata) GetAddress ¶
func (x *MsgUpdateGovernorMetadata) GetAddress() string
func (*MsgUpdateGovernorMetadata) GetNewMetadata ¶
func (x *MsgUpdateGovernorMetadata) GetNewMetadata() string
func (*MsgUpdateGovernorMetadata) ProtoMessage ¶
func (*MsgUpdateGovernorMetadata) ProtoMessage()
func (*MsgUpdateGovernorMetadata) ProtoReflect ¶
func (x *MsgUpdateGovernorMetadata) ProtoReflect() protoreflect.Message
func (*MsgUpdateGovernorMetadata) Reset ¶
func (x *MsgUpdateGovernorMetadata) Reset()
func (*MsgUpdateGovernorMetadata) String ¶
func (x *MsgUpdateGovernorMetadata) String() string
type MsgUpdateGovernorMetadataResponse ¶
type MsgUpdateGovernorMetadataResponse struct { // address is the address of the governor. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
MsgUpdateGovernorMetadataResponse is the Msg/UpdateGovernorMetadata response type.
func (*MsgUpdateGovernorMetadataResponse) Descriptor
deprecated
func (*MsgUpdateGovernorMetadataResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateGovernorMetadataResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateGovernorMetadataResponse) GetAddress ¶
func (x *MsgUpdateGovernorMetadataResponse) GetAddress() string
func (*MsgUpdateGovernorMetadataResponse) ProtoMessage ¶
func (*MsgUpdateGovernorMetadataResponse) ProtoMessage()
func (*MsgUpdateGovernorMetadataResponse) ProtoReflect ¶
func (x *MsgUpdateGovernorMetadataResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateGovernorMetadataResponse) Reset ¶
func (x *MsgUpdateGovernorMetadataResponse) Reset()
func (*MsgUpdateGovernorMetadataResponse) String ¶
func (x *MsgUpdateGovernorMetadataResponse) String() string
type QueryClient ¶
type QueryClient interface { // Governor queries a governor by address. Governor(ctx context.Context, in *QueryGovernorRequest, opts ...grpc.CallOption) (*QueryGovernorResponse, error) // Governors queries all governors. Governors(ctx context.Context, in *QueryGovernorsRequest, opts ...grpc.CallOption) (*QueryGovernorsResponse, 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 is the Query service.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryGovernorRequest ¶
type QueryGovernorRequest struct { // address is the address of the governor. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
QueryGovernorRequest is the Query/Governor request type.
func (*QueryGovernorRequest) Descriptor
deprecated
func (*QueryGovernorRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryGovernorRequest.ProtoReflect.Descriptor instead.
func (*QueryGovernorRequest) GetAddress ¶
func (x *QueryGovernorRequest) GetAddress() string
func (*QueryGovernorRequest) ProtoMessage ¶
func (*QueryGovernorRequest) ProtoMessage()
func (*QueryGovernorRequest) ProtoReflect ¶
func (x *QueryGovernorRequest) ProtoReflect() protoreflect.Message
func (*QueryGovernorRequest) Reset ¶
func (x *QueryGovernorRequest) Reset()
func (*QueryGovernorRequest) String ¶
func (x *QueryGovernorRequest) String() string
type QueryGovernorResponse ¶
type QueryGovernorResponse struct { // address is the address of the governor. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // metadata is the metadata of the governor. Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
QueryGovernorResponse is the Query/Governor response type.
func (*QueryGovernorResponse) Descriptor
deprecated
func (*QueryGovernorResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryGovernorResponse.ProtoReflect.Descriptor instead.
func (*QueryGovernorResponse) GetAddress ¶
func (x *QueryGovernorResponse) GetAddress() string
func (*QueryGovernorResponse) GetMetadata ¶
func (x *QueryGovernorResponse) GetMetadata() string
func (*QueryGovernorResponse) ProtoMessage ¶
func (*QueryGovernorResponse) ProtoMessage()
func (*QueryGovernorResponse) ProtoReflect ¶
func (x *QueryGovernorResponse) ProtoReflect() protoreflect.Message
func (*QueryGovernorResponse) Reset ¶
func (x *QueryGovernorResponse) Reset()
func (*QueryGovernorResponse) String ¶
func (x *QueryGovernorResponse) String() string
type QueryGovernorsRequest ¶
type QueryGovernorsRequest struct { // pagination is the optional pagination of the request. Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryGovernorsRequest is the Query/Governors request type.
func (*QueryGovernorsRequest) Descriptor
deprecated
func (*QueryGovernorsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryGovernorsRequest.ProtoReflect.Descriptor instead.
func (*QueryGovernorsRequest) GetPagination ¶
func (x *QueryGovernorsRequest) GetPagination() *v1beta1.PageRequest
func (*QueryGovernorsRequest) ProtoMessage ¶
func (*QueryGovernorsRequest) ProtoMessage()
func (*QueryGovernorsRequest) ProtoReflect ¶
func (x *QueryGovernorsRequest) ProtoReflect() protoreflect.Message
func (*QueryGovernorsRequest) Reset ¶
func (x *QueryGovernorsRequest) Reset()
func (*QueryGovernorsRequest) String ¶
func (x *QueryGovernorsRequest) String() string
type QueryGovernorsResponse ¶
type QueryGovernorsResponse struct { // governors is the list of governors. Governors []*QueryGovernorsResponse_Governor `protobuf:"bytes,1,rep,name=governors,proto3" json:"governors,omitempty"` // pagination is the pagination of the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryGovernorsResponse is the Query/Governors response type.
func (*QueryGovernorsResponse) Descriptor
deprecated
func (*QueryGovernorsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryGovernorsResponse.ProtoReflect.Descriptor instead.
func (*QueryGovernorsResponse) GetGovernors ¶
func (x *QueryGovernorsResponse) GetGovernors() []*QueryGovernorsResponse_Governor
func (*QueryGovernorsResponse) GetPagination ¶
func (x *QueryGovernorsResponse) GetPagination() *v1beta1.PageResponse
func (*QueryGovernorsResponse) ProtoMessage ¶
func (*QueryGovernorsResponse) ProtoMessage()
func (*QueryGovernorsResponse) ProtoReflect ¶
func (x *QueryGovernorsResponse) ProtoReflect() protoreflect.Message
func (*QueryGovernorsResponse) Reset ¶
func (x *QueryGovernorsResponse) Reset()
func (*QueryGovernorsResponse) String ¶
func (x *QueryGovernorsResponse) String() string
type QueryGovernorsResponse_Governor ¶
type QueryGovernorsResponse_Governor struct { // address is the address of the governor. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // metadata is the metadata of the governor. Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
Governor is the governor properties.
func (*QueryGovernorsResponse_Governor) Descriptor
deprecated
func (*QueryGovernorsResponse_Governor) Descriptor() ([]byte, []int)
Deprecated: Use QueryGovernorsResponse_Governor.ProtoReflect.Descriptor instead.
func (*QueryGovernorsResponse_Governor) GetAddress ¶
func (x *QueryGovernorsResponse_Governor) GetAddress() string
func (*QueryGovernorsResponse_Governor) GetMetadata ¶
func (x *QueryGovernorsResponse_Governor) GetMetadata() string
func (*QueryGovernorsResponse_Governor) ProtoMessage ¶
func (*QueryGovernorsResponse_Governor) ProtoMessage()
func (*QueryGovernorsResponse_Governor) ProtoReflect ¶
func (x *QueryGovernorsResponse_Governor) ProtoReflect() protoreflect.Message
func (*QueryGovernorsResponse_Governor) Reset ¶
func (x *QueryGovernorsResponse_Governor) Reset()
func (*QueryGovernorsResponse_Governor) String ¶
func (x *QueryGovernorsResponse_Governor) String() string
type QueryServer ¶
type QueryServer interface { // Governor queries a governor by address. Governor(context.Context, *QueryGovernorRequest) (*QueryGovernorResponse, error) // Governors queries all governors. Governors(context.Context, *QueryGovernorsRequest) (*QueryGovernorsResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility.
Query is the Query service.
type StateStore ¶
type StateStore interface { GovernorTable() GovernorTable // contains filtered or unexported methods }
func NewStateStore ¶
func NewStateStore(db ormtable.Schema) (StateStore, error)
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct{}
UnimplementedMsgServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedMsgServer) CreateGovernor ¶
func (UnimplementedMsgServer) CreateGovernor(context.Context, *MsgCreateGovernor) (*MsgCreateGovernorResponse, error)
func (UnimplementedMsgServer) RemoveGovernor ¶
func (UnimplementedMsgServer) RemoveGovernor(context.Context, *MsgRemoveGovernor) (*MsgRemoveGovernorResponse, error)
func (UnimplementedMsgServer) UpdateGovernorMetadata ¶
func (UnimplementedMsgServer) UpdateGovernorMetadata(context.Context, *MsgUpdateGovernorMetadata) (*MsgUpdateGovernorMetadataResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct{}
UnimplementedQueryServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedQueryServer) Governor ¶
func (UnimplementedQueryServer) Governor(context.Context, *QueryGovernorRequest) (*QueryGovernorResponse, error)
func (UnimplementedQueryServer) Governors ¶
func (UnimplementedQueryServer) Governors(context.Context, *QueryGovernorsRequest) (*QueryGovernorsResponse, error)
type UnsafeMsgServer ¶
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 ¶
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.