Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ModelKey(vid int32, pid int32) []byte
- func ModelVersionKey(vid int32, pid int32, softwareVersion uint32) []byte
- func ModelVersionsKey(vid int32, pid int32) []byte
- func NewErrCDVersionNumberInvalid(cdVersionNumber interface{}) error
- func NewErrFirmwareInformationInvalid(firmwareInformation interface{}) error
- func NewErrLsfRevisionIsNotAllowed() error
- func NewErrLsfRevisionIsNotValid(previousLsfVersion interface{}, currentLsfVersion interface{}) error
- func NewErrMaxSVLessThanMinSV(minApplicableSoftwareVersion interface{}, ...) error
- func NewErrModelAlreadyExists(vid interface{}, pid interface{}) error
- func NewErrModelDoesNotExist(vid interface{}, pid interface{}) error
- func NewErrModelVersionAlreadyExists(vid interface{}, pid interface{}, softwareVersion interface{}) error
- func NewErrModelVersionDoesNotExist(vid interface{}, pid interface{}, softwareVersion interface{}) error
- func NewErrNoModelVersionsExist(vid interface{}, pid interface{}) error
- func NewErrOtaMissingInformation() error
- func NewErrOtaURLCannotBeSet(vid interface{}, pid interface{}, softwareVersion interface{}) error
- func NewErrOtaURLInvalid(otaURL interface{}) error
- func NewErrReleaseNotesURLInvalid(releaseNotesURL interface{}) error
- func NewErrSoftwareVersionStringInvalid(softwareVersion interface{}) error
- func NewErrVendorProductsDoNotExist(vid interface{}) error
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func VendorProductsKey(vid int32) []byte
- type DclauthKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetModelList() []Model
- func (m *GenesisState) GetModelVersionList() []ModelVersion
- func (m *GenesisState) GetModelVersionsList() []ModelVersions
- func (m *GenesisState) GetVendorProductsList() []VendorProducts
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Model
- func (*Model) Descriptor() ([]byte, []int)
- func (m *Model) GetCommissioningCustomFlow() int32
- func (m *Model) GetCommissioningCustomFlowUrl() string
- func (m *Model) GetCommissioningModeInitialStepsHint() uint32
- func (m *Model) GetCommissioningModeInitialStepsInstruction() string
- func (m *Model) GetCommissioningModeSecondaryStepsHint() uint32
- func (m *Model) GetCommissioningModeSecondaryStepsInstruction() string
- func (m *Model) GetCreator() string
- func (m *Model) GetDeviceTypeId() int32
- func (m *Model) GetLsfRevision() int32
- func (m *Model) GetLsfUrl() string
- func (m *Model) GetPartNumber() string
- func (m *Model) GetPid() int32
- func (m *Model) GetProductLabel() string
- func (m *Model) GetProductName() string
- func (m *Model) GetProductUrl() string
- func (m *Model) GetSupportUrl() string
- func (m *Model) GetUserManualUrl() string
- func (m *Model) GetVid() int32
- func (m *Model) Marshal() (dAtA []byte, err error)
- func (m *Model) MarshalTo(dAtA []byte) (int, error)
- func (m *Model) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Model) ProtoMessage()
- func (m *Model) Reset()
- func (m *Model) Size() (n int)
- func (m *Model) String() string
- func (m *Model) Unmarshal(dAtA []byte) error
- func (m *Model) XXX_DiscardUnknown()
- func (m *Model) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Model) XXX_Merge(src proto.Message)
- func (m *Model) XXX_Size() int
- func (m *Model) XXX_Unmarshal(b []byte) error
- type ModelVersion
- func (*ModelVersion) Descriptor() ([]byte, []int)
- func (m *ModelVersion) GetCdVersionNumber() int32
- func (m *ModelVersion) GetCreator() string
- func (m *ModelVersion) GetFirmwareInformation() string
- func (m *ModelVersion) GetMaxApplicableSoftwareVersion() uint32
- func (m *ModelVersion) GetMinApplicableSoftwareVersion() uint32
- func (m *ModelVersion) GetOtaChecksum() string
- func (m *ModelVersion) GetOtaChecksumType() int32
- func (m *ModelVersion) GetOtaFileSize() uint64
- func (m *ModelVersion) GetOtaUrl() string
- func (m *ModelVersion) GetPid() int32
- func (m *ModelVersion) GetReleaseNotesUrl() string
- func (m *ModelVersion) GetSoftwareVersion() uint32
- func (m *ModelVersion) GetSoftwareVersionString() string
- func (m *ModelVersion) GetSoftwareVersionValid() bool
- func (m *ModelVersion) GetVid() int32
- func (m *ModelVersion) Marshal() (dAtA []byte, err error)
- func (m *ModelVersion) MarshalTo(dAtA []byte) (int, error)
- func (m *ModelVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ModelVersion) ProtoMessage()
- func (m *ModelVersion) Reset()
- func (m *ModelVersion) Size() (n int)
- func (m *ModelVersion) String() string
- func (m *ModelVersion) Unmarshal(dAtA []byte) error
- func (m *ModelVersion) XXX_DiscardUnknown()
- func (m *ModelVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModelVersion) XXX_Merge(src proto.Message)
- func (m *ModelVersion) XXX_Size() int
- func (m *ModelVersion) XXX_Unmarshal(b []byte) error
- type ModelVersions
- func (*ModelVersions) Descriptor() ([]byte, []int)
- func (m *ModelVersions) GetPid() int32
- func (m *ModelVersions) GetSoftwareVersions() []uint32
- func (m *ModelVersions) GetVid() int32
- func (m *ModelVersions) Marshal() (dAtA []byte, err error)
- func (m *ModelVersions) MarshalTo(dAtA []byte) (int, error)
- func (m *ModelVersions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ModelVersions) ProtoMessage()
- func (m *ModelVersions) Reset()
- func (m *ModelVersions) Size() (n int)
- func (m *ModelVersions) String() string
- func (m *ModelVersions) Unmarshal(dAtA []byte) error
- func (m *ModelVersions) XXX_DiscardUnknown()
- func (m *ModelVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModelVersions) XXX_Merge(src proto.Message)
- func (m *ModelVersions) XXX_Size() int
- func (m *ModelVersions) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateModel
- func (*MsgCreateModel) Descriptor() ([]byte, []int)
- func (m *MsgCreateModel) GetCommissioningCustomFlow() int32
- func (m *MsgCreateModel) GetCommissioningCustomFlowUrl() string
- func (m *MsgCreateModel) GetCommissioningModeInitialStepsHint() uint32
- func (m *MsgCreateModel) GetCommissioningModeInitialStepsInstruction() string
- func (m *MsgCreateModel) GetCommissioningModeSecondaryStepsHint() uint32
- func (m *MsgCreateModel) GetCommissioningModeSecondaryStepsInstruction() string
- func (m *MsgCreateModel) GetCreator() string
- func (m *MsgCreateModel) GetDeviceTypeId() int32
- func (m *MsgCreateModel) GetLsfUrl() string
- func (m *MsgCreateModel) GetPartNumber() string
- func (m *MsgCreateModel) GetPid() int32
- func (m *MsgCreateModel) GetProductLabel() string
- func (m *MsgCreateModel) GetProductName() string
- func (m *MsgCreateModel) GetProductUrl() string
- func (msg *MsgCreateModel) GetSignBytes() []byte
- func (msg *MsgCreateModel) GetSigners() []sdk.AccAddress
- func (m *MsgCreateModel) GetSupportUrl() string
- func (m *MsgCreateModel) GetUserManualUrl() string
- func (m *MsgCreateModel) GetVid() int32
- func (m *MsgCreateModel) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateModel) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateModel) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateModel) ProtoMessage()
- func (m *MsgCreateModel) Reset()
- func (msg *MsgCreateModel) Route() string
- func (m *MsgCreateModel) Size() (n int)
- func (m *MsgCreateModel) String() string
- func (msg *MsgCreateModel) Type() string
- func (m *MsgCreateModel) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateModel) ValidateBasic() error
- func (m *MsgCreateModel) XXX_DiscardUnknown()
- func (m *MsgCreateModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateModel) XXX_Merge(src proto.Message)
- func (m *MsgCreateModel) XXX_Size() int
- func (m *MsgCreateModel) XXX_Unmarshal(b []byte) error
- type MsgCreateModelResponse
- func (*MsgCreateModelResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateModelResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateModelResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateModelResponse) ProtoMessage()
- func (m *MsgCreateModelResponse) Reset()
- func (m *MsgCreateModelResponse) Size() (n int)
- func (m *MsgCreateModelResponse) String() string
- func (m *MsgCreateModelResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateModelResponse) XXX_DiscardUnknown()
- func (m *MsgCreateModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateModelResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateModelResponse) XXX_Size() int
- func (m *MsgCreateModelResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateModelVersion
- func (*MsgCreateModelVersion) Descriptor() ([]byte, []int)
- func (m *MsgCreateModelVersion) GetCdVersionNumber() int32
- func (m *MsgCreateModelVersion) GetCreator() string
- func (m *MsgCreateModelVersion) GetFirmwareInformation() string
- func (m *MsgCreateModelVersion) GetMaxApplicableSoftwareVersion() uint32
- func (m *MsgCreateModelVersion) GetMinApplicableSoftwareVersion() uint32
- func (m *MsgCreateModelVersion) GetOtaChecksum() string
- func (m *MsgCreateModelVersion) GetOtaChecksumType() int32
- func (m *MsgCreateModelVersion) GetOtaFileSize() uint64
- func (m *MsgCreateModelVersion) GetOtaUrl() string
- func (m *MsgCreateModelVersion) GetPid() int32
- func (m *MsgCreateModelVersion) GetReleaseNotesUrl() string
- func (msg *MsgCreateModelVersion) GetSignBytes() []byte
- func (msg *MsgCreateModelVersion) GetSigners() []sdk.AccAddress
- func (m *MsgCreateModelVersion) GetSoftwareVersion() uint32
- func (m *MsgCreateModelVersion) GetSoftwareVersionString() string
- func (m *MsgCreateModelVersion) GetSoftwareVersionValid() bool
- func (m *MsgCreateModelVersion) GetVid() int32
- func (m *MsgCreateModelVersion) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateModelVersion) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateModelVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateModelVersion) ProtoMessage()
- func (m *MsgCreateModelVersion) Reset()
- func (msg *MsgCreateModelVersion) Route() string
- func (m *MsgCreateModelVersion) Size() (n int)
- func (m *MsgCreateModelVersion) String() string
- func (msg *MsgCreateModelVersion) Type() string
- func (m *MsgCreateModelVersion) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateModelVersion) ValidateBasic() error
- func (m *MsgCreateModelVersion) XXX_DiscardUnknown()
- func (m *MsgCreateModelVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateModelVersion) XXX_Merge(src proto.Message)
- func (m *MsgCreateModelVersion) XXX_Size() int
- func (m *MsgCreateModelVersion) XXX_Unmarshal(b []byte) error
- type MsgCreateModelVersionResponse
- func (*MsgCreateModelVersionResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateModelVersionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateModelVersionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateModelVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateModelVersionResponse) ProtoMessage()
- func (m *MsgCreateModelVersionResponse) Reset()
- func (m *MsgCreateModelVersionResponse) Size() (n int)
- func (m *MsgCreateModelVersionResponse) String() string
- func (m *MsgCreateModelVersionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateModelVersionResponse) XXX_DiscardUnknown()
- func (m *MsgCreateModelVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateModelVersionResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateModelVersionResponse) XXX_Size() int
- func (m *MsgCreateModelVersionResponse) XXX_Unmarshal(b []byte) error
- type MsgDeleteModel
- func (*MsgDeleteModel) Descriptor() ([]byte, []int)
- func (m *MsgDeleteModel) GetCreator() string
- func (m *MsgDeleteModel) GetPid() int32
- func (msg *MsgDeleteModel) GetSignBytes() []byte
- func (msg *MsgDeleteModel) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteModel) GetVid() int32
- func (m *MsgDeleteModel) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteModel) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteModel) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteModel) ProtoMessage()
- func (m *MsgDeleteModel) Reset()
- func (msg *MsgDeleteModel) Route() string
- func (m *MsgDeleteModel) Size() (n int)
- func (m *MsgDeleteModel) String() string
- func (msg *MsgDeleteModel) Type() string
- func (m *MsgDeleteModel) Unmarshal(dAtA []byte) error
- func (msg *MsgDeleteModel) ValidateBasic() error
- func (m *MsgDeleteModel) XXX_DiscardUnknown()
- func (m *MsgDeleteModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteModel) XXX_Merge(src proto.Message)
- func (m *MsgDeleteModel) XXX_Size() int
- func (m *MsgDeleteModel) XXX_Unmarshal(b []byte) error
- type MsgDeleteModelResponse
- func (*MsgDeleteModelResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteModelResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteModelResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteModelResponse) ProtoMessage()
- func (m *MsgDeleteModelResponse) Reset()
- func (m *MsgDeleteModelResponse) Size() (n int)
- func (m *MsgDeleteModelResponse) String() string
- func (m *MsgDeleteModelResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteModelResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteModelResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteModelResponse) XXX_Size() int
- func (m *MsgDeleteModelResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateModel
- func (*MsgUpdateModel) Descriptor() ([]byte, []int)
- func (m *MsgUpdateModel) GetCommissioningCustomFlowUrl() string
- func (m *MsgUpdateModel) GetCommissioningModeInitialStepsInstruction() string
- func (m *MsgUpdateModel) GetCommissioningModeSecondaryStepsInstruction() string
- func (m *MsgUpdateModel) GetCreator() string
- func (m *MsgUpdateModel) GetLsfRevision() int32
- func (m *MsgUpdateModel) GetLsfUrl() string
- func (m *MsgUpdateModel) GetPartNumber() string
- func (m *MsgUpdateModel) GetPid() int32
- func (m *MsgUpdateModel) GetProductLabel() string
- func (m *MsgUpdateModel) GetProductName() string
- func (m *MsgUpdateModel) GetProductUrl() string
- func (msg *MsgUpdateModel) GetSignBytes() []byte
- func (msg *MsgUpdateModel) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateModel) GetSupportUrl() string
- func (m *MsgUpdateModel) GetUserManualUrl() string
- func (m *MsgUpdateModel) GetVid() int32
- func (m *MsgUpdateModel) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateModel) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateModel) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateModel) ProtoMessage()
- func (m *MsgUpdateModel) Reset()
- func (msg *MsgUpdateModel) Route() string
- func (m *MsgUpdateModel) Size() (n int)
- func (m *MsgUpdateModel) String() string
- func (msg *MsgUpdateModel) Type() string
- func (m *MsgUpdateModel) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateModel) ValidateBasic() error
- func (m *MsgUpdateModel) XXX_DiscardUnknown()
- func (m *MsgUpdateModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateModel) XXX_Merge(src proto.Message)
- func (m *MsgUpdateModel) XXX_Size() int
- func (m *MsgUpdateModel) XXX_Unmarshal(b []byte) error
- type MsgUpdateModelResponse
- func (*MsgUpdateModelResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateModelResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateModelResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateModelResponse) ProtoMessage()
- func (m *MsgUpdateModelResponse) Reset()
- func (m *MsgUpdateModelResponse) Size() (n int)
- func (m *MsgUpdateModelResponse) String() string
- func (m *MsgUpdateModelResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateModelResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateModelResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateModelResponse) XXX_Size() int
- func (m *MsgUpdateModelResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateModelVersion
- func (*MsgUpdateModelVersion) Descriptor() ([]byte, []int)
- func (m *MsgUpdateModelVersion) GetCreator() string
- func (m *MsgUpdateModelVersion) GetMaxApplicableSoftwareVersion() uint32
- func (m *MsgUpdateModelVersion) GetMinApplicableSoftwareVersion() uint32
- func (m *MsgUpdateModelVersion) GetOtaUrl() string
- func (m *MsgUpdateModelVersion) GetPid() int32
- func (m *MsgUpdateModelVersion) GetReleaseNotesUrl() string
- func (msg *MsgUpdateModelVersion) GetSignBytes() []byte
- func (msg *MsgUpdateModelVersion) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateModelVersion) GetSoftwareVersion() uint32
- func (m *MsgUpdateModelVersion) GetSoftwareVersionValid() bool
- func (m *MsgUpdateModelVersion) GetVid() int32
- func (m *MsgUpdateModelVersion) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateModelVersion) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateModelVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateModelVersion) ProtoMessage()
- func (m *MsgUpdateModelVersion) Reset()
- func (msg *MsgUpdateModelVersion) Route() string
- func (m *MsgUpdateModelVersion) Size() (n int)
- func (m *MsgUpdateModelVersion) String() string
- func (msg *MsgUpdateModelVersion) Type() string
- func (m *MsgUpdateModelVersion) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateModelVersion) ValidateBasic() error
- func (m *MsgUpdateModelVersion) XXX_DiscardUnknown()
- func (m *MsgUpdateModelVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateModelVersion) XXX_Merge(src proto.Message)
- func (m *MsgUpdateModelVersion) XXX_Size() int
- func (m *MsgUpdateModelVersion) XXX_Unmarshal(b []byte) error
- type MsgUpdateModelVersionResponse
- func (*MsgUpdateModelVersionResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateModelVersionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateModelVersionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateModelVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateModelVersionResponse) ProtoMessage()
- func (m *MsgUpdateModelVersionResponse) Reset()
- func (m *MsgUpdateModelVersionResponse) Size() (n int)
- func (m *MsgUpdateModelVersionResponse) String() string
- func (m *MsgUpdateModelVersionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateModelVersionResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateModelVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateModelVersionResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateModelVersionResponse) XXX_Size() int
- func (m *MsgUpdateModelVersionResponse) XXX_Unmarshal(b []byte) error
- type Product
- func (*Product) Descriptor() ([]byte, []int)
- func (m *Product) GetName() string
- func (m *Product) GetPartNumber() string
- func (m *Product) GetPid() int32
- func (m *Product) Marshal() (dAtA []byte, err error)
- func (m *Product) MarshalTo(dAtA []byte) (int, error)
- func (m *Product) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Product) ProtoMessage()
- func (m *Product) Reset()
- func (m *Product) Size() (n int)
- func (m *Product) String() string
- func (m *Product) Unmarshal(dAtA []byte) error
- func (m *Product) XXX_DiscardUnknown()
- func (m *Product) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Product) XXX_Merge(src proto.Message)
- func (m *Product) XXX_Size() int
- func (m *Product) XXX_Unmarshal(b []byte) error
- type QueryAllModelRequest
- func (*QueryAllModelRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllModelRequest) GetPagination() *query.PageRequest
- func (m *QueryAllModelRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllModelRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllModelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllModelRequest) ProtoMessage()
- func (m *QueryAllModelRequest) Reset()
- func (m *QueryAllModelRequest) Size() (n int)
- func (m *QueryAllModelRequest) String() string
- func (m *QueryAllModelRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllModelRequest) XXX_DiscardUnknown()
- func (m *QueryAllModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllModelRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllModelRequest) XXX_Size() int
- func (m *QueryAllModelRequest) XXX_Unmarshal(b []byte) error
- type QueryAllModelResponse
- func (*QueryAllModelResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllModelResponse) GetModel() []Model
- func (m *QueryAllModelResponse) GetPagination() *query.PageResponse
- func (m *QueryAllModelResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllModelResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllModelResponse) ProtoMessage()
- func (m *QueryAllModelResponse) Reset()
- func (m *QueryAllModelResponse) Size() (n int)
- func (m *QueryAllModelResponse) String() string
- func (m *QueryAllModelResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllModelResponse) XXX_DiscardUnknown()
- func (m *QueryAllModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllModelResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllModelResponse) XXX_Size() int
- func (m *QueryAllModelResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetModelRequest
- func (*QueryGetModelRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetModelRequest) GetPid() int32
- func (m *QueryGetModelRequest) GetVid() int32
- func (m *QueryGetModelRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetModelRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetModelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetModelRequest) ProtoMessage()
- func (m *QueryGetModelRequest) Reset()
- func (m *QueryGetModelRequest) Size() (n int)
- func (m *QueryGetModelRequest) String() string
- func (m *QueryGetModelRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetModelRequest) XXX_DiscardUnknown()
- func (m *QueryGetModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetModelRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetModelRequest) XXX_Size() int
- func (m *QueryGetModelRequest) XXX_Unmarshal(b []byte) error
- type QueryGetModelResponse
- func (*QueryGetModelResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetModelResponse) GetModel() Model
- func (m *QueryGetModelResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetModelResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetModelResponse) ProtoMessage()
- func (m *QueryGetModelResponse) Reset()
- func (m *QueryGetModelResponse) Size() (n int)
- func (m *QueryGetModelResponse) String() string
- func (m *QueryGetModelResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetModelResponse) XXX_DiscardUnknown()
- func (m *QueryGetModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetModelResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetModelResponse) XXX_Size() int
- func (m *QueryGetModelResponse) XXX_Unmarshal(b []byte) error
- type QueryGetModelVersionRequest
- func (*QueryGetModelVersionRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetModelVersionRequest) GetPid() int32
- func (m *QueryGetModelVersionRequest) GetSoftwareVersion() uint32
- func (m *QueryGetModelVersionRequest) GetVid() int32
- func (m *QueryGetModelVersionRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetModelVersionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetModelVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetModelVersionRequest) ProtoMessage()
- func (m *QueryGetModelVersionRequest) Reset()
- func (m *QueryGetModelVersionRequest) Size() (n int)
- func (m *QueryGetModelVersionRequest) String() string
- func (m *QueryGetModelVersionRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetModelVersionRequest) XXX_DiscardUnknown()
- func (m *QueryGetModelVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetModelVersionRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetModelVersionRequest) XXX_Size() int
- func (m *QueryGetModelVersionRequest) XXX_Unmarshal(b []byte) error
- type QueryGetModelVersionResponse
- func (*QueryGetModelVersionResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetModelVersionResponse) GetModelVersion() ModelVersion
- func (m *QueryGetModelVersionResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetModelVersionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetModelVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetModelVersionResponse) ProtoMessage()
- func (m *QueryGetModelVersionResponse) Reset()
- func (m *QueryGetModelVersionResponse) Size() (n int)
- func (m *QueryGetModelVersionResponse) String() string
- func (m *QueryGetModelVersionResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetModelVersionResponse) XXX_DiscardUnknown()
- func (m *QueryGetModelVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetModelVersionResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetModelVersionResponse) XXX_Size() int
- func (m *QueryGetModelVersionResponse) XXX_Unmarshal(b []byte) error
- type QueryGetModelVersionsRequest
- func (*QueryGetModelVersionsRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetModelVersionsRequest) GetPid() int32
- func (m *QueryGetModelVersionsRequest) GetVid() int32
- func (m *QueryGetModelVersionsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetModelVersionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetModelVersionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetModelVersionsRequest) ProtoMessage()
- func (m *QueryGetModelVersionsRequest) Reset()
- func (m *QueryGetModelVersionsRequest) Size() (n int)
- func (m *QueryGetModelVersionsRequest) String() string
- func (m *QueryGetModelVersionsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetModelVersionsRequest) XXX_DiscardUnknown()
- func (m *QueryGetModelVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetModelVersionsRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetModelVersionsRequest) XXX_Size() int
- func (m *QueryGetModelVersionsRequest) XXX_Unmarshal(b []byte) error
- type QueryGetModelVersionsResponse
- func (*QueryGetModelVersionsResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetModelVersionsResponse) GetModelVersions() ModelVersions
- func (m *QueryGetModelVersionsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetModelVersionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetModelVersionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetModelVersionsResponse) ProtoMessage()
- func (m *QueryGetModelVersionsResponse) Reset()
- func (m *QueryGetModelVersionsResponse) Size() (n int)
- func (m *QueryGetModelVersionsResponse) String() string
- func (m *QueryGetModelVersionsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetModelVersionsResponse) XXX_DiscardUnknown()
- func (m *QueryGetModelVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetModelVersionsResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetModelVersionsResponse) XXX_Size() int
- func (m *QueryGetModelVersionsResponse) XXX_Unmarshal(b []byte) error
- type QueryGetVendorProductsRequest
- func (*QueryGetVendorProductsRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetVendorProductsRequest) GetVid() int32
- func (m *QueryGetVendorProductsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetVendorProductsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetVendorProductsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetVendorProductsRequest) ProtoMessage()
- func (m *QueryGetVendorProductsRequest) Reset()
- func (m *QueryGetVendorProductsRequest) Size() (n int)
- func (m *QueryGetVendorProductsRequest) String() string
- func (m *QueryGetVendorProductsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetVendorProductsRequest) XXX_DiscardUnknown()
- func (m *QueryGetVendorProductsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetVendorProductsRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetVendorProductsRequest) XXX_Size() int
- func (m *QueryGetVendorProductsRequest) XXX_Unmarshal(b []byte) error
- type QueryGetVendorProductsResponse
- func (*QueryGetVendorProductsResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetVendorProductsResponse) GetVendorProducts() VendorProducts
- func (m *QueryGetVendorProductsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetVendorProductsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetVendorProductsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetVendorProductsResponse) ProtoMessage()
- func (m *QueryGetVendorProductsResponse) Reset()
- func (m *QueryGetVendorProductsResponse) Size() (n int)
- func (m *QueryGetVendorProductsResponse) String() string
- func (m *QueryGetVendorProductsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetVendorProductsResponse) XXX_DiscardUnknown()
- func (m *QueryGetVendorProductsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetVendorProductsResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetVendorProductsResponse) XXX_Size() int
- func (m *QueryGetVendorProductsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CreateModel(ctx context.Context, req *MsgCreateModel) (*MsgCreateModelResponse, error)
- func (*UnimplementedMsgServer) CreateModelVersion(ctx context.Context, req *MsgCreateModelVersion) (*MsgCreateModelVersionResponse, error)
- func (*UnimplementedMsgServer) DeleteModel(ctx context.Context, req *MsgDeleteModel) (*MsgDeleteModelResponse, error)
- func (*UnimplementedMsgServer) UpdateModel(ctx context.Context, req *MsgUpdateModel) (*MsgUpdateModelResponse, error)
- func (*UnimplementedMsgServer) UpdateModelVersion(ctx context.Context, req *MsgUpdateModelVersion) (*MsgUpdateModelVersionResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Model(ctx context.Context, req *QueryGetModelRequest) (*QueryGetModelResponse, error)
- func (*UnimplementedQueryServer) ModelAll(ctx context.Context, req *QueryAllModelRequest) (*QueryAllModelResponse, error)
- func (*UnimplementedQueryServer) ModelVersion(ctx context.Context, req *QueryGetModelVersionRequest) (*QueryGetModelVersionResponse, error)
- func (*UnimplementedQueryServer) ModelVersions(ctx context.Context, req *QueryGetModelVersionsRequest) (*QueryGetModelVersionsResponse, error)
- func (*UnimplementedQueryServer) VendorProducts(ctx context.Context, req *QueryGetVendorProductsRequest) (*QueryGetVendorProductsResponse, error)
- type VendorProducts
- func (*VendorProducts) Descriptor() ([]byte, []int)
- func (m *VendorProducts) GetProducts() []*Product
- func (m *VendorProducts) GetVid() int32
- func (m *VendorProducts) Marshal() (dAtA []byte, err error)
- func (m *VendorProducts) MarshalTo(dAtA []byte) (int, error)
- func (m *VendorProducts) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VendorProducts) ProtoMessage()
- func (m *VendorProducts) Reset()
- func (m *VendorProducts) Size() (n int)
- func (m *VendorProducts) String() string
- func (m *VendorProducts) Unmarshal(dAtA []byte) error
- func (m *VendorProducts) XXX_DiscardUnknown()
- func (m *VendorProducts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VendorProducts) XXX_Merge(src proto.Message)
- func (m *VendorProducts) XXX_Size() int
- func (m *VendorProducts) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName defines the module name. ModuleName = "model" // StoreKey defines the primary module store key. StoreKey = ModuleName // RouterKey is the message route for slashing. RouterKey = ModuleName // QuerierRoute defines the module's query routing key. QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key. MemStoreKey = "mem_model" )
const ( TypeMsgCreateModel = "create_model" TypeMsgUpdateModel = "update_model" TypeMsgDeleteModel = "delete_model" )
const ( TypeMsgCreateModelVersion = "create_model_version" TypeMsgUpdateModelVersion = "update_model_version" TypeMsgDeleteModelVersion = "delete_model_version" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index.
const (
// ModelKeyPrefix is the prefix to retrieve all Model.
ModelKeyPrefix = "Model/value/"
)
const (
// ModelVersionKeyPrefix is the prefix to retrieve all ModelVersion.
ModelVersionKeyPrefix = "ModelVersion/value/"
)
const (
// ModelVersionsKeyPrefix is the prefix to retrieve all ModelVersions.
ModelVersionsKeyPrefix = "ModelVersions/value/"
)
const (
// VendorProductsKeyPrefix is the prefix to retrieve all VendorProducts.
VendorProductsKeyPrefix = "VendorProducts/value/"
)
Variables ¶
var ( // Model Error Codes. ErrModelAlreadyExists = sdkerrors.Register(ModuleName, 501, "model already exists") ErrModelDoesNotExist = sdkerrors.Register(ModuleName, 502, "model does not exist") ErrVendorProductsDoNotExist = sdkerrors.Register(ModuleName, 504, "vendor products do not exist") // Model Version Error Codes. ErrSoftwareVersionStringInvalid = sdkerrors.Register(ModuleName, 511, "software version string invalid") ErrFirmwareInformationInvalid = sdkerrors.Register(ModuleName, 512, "firmware digests invalid") ErrCDVersionNumberInvalid = sdkerrors.Register(ModuleName, 513, "CD version number invalid") ErrOtaURLInvalid = sdkerrors.Register(ModuleName, 514, "OTA URL invalid") ErrOtaMissingInformation = sdkerrors.Register(ModuleName, 515, "OTA missing information") ErrReleaseNotesURLInvalid = sdkerrors.Register(ModuleName, 516, "release notes URL invalid") ErrModelVersionDoesNotExist = sdkerrors.Register(ModuleName, 517, "model version does not exist") ErrNoModelVersionsExist = sdkerrors.Register(ModuleName, 518, "no model versions exist") ErrModelVersionAlreadyExists = sdkerrors.Register(ModuleName, 519, "model version already exists") ErrOtaURLCannotBeSet = sdkerrors.Register(ModuleName, 520, "OTA URL cannot be set") ErrMaxSVLessThanMinSV = sdkerrors.Register(ModuleName, 521, "max software version less than min software version") ErrLsfRevisionIsNotValid = sdkerrors.Register(ModuleName, 522, "LsfRevision should monotonically increase by 1") ErrLsfRevisionIsNotAllowed = sdkerrors.Register(ModuleName, 523, "LsfRevision is not allowed if LsfURL is not present") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthModel = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModel = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModel = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthModelVersion = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModelVersion = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModelVersion = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthModelVersions = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModelVersions = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModelVersions = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthProduct = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProduct = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProduct = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthVendorProducts = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowVendorProducts = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupVendorProducts = fmt.Errorf("proto: unexpected end of group") )
var ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
Functions ¶
func ModelVersionKey ¶
ModelVersionKey returns the store key to retrieve a ModelVersion from the index fields.
func ModelVersionsKey ¶
ModelVersionsKey returns the store key to retrieve a ModelVersions from the index fields.
func NewErrCDVersionNumberInvalid ¶
func NewErrCDVersionNumberInvalid(cdVersionNumber interface{}) error
func NewErrFirmwareInformationInvalid ¶ added in v0.11.0
func NewErrFirmwareInformationInvalid(firmwareInformation interface{}) error
func NewErrLsfRevisionIsNotAllowed ¶
func NewErrLsfRevisionIsNotAllowed() error
func NewErrLsfRevisionIsNotValid ¶
func NewErrLsfRevisionIsNotValid(previousLsfVersion interface{}, currentLsfVersion interface{}, ) error
func NewErrMaxSVLessThanMinSV ¶
func NewErrMaxSVLessThanMinSV(minApplicableSoftwareVersion interface{}, maxApplicableSoftwareVersion interface{}, ) error
func NewErrModelAlreadyExists ¶
func NewErrModelAlreadyExists(vid interface{}, pid interface{}) error
func NewErrModelDoesNotExist ¶
func NewErrModelDoesNotExist(vid interface{}, pid interface{}) error
func NewErrModelVersionAlreadyExists ¶
func NewErrModelVersionAlreadyExists(vid interface{}, pid interface{}, softwareVersion interface{}) error
func NewErrModelVersionDoesNotExist ¶
func NewErrModelVersionDoesNotExist(vid interface{}, pid interface{}, softwareVersion interface{}) error
func NewErrNoModelVersionsExist ¶
func NewErrNoModelVersionsExist(vid interface{}, pid interface{}) error
func NewErrOtaMissingInformation ¶
func NewErrOtaMissingInformation() error
func NewErrOtaURLCannotBeSet ¶
func NewErrOtaURLCannotBeSet(vid interface{}, pid interface{}, softwareVersion interface{}) error
func NewErrOtaURLInvalid ¶
func NewErrOtaURLInvalid(otaURL interface{}) error
func NewErrReleaseNotesURLInvalid ¶
func NewErrReleaseNotesURLInvalid(releaseNotesURL interface{}) error
func NewErrSoftwareVersionStringInvalid ¶
func NewErrSoftwareVersionStringInvalid(softwareVersion interface{}) error
func NewErrVendorProductsDoNotExist ¶
func NewErrVendorProductsDoNotExist(vid interface{}) error
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func VendorProductsKey ¶
VendorProductsKey returns the store key to retrieve a VendorProducts from the index fields.
Types ¶
type DclauthKeeper ¶
type DclauthKeeper interface { // Methods imported from dclauth should be defined here HasRole(ctx sdk.Context, addr sdk.AccAddress, roleToCheck types.AccountRole) bool HasVendorID(ctx sdk.Context, addr sdk.AccAddress, vid int32) bool }
type GenesisState ¶
type GenesisState struct { VendorProductsList []VendorProducts `protobuf:"bytes,1,rep,name=vendorProductsList,proto3" json:"vendorProductsList"` ModelList []Model `protobuf:"bytes,2,rep,name=modelList,proto3" json:"modelList"` ModelVersionList []ModelVersion `protobuf:"bytes,3,rep,name=modelVersionList,proto3" json:"modelVersionList"` ModelVersionsList []ModelVersions `protobuf:"bytes,4,rep,name=modelVersionsList,proto3" json:"modelVersionsList"` }
GenesisState defines the model module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetModelList ¶
func (m *GenesisState) GetModelList() []Model
func (*GenesisState) GetModelVersionList ¶
func (m *GenesisState) GetModelVersionList() []ModelVersion
func (*GenesisState) GetModelVersionsList ¶
func (m *GenesisState) GetModelVersionsList() []ModelVersions
func (*GenesisState) GetVendorProductsList ¶
func (m *GenesisState) GetVendorProductsList() []VendorProducts
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type Model ¶
type Model struct { Vid int32 `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"` Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` DeviceTypeId int32 `protobuf:"varint,3,opt,name=deviceTypeId,proto3" json:"deviceTypeId,omitempty"` ProductName string `protobuf:"bytes,4,opt,name=productName,proto3" json:"productName,omitempty"` ProductLabel string `protobuf:"bytes,5,opt,name=productLabel,proto3" json:"productLabel,omitempty"` PartNumber string `protobuf:"bytes,6,opt,name=partNumber,proto3" json:"partNumber,omitempty"` CommissioningCustomFlow int32 `protobuf:"varint,7,opt,name=commissioningCustomFlow,proto3" json:"commissioningCustomFlow,omitempty"` CommissioningCustomFlowUrl string `protobuf:"bytes,8,opt,name=commissioningCustomFlowUrl,proto3" json:"commissioningCustomFlowUrl,omitempty"` CommissioningModeInitialStepsHint uint32 `protobuf:"varint,9,opt,name=commissioningModeInitialStepsHint,proto3" json:"commissioningModeInitialStepsHint,omitempty"` CommissioningModeInitialStepsInstruction string `` /* 134-byte string literal not displayed */ CommissioningModeSecondaryStepsHint uint32 `protobuf:"varint,11,opt,name=commissioningModeSecondaryStepsHint,proto3" json:"commissioningModeSecondaryStepsHint,omitempty"` CommissioningModeSecondaryStepsInstruction string `` /* 138-byte string literal not displayed */ UserManualUrl string `protobuf:"bytes,13,opt,name=userManualUrl,proto3" json:"userManualUrl,omitempty"` SupportUrl string `protobuf:"bytes,14,opt,name=supportUrl,proto3" json:"supportUrl,omitempty"` ProductUrl string `protobuf:"bytes,15,opt,name=productUrl,proto3" json:"productUrl,omitempty"` LsfUrl string `protobuf:"bytes,16,opt,name=lsfUrl,proto3" json:"lsfUrl,omitempty"` LsfRevision int32 `protobuf:"varint,17,opt,name=lsfRevision,proto3" json:"lsfRevision,omitempty"` Creator string `protobuf:"bytes,18,opt,name=creator,proto3" json:"creator,omitempty"` }
func (*Model) Descriptor ¶
func (*Model) GetCommissioningCustomFlow ¶
func (*Model) GetCommissioningCustomFlowUrl ¶
func (*Model) GetCommissioningModeInitialStepsHint ¶
func (*Model) GetCommissioningModeInitialStepsInstruction ¶
func (*Model) GetCommissioningModeSecondaryStepsHint ¶
func (*Model) GetCommissioningModeSecondaryStepsInstruction ¶
func (*Model) GetCreator ¶
func (*Model) GetDeviceTypeId ¶
func (*Model) GetLsfRevision ¶
func (*Model) GetPartNumber ¶
func (*Model) GetProductLabel ¶
func (*Model) GetProductName ¶
func (*Model) GetProductUrl ¶
func (*Model) GetSupportUrl ¶
func (*Model) GetUserManualUrl ¶
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) XXX_DiscardUnknown ¶
func (m *Model) XXX_DiscardUnknown()
func (*Model) XXX_Marshal ¶
func (*Model) XXX_Unmarshal ¶
type ModelVersion ¶
type ModelVersion struct { Vid int32 `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"` Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` SoftwareVersion uint32 `protobuf:"varint,3,opt,name=softwareVersion,proto3" json:"softwareVersion,omitempty"` SoftwareVersionString string `protobuf:"bytes,4,opt,name=softwareVersionString,proto3" json:"softwareVersionString,omitempty"` CdVersionNumber int32 `protobuf:"varint,5,opt,name=cdVersionNumber,proto3" json:"cdVersionNumber,omitempty"` FirmwareInformation string `protobuf:"bytes,6,opt,name=firmwareInformation,proto3" json:"firmwareInformation,omitempty"` SoftwareVersionValid bool `protobuf:"varint,7,opt,name=softwareVersionValid,proto3" json:"softwareVersionValid,omitempty"` OtaUrl string `protobuf:"bytes,8,opt,name=otaUrl,proto3" json:"otaUrl,omitempty"` OtaFileSize uint64 `protobuf:"varint,9,opt,name=otaFileSize,proto3" json:"otaFileSize,omitempty"` OtaChecksum string `protobuf:"bytes,10,opt,name=otaChecksum,proto3" json:"otaChecksum,omitempty"` OtaChecksumType int32 `protobuf:"varint,11,opt,name=otaChecksumType,proto3" json:"otaChecksumType,omitempty"` MinApplicableSoftwareVersion uint32 `protobuf:"varint,12,opt,name=minApplicableSoftwareVersion,proto3" json:"minApplicableSoftwareVersion,omitempty"` MaxApplicableSoftwareVersion uint32 `protobuf:"varint,13,opt,name=maxApplicableSoftwareVersion,proto3" json:"maxApplicableSoftwareVersion,omitempty"` ReleaseNotesUrl string `protobuf:"bytes,14,opt,name=releaseNotesUrl,proto3" json:"releaseNotesUrl,omitempty"` Creator string `protobuf:"bytes,15,opt,name=creator,proto3" json:"creator,omitempty"` }
func (*ModelVersion) Descriptor ¶
func (*ModelVersion) Descriptor() ([]byte, []int)
func (*ModelVersion) GetCdVersionNumber ¶
func (m *ModelVersion) GetCdVersionNumber() int32
func (*ModelVersion) GetCreator ¶
func (m *ModelVersion) GetCreator() string
func (*ModelVersion) GetFirmwareInformation ¶ added in v0.11.0
func (m *ModelVersion) GetFirmwareInformation() string
func (*ModelVersion) GetMaxApplicableSoftwareVersion ¶
func (m *ModelVersion) GetMaxApplicableSoftwareVersion() uint32
func (*ModelVersion) GetMinApplicableSoftwareVersion ¶
func (m *ModelVersion) GetMinApplicableSoftwareVersion() uint32
func (*ModelVersion) GetOtaChecksum ¶
func (m *ModelVersion) GetOtaChecksum() string
func (*ModelVersion) GetOtaChecksumType ¶
func (m *ModelVersion) GetOtaChecksumType() int32
func (*ModelVersion) GetOtaFileSize ¶
func (m *ModelVersion) GetOtaFileSize() uint64
func (*ModelVersion) GetOtaUrl ¶
func (m *ModelVersion) GetOtaUrl() string
func (*ModelVersion) GetPid ¶
func (m *ModelVersion) GetPid() int32
func (*ModelVersion) GetReleaseNotesUrl ¶
func (m *ModelVersion) GetReleaseNotesUrl() string
func (*ModelVersion) GetSoftwareVersion ¶
func (m *ModelVersion) GetSoftwareVersion() uint32
func (*ModelVersion) GetSoftwareVersionString ¶
func (m *ModelVersion) GetSoftwareVersionString() string
func (*ModelVersion) GetSoftwareVersionValid ¶
func (m *ModelVersion) GetSoftwareVersionValid() bool
func (*ModelVersion) GetVid ¶
func (m *ModelVersion) GetVid() int32
func (*ModelVersion) Marshal ¶
func (m *ModelVersion) Marshal() (dAtA []byte, err error)
func (*ModelVersion) MarshalToSizedBuffer ¶
func (m *ModelVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ModelVersion) ProtoMessage ¶
func (*ModelVersion) ProtoMessage()
func (*ModelVersion) Reset ¶
func (m *ModelVersion) Reset()
func (*ModelVersion) Size ¶
func (m *ModelVersion) Size() (n int)
func (*ModelVersion) String ¶
func (m *ModelVersion) String() string
func (*ModelVersion) Unmarshal ¶
func (m *ModelVersion) Unmarshal(dAtA []byte) error
func (*ModelVersion) XXX_DiscardUnknown ¶
func (m *ModelVersion) XXX_DiscardUnknown()
func (*ModelVersion) XXX_Marshal ¶
func (m *ModelVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModelVersion) XXX_Merge ¶
func (m *ModelVersion) XXX_Merge(src proto.Message)
func (*ModelVersion) XXX_Size ¶
func (m *ModelVersion) XXX_Size() int
func (*ModelVersion) XXX_Unmarshal ¶
func (m *ModelVersion) XXX_Unmarshal(b []byte) error
type ModelVersions ¶
type ModelVersions struct { Vid int32 `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"` Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` SoftwareVersions []uint32 `protobuf:"varint,3,rep,packed,name=softwareVersions,proto3" json:"softwareVersions,omitempty"` }
func (*ModelVersions) Descriptor ¶
func (*ModelVersions) Descriptor() ([]byte, []int)
func (*ModelVersions) GetPid ¶
func (m *ModelVersions) GetPid() int32
func (*ModelVersions) GetSoftwareVersions ¶
func (m *ModelVersions) GetSoftwareVersions() []uint32
func (*ModelVersions) GetVid ¶
func (m *ModelVersions) GetVid() int32
func (*ModelVersions) Marshal ¶
func (m *ModelVersions) Marshal() (dAtA []byte, err error)
func (*ModelVersions) MarshalToSizedBuffer ¶
func (m *ModelVersions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ModelVersions) ProtoMessage ¶
func (*ModelVersions) ProtoMessage()
func (*ModelVersions) Reset ¶
func (m *ModelVersions) Reset()
func (*ModelVersions) Size ¶
func (m *ModelVersions) Size() (n int)
func (*ModelVersions) String ¶
func (m *ModelVersions) String() string
func (*ModelVersions) Unmarshal ¶
func (m *ModelVersions) Unmarshal(dAtA []byte) error
func (*ModelVersions) XXX_DiscardUnknown ¶
func (m *ModelVersions) XXX_DiscardUnknown()
func (*ModelVersions) XXX_Marshal ¶
func (m *ModelVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModelVersions) XXX_Merge ¶
func (m *ModelVersions) XXX_Merge(src proto.Message)
func (*ModelVersions) XXX_Size ¶
func (m *ModelVersions) XXX_Size() int
func (*ModelVersions) XXX_Unmarshal ¶
func (m *ModelVersions) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { CreateModel(ctx context.Context, in *MsgCreateModel, opts ...grpc.CallOption) (*MsgCreateModelResponse, error) UpdateModel(ctx context.Context, in *MsgUpdateModel, opts ...grpc.CallOption) (*MsgUpdateModelResponse, error) DeleteModel(ctx context.Context, in *MsgDeleteModel, opts ...grpc.CallOption) (*MsgDeleteModelResponse, error) CreateModelVersion(ctx context.Context, in *MsgCreateModelVersion, opts ...grpc.CallOption) (*MsgCreateModelVersionResponse, error) UpdateModelVersion(ctx context.Context, in *MsgUpdateModelVersion, opts ...grpc.CallOption) (*MsgUpdateModelVersionResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateModel ¶
type MsgCreateModel struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" validate:"required"` Vid int32 `protobuf:"varint,2,opt,name=vid,proto3" json:"vid,omitempty" validate:"gte=1,lte=65535"` Pid int32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty" validate:"gte=1,lte=65535"` DeviceTypeId int32 `protobuf:"varint,4,opt,name=deviceTypeId,proto3" json:"deviceTypeId,omitempty" validate:"gte=0,lte=65535"` ProductName string `protobuf:"bytes,5,opt,name=productName,proto3" json:"productName,omitempty" validate:"required,max=128"` ProductLabel string `protobuf:"bytes,6,opt,name=productLabel,proto3" json:"productLabel,omitempty" validate:"required,max=256"` PartNumber string `protobuf:"bytes,7,opt,name=partNumber,proto3" json:"partNumber,omitempty" validate:"required,max=32"` CommissioningCustomFlow int32 `protobuf:"varint,8,opt,name=commissioningCustomFlow,proto3" json:"commissioningCustomFlow,omitempty" validate:"gte=0,lte=2"` CommissioningCustomFlowUrl string `` /* 196-byte string literal not displayed */ CommissioningModeInitialStepsHint uint32 `protobuf:"varint,10,opt,name=commissioningModeInitialStepsHint,proto3" json:"commissioningModeInitialStepsHint,omitempty"` CommissioningModeInitialStepsInstruction string `` /* 154-byte string literal not displayed */ CommissioningModeSecondaryStepsHint uint32 `protobuf:"varint,12,opt,name=commissioningModeSecondaryStepsHint,proto3" json:"commissioningModeSecondaryStepsHint,omitempty"` CommissioningModeSecondaryStepsInstruction string `` /* 158-byte string literal not displayed */ UserManualUrl string `` /* 133-byte string literal not displayed */ SupportUrl string `` /* 127-byte string literal not displayed */ ProductUrl string `` /* 127-byte string literal not displayed */ LsfUrl string `protobuf:"bytes,17,opt,name=lsfUrl,proto3" json:"lsfUrl,omitempty" validate:"omitempty,url,startsnotwith=http:,max=256"` }
func NewMsgCreateModel ¶
func NewMsgCreateModel( creator string, vid int32, pid int32, deviceTypeID int32, productName string, productLabel string, partNumber string, commissioningCustomFlow int32, commissioningCustomFlowURL string, commissioningModeInitialStepsHint uint32, commissioningModeInitialStepsInstruction string, commissioningModeSecondaryStepsHint uint32, commissioningModeSecondaryStepsInstruction string, userManualURL string, supportURL string, productURL string, lsfURL string, ) *MsgCreateModel
func (*MsgCreateModel) Descriptor ¶
func (*MsgCreateModel) Descriptor() ([]byte, []int)
func (*MsgCreateModel) GetCommissioningCustomFlow ¶
func (m *MsgCreateModel) GetCommissioningCustomFlow() int32
func (*MsgCreateModel) GetCommissioningCustomFlowUrl ¶
func (m *MsgCreateModel) GetCommissioningCustomFlowUrl() string
func (*MsgCreateModel) GetCommissioningModeInitialStepsHint ¶
func (m *MsgCreateModel) GetCommissioningModeInitialStepsHint() uint32
func (*MsgCreateModel) GetCommissioningModeInitialStepsInstruction ¶
func (m *MsgCreateModel) GetCommissioningModeInitialStepsInstruction() string
func (*MsgCreateModel) GetCommissioningModeSecondaryStepsHint ¶
func (m *MsgCreateModel) GetCommissioningModeSecondaryStepsHint() uint32
func (*MsgCreateModel) GetCommissioningModeSecondaryStepsInstruction ¶
func (m *MsgCreateModel) GetCommissioningModeSecondaryStepsInstruction() string
func (*MsgCreateModel) GetCreator ¶
func (m *MsgCreateModel) GetCreator() string
func (*MsgCreateModel) GetDeviceTypeId ¶
func (m *MsgCreateModel) GetDeviceTypeId() int32
func (*MsgCreateModel) GetLsfUrl ¶
func (m *MsgCreateModel) GetLsfUrl() string
func (*MsgCreateModel) GetPartNumber ¶
func (m *MsgCreateModel) GetPartNumber() string
func (*MsgCreateModel) GetPid ¶
func (m *MsgCreateModel) GetPid() int32
func (*MsgCreateModel) GetProductLabel ¶
func (m *MsgCreateModel) GetProductLabel() string
func (*MsgCreateModel) GetProductName ¶
func (m *MsgCreateModel) GetProductName() string
func (*MsgCreateModel) GetProductUrl ¶
func (m *MsgCreateModel) GetProductUrl() string
func (*MsgCreateModel) GetSignBytes ¶
func (msg *MsgCreateModel) GetSignBytes() []byte
func (*MsgCreateModel) GetSigners ¶
func (msg *MsgCreateModel) GetSigners() []sdk.AccAddress
func (*MsgCreateModel) GetSupportUrl ¶
func (m *MsgCreateModel) GetSupportUrl() string
func (*MsgCreateModel) GetUserManualUrl ¶
func (m *MsgCreateModel) GetUserManualUrl() string
func (*MsgCreateModel) GetVid ¶
func (m *MsgCreateModel) GetVid() int32
func (*MsgCreateModel) Marshal ¶
func (m *MsgCreateModel) Marshal() (dAtA []byte, err error)
func (*MsgCreateModel) MarshalToSizedBuffer ¶
func (m *MsgCreateModel) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateModel) ProtoMessage ¶
func (*MsgCreateModel) ProtoMessage()
func (*MsgCreateModel) Reset ¶
func (m *MsgCreateModel) Reset()
func (*MsgCreateModel) Route ¶
func (msg *MsgCreateModel) Route() string
func (*MsgCreateModel) Size ¶
func (m *MsgCreateModel) Size() (n int)
func (*MsgCreateModel) String ¶
func (m *MsgCreateModel) String() string
func (*MsgCreateModel) Type ¶
func (msg *MsgCreateModel) Type() string
func (*MsgCreateModel) Unmarshal ¶
func (m *MsgCreateModel) Unmarshal(dAtA []byte) error
func (*MsgCreateModel) ValidateBasic ¶
func (msg *MsgCreateModel) ValidateBasic() error
func (*MsgCreateModel) XXX_DiscardUnknown ¶
func (m *MsgCreateModel) XXX_DiscardUnknown()
func (*MsgCreateModel) XXX_Marshal ¶
func (m *MsgCreateModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateModel) XXX_Merge ¶
func (m *MsgCreateModel) XXX_Merge(src proto.Message)
func (*MsgCreateModel) XXX_Size ¶
func (m *MsgCreateModel) XXX_Size() int
func (*MsgCreateModel) XXX_Unmarshal ¶
func (m *MsgCreateModel) XXX_Unmarshal(b []byte) error
type MsgCreateModelResponse ¶
type MsgCreateModelResponse struct { }
func (*MsgCreateModelResponse) Descriptor ¶
func (*MsgCreateModelResponse) Descriptor() ([]byte, []int)
func (*MsgCreateModelResponse) Marshal ¶
func (m *MsgCreateModelResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateModelResponse) MarshalTo ¶
func (m *MsgCreateModelResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateModelResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateModelResponse) ProtoMessage ¶
func (*MsgCreateModelResponse) ProtoMessage()
func (*MsgCreateModelResponse) Reset ¶
func (m *MsgCreateModelResponse) Reset()
func (*MsgCreateModelResponse) Size ¶
func (m *MsgCreateModelResponse) Size() (n int)
func (*MsgCreateModelResponse) String ¶
func (m *MsgCreateModelResponse) String() string
func (*MsgCreateModelResponse) Unmarshal ¶
func (m *MsgCreateModelResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateModelResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateModelResponse) XXX_DiscardUnknown()
func (*MsgCreateModelResponse) XXX_Marshal ¶
func (m *MsgCreateModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateModelResponse) XXX_Merge ¶
func (m *MsgCreateModelResponse) XXX_Merge(src proto.Message)
func (*MsgCreateModelResponse) XXX_Size ¶
func (m *MsgCreateModelResponse) XXX_Size() int
func (*MsgCreateModelResponse) XXX_Unmarshal ¶
func (m *MsgCreateModelResponse) XXX_Unmarshal(b []byte) error
type MsgCreateModelVersion ¶
type MsgCreateModelVersion struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" validate:"required"` Vid int32 `protobuf:"varint,2,opt,name=vid,proto3" json:"vid,omitempty" validate:"gte=1,lte=65535"` Pid int32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty" validate:"gte=1,lte=65535"` SoftwareVersion uint32 `protobuf:"varint,4,opt,name=softwareVersion,proto3" json:"softwareVersion,omitempty"` SoftwareVersionString string `protobuf:"bytes,5,opt,name=softwareVersionString,proto3" json:"softwareVersionString,omitempty" validate:"required,max=64"` CdVersionNumber int32 `protobuf:"varint,6,opt,name=cdVersionNumber,proto3" json:"cdVersionNumber,omitempty" validate:"gte=0,lte=65535"` FirmwareInformation string `protobuf:"bytes,7,opt,name=firmwareInformation,proto3" json:"firmwareInformation,omitempty" validate:"max=512"` SoftwareVersionValid bool `protobuf:"varint,8,opt,name=softwareVersionValid,proto3" json:"softwareVersionValid,omitempty"` OtaUrl string `protobuf:"bytes,9,opt,name=otaUrl,proto3" json:"otaUrl,omitempty" validate:"omitempty,url,startsnotwith=http:,max=256"` OtaFileSize uint64 `protobuf:"varint,10,opt,name=otaFileSize,proto3" json:"otaFileSize,omitempty" validate:"required_with=OtaUrl"` OtaChecksum string `protobuf:"bytes,11,opt,name=otaChecksum,proto3" json:"otaChecksum,omitempty" validate:"required_with=OtaUrl,max=64"` OtaChecksumType int32 `` /* 133-byte string literal not displayed */ MinApplicableSoftwareVersion uint32 `protobuf:"varint,13,opt,name=minApplicableSoftwareVersion,proto3" json:"minApplicableSoftwareVersion,omitempty"` MaxApplicableSoftwareVersion uint32 `` /* 162-byte string literal not displayed */ ReleaseNotesUrl string `` /* 137-byte string literal not displayed */ }
func NewMsgCreateModelVersion ¶
func NewMsgCreateModelVersion( creator string, vid int32, pid int32, softwareVersion uint32, softwareVersionString string, cdVersionNumber int32, firmwareInformation string, softwareVersionValid bool, otaURL string, otaFileSize uint64, otaChecksum string, otaChecksumType int32, minApplicableSoftwareVersion uint32, maxApplicableSoftwareVersion uint32, releaseNotesURL string, ) *MsgCreateModelVersion
func (*MsgCreateModelVersion) Descriptor ¶
func (*MsgCreateModelVersion) Descriptor() ([]byte, []int)
func (*MsgCreateModelVersion) GetCdVersionNumber ¶
func (m *MsgCreateModelVersion) GetCdVersionNumber() int32
func (*MsgCreateModelVersion) GetCreator ¶
func (m *MsgCreateModelVersion) GetCreator() string
func (*MsgCreateModelVersion) GetFirmwareInformation ¶ added in v0.11.0
func (m *MsgCreateModelVersion) GetFirmwareInformation() string
func (*MsgCreateModelVersion) GetMaxApplicableSoftwareVersion ¶
func (m *MsgCreateModelVersion) GetMaxApplicableSoftwareVersion() uint32
func (*MsgCreateModelVersion) GetMinApplicableSoftwareVersion ¶
func (m *MsgCreateModelVersion) GetMinApplicableSoftwareVersion() uint32
func (*MsgCreateModelVersion) GetOtaChecksum ¶
func (m *MsgCreateModelVersion) GetOtaChecksum() string
func (*MsgCreateModelVersion) GetOtaChecksumType ¶
func (m *MsgCreateModelVersion) GetOtaChecksumType() int32
func (*MsgCreateModelVersion) GetOtaFileSize ¶
func (m *MsgCreateModelVersion) GetOtaFileSize() uint64
func (*MsgCreateModelVersion) GetOtaUrl ¶
func (m *MsgCreateModelVersion) GetOtaUrl() string
func (*MsgCreateModelVersion) GetPid ¶
func (m *MsgCreateModelVersion) GetPid() int32
func (*MsgCreateModelVersion) GetReleaseNotesUrl ¶
func (m *MsgCreateModelVersion) GetReleaseNotesUrl() string
func (*MsgCreateModelVersion) GetSignBytes ¶
func (msg *MsgCreateModelVersion) GetSignBytes() []byte
func (*MsgCreateModelVersion) GetSigners ¶
func (msg *MsgCreateModelVersion) GetSigners() []sdk.AccAddress
func (*MsgCreateModelVersion) GetSoftwareVersion ¶
func (m *MsgCreateModelVersion) GetSoftwareVersion() uint32
func (*MsgCreateModelVersion) GetSoftwareVersionString ¶
func (m *MsgCreateModelVersion) GetSoftwareVersionString() string
func (*MsgCreateModelVersion) GetSoftwareVersionValid ¶
func (m *MsgCreateModelVersion) GetSoftwareVersionValid() bool
func (*MsgCreateModelVersion) GetVid ¶
func (m *MsgCreateModelVersion) GetVid() int32
func (*MsgCreateModelVersion) Marshal ¶
func (m *MsgCreateModelVersion) Marshal() (dAtA []byte, err error)
func (*MsgCreateModelVersion) MarshalTo ¶
func (m *MsgCreateModelVersion) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateModelVersion) MarshalToSizedBuffer ¶
func (m *MsgCreateModelVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateModelVersion) ProtoMessage ¶
func (*MsgCreateModelVersion) ProtoMessage()
func (*MsgCreateModelVersion) Reset ¶
func (m *MsgCreateModelVersion) Reset()
func (*MsgCreateModelVersion) Route ¶
func (msg *MsgCreateModelVersion) Route() string
func (*MsgCreateModelVersion) Size ¶
func (m *MsgCreateModelVersion) Size() (n int)
func (*MsgCreateModelVersion) String ¶
func (m *MsgCreateModelVersion) String() string
func (*MsgCreateModelVersion) Type ¶
func (msg *MsgCreateModelVersion) Type() string
func (*MsgCreateModelVersion) Unmarshal ¶
func (m *MsgCreateModelVersion) Unmarshal(dAtA []byte) error
func (*MsgCreateModelVersion) ValidateBasic ¶
func (msg *MsgCreateModelVersion) ValidateBasic() error
func (*MsgCreateModelVersion) XXX_DiscardUnknown ¶
func (m *MsgCreateModelVersion) XXX_DiscardUnknown()
func (*MsgCreateModelVersion) XXX_Marshal ¶
func (m *MsgCreateModelVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateModelVersion) XXX_Merge ¶
func (m *MsgCreateModelVersion) XXX_Merge(src proto.Message)
func (*MsgCreateModelVersion) XXX_Size ¶
func (m *MsgCreateModelVersion) XXX_Size() int
func (*MsgCreateModelVersion) XXX_Unmarshal ¶
func (m *MsgCreateModelVersion) XXX_Unmarshal(b []byte) error
type MsgCreateModelVersionResponse ¶
type MsgCreateModelVersionResponse struct { }
func (*MsgCreateModelVersionResponse) Descriptor ¶
func (*MsgCreateModelVersionResponse) Descriptor() ([]byte, []int)
func (*MsgCreateModelVersionResponse) Marshal ¶
func (m *MsgCreateModelVersionResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateModelVersionResponse) MarshalTo ¶
func (m *MsgCreateModelVersionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateModelVersionResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateModelVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateModelVersionResponse) ProtoMessage ¶
func (*MsgCreateModelVersionResponse) ProtoMessage()
func (*MsgCreateModelVersionResponse) Reset ¶
func (m *MsgCreateModelVersionResponse) Reset()
func (*MsgCreateModelVersionResponse) Size ¶
func (m *MsgCreateModelVersionResponse) Size() (n int)
func (*MsgCreateModelVersionResponse) String ¶
func (m *MsgCreateModelVersionResponse) String() string
func (*MsgCreateModelVersionResponse) Unmarshal ¶
func (m *MsgCreateModelVersionResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateModelVersionResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateModelVersionResponse) XXX_DiscardUnknown()
func (*MsgCreateModelVersionResponse) XXX_Marshal ¶
func (m *MsgCreateModelVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateModelVersionResponse) XXX_Merge ¶
func (m *MsgCreateModelVersionResponse) XXX_Merge(src proto.Message)
func (*MsgCreateModelVersionResponse) XXX_Size ¶
func (m *MsgCreateModelVersionResponse) XXX_Size() int
func (*MsgCreateModelVersionResponse) XXX_Unmarshal ¶
func (m *MsgCreateModelVersionResponse) XXX_Unmarshal(b []byte) error
type MsgDeleteModel ¶
type MsgDeleteModel struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" validate:"required"` Vid int32 `protobuf:"varint,2,opt,name=vid,proto3" json:"vid,omitempty" validate:"gte=1,lte=65535"` Pid int32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty" validate:"gte=1,lte=65535"` }
func NewMsgDeleteModel ¶
func NewMsgDeleteModel( creator string, vid int32, pid int32, ) *MsgDeleteModel
func (*MsgDeleteModel) Descriptor ¶
func (*MsgDeleteModel) Descriptor() ([]byte, []int)
func (*MsgDeleteModel) GetCreator ¶
func (m *MsgDeleteModel) GetCreator() string
func (*MsgDeleteModel) GetPid ¶
func (m *MsgDeleteModel) GetPid() int32
func (*MsgDeleteModel) GetSignBytes ¶
func (msg *MsgDeleteModel) GetSignBytes() []byte
func (*MsgDeleteModel) GetSigners ¶
func (msg *MsgDeleteModel) GetSigners() []sdk.AccAddress
func (*MsgDeleteModel) GetVid ¶
func (m *MsgDeleteModel) GetVid() int32
func (*MsgDeleteModel) Marshal ¶
func (m *MsgDeleteModel) Marshal() (dAtA []byte, err error)
func (*MsgDeleteModel) MarshalToSizedBuffer ¶
func (m *MsgDeleteModel) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteModel) ProtoMessage ¶
func (*MsgDeleteModel) ProtoMessage()
func (*MsgDeleteModel) Reset ¶
func (m *MsgDeleteModel) Reset()
func (*MsgDeleteModel) Route ¶
func (msg *MsgDeleteModel) Route() string
func (*MsgDeleteModel) Size ¶
func (m *MsgDeleteModel) Size() (n int)
func (*MsgDeleteModel) String ¶
func (m *MsgDeleteModel) String() string
func (*MsgDeleteModel) Type ¶
func (msg *MsgDeleteModel) Type() string
func (*MsgDeleteModel) Unmarshal ¶
func (m *MsgDeleteModel) Unmarshal(dAtA []byte) error
func (*MsgDeleteModel) ValidateBasic ¶
func (msg *MsgDeleteModel) ValidateBasic() error
func (*MsgDeleteModel) XXX_DiscardUnknown ¶
func (m *MsgDeleteModel) XXX_DiscardUnknown()
func (*MsgDeleteModel) XXX_Marshal ¶
func (m *MsgDeleteModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteModel) XXX_Merge ¶
func (m *MsgDeleteModel) XXX_Merge(src proto.Message)
func (*MsgDeleteModel) XXX_Size ¶
func (m *MsgDeleteModel) XXX_Size() int
func (*MsgDeleteModel) XXX_Unmarshal ¶
func (m *MsgDeleteModel) XXX_Unmarshal(b []byte) error
type MsgDeleteModelResponse ¶
type MsgDeleteModelResponse struct { }
func (*MsgDeleteModelResponse) Descriptor ¶
func (*MsgDeleteModelResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteModelResponse) Marshal ¶
func (m *MsgDeleteModelResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteModelResponse) MarshalTo ¶
func (m *MsgDeleteModelResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteModelResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteModelResponse) ProtoMessage ¶
func (*MsgDeleteModelResponse) ProtoMessage()
func (*MsgDeleteModelResponse) Reset ¶
func (m *MsgDeleteModelResponse) Reset()
func (*MsgDeleteModelResponse) Size ¶
func (m *MsgDeleteModelResponse) Size() (n int)
func (*MsgDeleteModelResponse) String ¶
func (m *MsgDeleteModelResponse) String() string
func (*MsgDeleteModelResponse) Unmarshal ¶
func (m *MsgDeleteModelResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteModelResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteModelResponse) XXX_DiscardUnknown()
func (*MsgDeleteModelResponse) XXX_Marshal ¶
func (m *MsgDeleteModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteModelResponse) XXX_Merge ¶
func (m *MsgDeleteModelResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteModelResponse) XXX_Size ¶
func (m *MsgDeleteModelResponse) XXX_Size() int
func (*MsgDeleteModelResponse) XXX_Unmarshal ¶
func (m *MsgDeleteModelResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { CreateModel(context.Context, *MsgCreateModel) (*MsgCreateModelResponse, error) UpdateModel(context.Context, *MsgUpdateModel) (*MsgUpdateModelResponse, error) DeleteModel(context.Context, *MsgDeleteModel) (*MsgDeleteModelResponse, error) CreateModelVersion(context.Context, *MsgCreateModelVersion) (*MsgCreateModelVersionResponse, error) UpdateModelVersion(context.Context, *MsgUpdateModelVersion) (*MsgUpdateModelVersionResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateModel ¶
type MsgUpdateModel struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" validate:"required"` Vid int32 `protobuf:"varint,2,opt,name=vid,proto3" json:"vid,omitempty" validate:"gte=1,lte=65535"` Pid int32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty" validate:"gte=1,lte=65535"` ProductName string `protobuf:"bytes,4,opt,name=productName,proto3" json:"productName,omitempty" validate:"max=128"` ProductLabel string `protobuf:"bytes,5,opt,name=productLabel,proto3" json:"productLabel,omitempty" validate:"max=256"` PartNumber string `protobuf:"bytes,6,opt,name=partNumber,proto3" json:"partNumber,omitempty" validate:"max=32"` CommissioningCustomFlowUrl string `` /* 158-byte string literal not displayed */ CommissioningModeInitialStepsInstruction string `` /* 153-byte string literal not displayed */ CommissioningModeSecondaryStepsInstruction string `` /* 157-byte string literal not displayed */ UserManualUrl string `` /* 133-byte string literal not displayed */ SupportUrl string `` /* 127-byte string literal not displayed */ ProductUrl string `` /* 127-byte string literal not displayed */ LsfUrl string `protobuf:"bytes,13,opt,name=lsfUrl,proto3" json:"lsfUrl,omitempty" validate:"omitempty,url,startsnotwith=http:,max=256"` LsfRevision int32 `protobuf:"varint,14,opt,name=lsfRevision,proto3" json:"lsfRevision,omitempty" validate:"gte=0,lte=65535"` }
func NewMsgUpdateModel ¶
func NewMsgUpdateModel( creator string, vid int32, pid int32, productName string, productLabel string, partNumber string, commissioningCustomFlowURL string, commissioningModeInitialStepsInstruction string, commissioningModeSecondaryStepsInstruction string, userManualURL string, supportURL string, productURL string, lsfURL string, lsfRevision int32, ) *MsgUpdateModel
func (*MsgUpdateModel) Descriptor ¶
func (*MsgUpdateModel) Descriptor() ([]byte, []int)
func (*MsgUpdateModel) GetCommissioningCustomFlowUrl ¶
func (m *MsgUpdateModel) GetCommissioningCustomFlowUrl() string
func (*MsgUpdateModel) GetCommissioningModeInitialStepsInstruction ¶
func (m *MsgUpdateModel) GetCommissioningModeInitialStepsInstruction() string
func (*MsgUpdateModel) GetCommissioningModeSecondaryStepsInstruction ¶
func (m *MsgUpdateModel) GetCommissioningModeSecondaryStepsInstruction() string
func (*MsgUpdateModel) GetCreator ¶
func (m *MsgUpdateModel) GetCreator() string
func (*MsgUpdateModel) GetLsfRevision ¶
func (m *MsgUpdateModel) GetLsfRevision() int32
func (*MsgUpdateModel) GetLsfUrl ¶
func (m *MsgUpdateModel) GetLsfUrl() string
func (*MsgUpdateModel) GetPartNumber ¶
func (m *MsgUpdateModel) GetPartNumber() string
func (*MsgUpdateModel) GetPid ¶
func (m *MsgUpdateModel) GetPid() int32
func (*MsgUpdateModel) GetProductLabel ¶
func (m *MsgUpdateModel) GetProductLabel() string
func (*MsgUpdateModel) GetProductName ¶
func (m *MsgUpdateModel) GetProductName() string
func (*MsgUpdateModel) GetProductUrl ¶
func (m *MsgUpdateModel) GetProductUrl() string
func (*MsgUpdateModel) GetSignBytes ¶
func (msg *MsgUpdateModel) GetSignBytes() []byte
func (*MsgUpdateModel) GetSigners ¶
func (msg *MsgUpdateModel) GetSigners() []sdk.AccAddress
func (*MsgUpdateModel) GetSupportUrl ¶
func (m *MsgUpdateModel) GetSupportUrl() string
func (*MsgUpdateModel) GetUserManualUrl ¶
func (m *MsgUpdateModel) GetUserManualUrl() string
func (*MsgUpdateModel) GetVid ¶
func (m *MsgUpdateModel) GetVid() int32
func (*MsgUpdateModel) Marshal ¶
func (m *MsgUpdateModel) Marshal() (dAtA []byte, err error)
func (*MsgUpdateModel) MarshalToSizedBuffer ¶
func (m *MsgUpdateModel) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateModel) ProtoMessage ¶
func (*MsgUpdateModel) ProtoMessage()
func (*MsgUpdateModel) Reset ¶
func (m *MsgUpdateModel) Reset()
func (*MsgUpdateModel) Route ¶
func (msg *MsgUpdateModel) Route() string
func (*MsgUpdateModel) Size ¶
func (m *MsgUpdateModel) Size() (n int)
func (*MsgUpdateModel) String ¶
func (m *MsgUpdateModel) String() string
func (*MsgUpdateModel) Type ¶
func (msg *MsgUpdateModel) Type() string
func (*MsgUpdateModel) Unmarshal ¶
func (m *MsgUpdateModel) Unmarshal(dAtA []byte) error
func (*MsgUpdateModel) ValidateBasic ¶
func (msg *MsgUpdateModel) ValidateBasic() error
func (*MsgUpdateModel) XXX_DiscardUnknown ¶
func (m *MsgUpdateModel) XXX_DiscardUnknown()
func (*MsgUpdateModel) XXX_Marshal ¶
func (m *MsgUpdateModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateModel) XXX_Merge ¶
func (m *MsgUpdateModel) XXX_Merge(src proto.Message)
func (*MsgUpdateModel) XXX_Size ¶
func (m *MsgUpdateModel) XXX_Size() int
func (*MsgUpdateModel) XXX_Unmarshal ¶
func (m *MsgUpdateModel) XXX_Unmarshal(b []byte) error
type MsgUpdateModelResponse ¶
type MsgUpdateModelResponse struct { }
func (*MsgUpdateModelResponse) Descriptor ¶
func (*MsgUpdateModelResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateModelResponse) Marshal ¶
func (m *MsgUpdateModelResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateModelResponse) MarshalTo ¶
func (m *MsgUpdateModelResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateModelResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateModelResponse) ProtoMessage ¶
func (*MsgUpdateModelResponse) ProtoMessage()
func (*MsgUpdateModelResponse) Reset ¶
func (m *MsgUpdateModelResponse) Reset()
func (*MsgUpdateModelResponse) Size ¶
func (m *MsgUpdateModelResponse) Size() (n int)
func (*MsgUpdateModelResponse) String ¶
func (m *MsgUpdateModelResponse) String() string
func (*MsgUpdateModelResponse) Unmarshal ¶
func (m *MsgUpdateModelResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateModelResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateModelResponse) XXX_DiscardUnknown()
func (*MsgUpdateModelResponse) XXX_Marshal ¶
func (m *MsgUpdateModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateModelResponse) XXX_Merge ¶
func (m *MsgUpdateModelResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateModelResponse) XXX_Size ¶
func (m *MsgUpdateModelResponse) XXX_Size() int
func (*MsgUpdateModelResponse) XXX_Unmarshal ¶
func (m *MsgUpdateModelResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateModelVersion ¶
type MsgUpdateModelVersion struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" validate:"required"` Vid int32 `protobuf:"varint,2,opt,name=vid,proto3" json:"vid,omitempty" validate:"gte=1,lte=65535"` Pid int32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty" validate:"gte=1,lte=65535"` SoftwareVersion uint32 `protobuf:"varint,4,opt,name=softwareVersion,proto3" json:"softwareVersion,omitempty"` SoftwareVersionValid bool `protobuf:"varint,5,opt,name=softwareVersionValid,proto3" json:"softwareVersionValid,omitempty"` OtaUrl string `protobuf:"bytes,6,opt,name=otaUrl,proto3" json:"otaUrl,omitempty" validate:"omitempty,url,startsnotwith=http:,max=256"` MinApplicableSoftwareVersion uint32 `protobuf:"varint,7,opt,name=minApplicableSoftwareVersion,proto3" json:"minApplicableSoftwareVersion,omitempty"` MaxApplicableSoftwareVersion uint32 `` /* 171-byte string literal not displayed */ ReleaseNotesUrl string `` /* 136-byte string literal not displayed */ }
func (*MsgUpdateModelVersion) Descriptor ¶
func (*MsgUpdateModelVersion) Descriptor() ([]byte, []int)
func (*MsgUpdateModelVersion) GetCreator ¶
func (m *MsgUpdateModelVersion) GetCreator() string
func (*MsgUpdateModelVersion) GetMaxApplicableSoftwareVersion ¶
func (m *MsgUpdateModelVersion) GetMaxApplicableSoftwareVersion() uint32
func (*MsgUpdateModelVersion) GetMinApplicableSoftwareVersion ¶
func (m *MsgUpdateModelVersion) GetMinApplicableSoftwareVersion() uint32
func (*MsgUpdateModelVersion) GetOtaUrl ¶
func (m *MsgUpdateModelVersion) GetOtaUrl() string
func (*MsgUpdateModelVersion) GetPid ¶
func (m *MsgUpdateModelVersion) GetPid() int32
func (*MsgUpdateModelVersion) GetReleaseNotesUrl ¶
func (m *MsgUpdateModelVersion) GetReleaseNotesUrl() string
func (*MsgUpdateModelVersion) GetSignBytes ¶
func (msg *MsgUpdateModelVersion) GetSignBytes() []byte
func (*MsgUpdateModelVersion) GetSigners ¶
func (msg *MsgUpdateModelVersion) GetSigners() []sdk.AccAddress
func (*MsgUpdateModelVersion) GetSoftwareVersion ¶
func (m *MsgUpdateModelVersion) GetSoftwareVersion() uint32
func (*MsgUpdateModelVersion) GetSoftwareVersionValid ¶
func (m *MsgUpdateModelVersion) GetSoftwareVersionValid() bool
func (*MsgUpdateModelVersion) GetVid ¶
func (m *MsgUpdateModelVersion) GetVid() int32
func (*MsgUpdateModelVersion) Marshal ¶
func (m *MsgUpdateModelVersion) Marshal() (dAtA []byte, err error)
func (*MsgUpdateModelVersion) MarshalTo ¶
func (m *MsgUpdateModelVersion) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateModelVersion) MarshalToSizedBuffer ¶
func (m *MsgUpdateModelVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateModelVersion) ProtoMessage ¶
func (*MsgUpdateModelVersion) ProtoMessage()
func (*MsgUpdateModelVersion) Reset ¶
func (m *MsgUpdateModelVersion) Reset()
func (*MsgUpdateModelVersion) Route ¶
func (msg *MsgUpdateModelVersion) Route() string
func (*MsgUpdateModelVersion) Size ¶
func (m *MsgUpdateModelVersion) Size() (n int)
func (*MsgUpdateModelVersion) String ¶
func (m *MsgUpdateModelVersion) String() string
func (*MsgUpdateModelVersion) Type ¶
func (msg *MsgUpdateModelVersion) Type() string
func (*MsgUpdateModelVersion) Unmarshal ¶
func (m *MsgUpdateModelVersion) Unmarshal(dAtA []byte) error
func (*MsgUpdateModelVersion) ValidateBasic ¶
func (msg *MsgUpdateModelVersion) ValidateBasic() error
func (*MsgUpdateModelVersion) XXX_DiscardUnknown ¶
func (m *MsgUpdateModelVersion) XXX_DiscardUnknown()
func (*MsgUpdateModelVersion) XXX_Marshal ¶
func (m *MsgUpdateModelVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateModelVersion) XXX_Merge ¶
func (m *MsgUpdateModelVersion) XXX_Merge(src proto.Message)
func (*MsgUpdateModelVersion) XXX_Size ¶
func (m *MsgUpdateModelVersion) XXX_Size() int
func (*MsgUpdateModelVersion) XXX_Unmarshal ¶
func (m *MsgUpdateModelVersion) XXX_Unmarshal(b []byte) error
type MsgUpdateModelVersionResponse ¶
type MsgUpdateModelVersionResponse struct { }
func (*MsgUpdateModelVersionResponse) Descriptor ¶
func (*MsgUpdateModelVersionResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateModelVersionResponse) Marshal ¶
func (m *MsgUpdateModelVersionResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateModelVersionResponse) MarshalTo ¶
func (m *MsgUpdateModelVersionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateModelVersionResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateModelVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateModelVersionResponse) ProtoMessage ¶
func (*MsgUpdateModelVersionResponse) ProtoMessage()
func (*MsgUpdateModelVersionResponse) Reset ¶
func (m *MsgUpdateModelVersionResponse) Reset()
func (*MsgUpdateModelVersionResponse) Size ¶
func (m *MsgUpdateModelVersionResponse) Size() (n int)
func (*MsgUpdateModelVersionResponse) String ¶
func (m *MsgUpdateModelVersionResponse) String() string
func (*MsgUpdateModelVersionResponse) Unmarshal ¶
func (m *MsgUpdateModelVersionResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateModelVersionResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateModelVersionResponse) XXX_DiscardUnknown()
func (*MsgUpdateModelVersionResponse) XXX_Marshal ¶
func (m *MsgUpdateModelVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateModelVersionResponse) XXX_Merge ¶
func (m *MsgUpdateModelVersionResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateModelVersionResponse) XXX_Size ¶
func (m *MsgUpdateModelVersionResponse) XXX_Size() int
func (*MsgUpdateModelVersionResponse) XXX_Unmarshal ¶
func (m *MsgUpdateModelVersionResponse) XXX_Unmarshal(b []byte) error
type Product ¶
type Product struct { Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` PartNumber string `protobuf:"bytes,3,opt,name=partNumber,proto3" json:"partNumber,omitempty"` }
func (*Product) Descriptor ¶
func (*Product) GetPartNumber ¶
func (*Product) MarshalToSizedBuffer ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) XXX_DiscardUnknown ¶
func (m *Product) XXX_DiscardUnknown()
func (*Product) XXX_Marshal ¶
func (*Product) XXX_Unmarshal ¶
type QueryAllModelRequest ¶
type QueryAllModelRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllModelRequest) Descriptor ¶
func (*QueryAllModelRequest) Descriptor() ([]byte, []int)
func (*QueryAllModelRequest) GetPagination ¶
func (m *QueryAllModelRequest) GetPagination() *query.PageRequest
func (*QueryAllModelRequest) Marshal ¶
func (m *QueryAllModelRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllModelRequest) MarshalTo ¶
func (m *QueryAllModelRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllModelRequest) MarshalToSizedBuffer ¶
func (m *QueryAllModelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllModelRequest) ProtoMessage ¶
func (*QueryAllModelRequest) ProtoMessage()
func (*QueryAllModelRequest) Reset ¶
func (m *QueryAllModelRequest) Reset()
func (*QueryAllModelRequest) Size ¶
func (m *QueryAllModelRequest) Size() (n int)
func (*QueryAllModelRequest) String ¶
func (m *QueryAllModelRequest) String() string
func (*QueryAllModelRequest) Unmarshal ¶
func (m *QueryAllModelRequest) Unmarshal(dAtA []byte) error
func (*QueryAllModelRequest) XXX_DiscardUnknown ¶
func (m *QueryAllModelRequest) XXX_DiscardUnknown()
func (*QueryAllModelRequest) XXX_Marshal ¶
func (m *QueryAllModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllModelRequest) XXX_Merge ¶
func (m *QueryAllModelRequest) XXX_Merge(src proto.Message)
func (*QueryAllModelRequest) XXX_Size ¶
func (m *QueryAllModelRequest) XXX_Size() int
func (*QueryAllModelRequest) XXX_Unmarshal ¶
func (m *QueryAllModelRequest) XXX_Unmarshal(b []byte) error
type QueryAllModelResponse ¶
type QueryAllModelResponse struct { Model []Model `protobuf:"bytes,1,rep,name=model,proto3" json:"model"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllModelResponse) Descriptor ¶
func (*QueryAllModelResponse) Descriptor() ([]byte, []int)
func (*QueryAllModelResponse) GetModel ¶
func (m *QueryAllModelResponse) GetModel() []Model
func (*QueryAllModelResponse) GetPagination ¶
func (m *QueryAllModelResponse) GetPagination() *query.PageResponse
func (*QueryAllModelResponse) Marshal ¶
func (m *QueryAllModelResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllModelResponse) MarshalTo ¶
func (m *QueryAllModelResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllModelResponse) MarshalToSizedBuffer ¶
func (m *QueryAllModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllModelResponse) ProtoMessage ¶
func (*QueryAllModelResponse) ProtoMessage()
func (*QueryAllModelResponse) Reset ¶
func (m *QueryAllModelResponse) Reset()
func (*QueryAllModelResponse) Size ¶
func (m *QueryAllModelResponse) Size() (n int)
func (*QueryAllModelResponse) String ¶
func (m *QueryAllModelResponse) String() string
func (*QueryAllModelResponse) Unmarshal ¶
func (m *QueryAllModelResponse) Unmarshal(dAtA []byte) error
func (*QueryAllModelResponse) XXX_DiscardUnknown ¶
func (m *QueryAllModelResponse) XXX_DiscardUnknown()
func (*QueryAllModelResponse) XXX_Marshal ¶
func (m *QueryAllModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllModelResponse) XXX_Merge ¶
func (m *QueryAllModelResponse) XXX_Merge(src proto.Message)
func (*QueryAllModelResponse) XXX_Size ¶
func (m *QueryAllModelResponse) XXX_Size() int
func (*QueryAllModelResponse) XXX_Unmarshal ¶
func (m *QueryAllModelResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Queries VendorProducts by index. VendorProducts(ctx context.Context, in *QueryGetVendorProductsRequest, opts ...grpc.CallOption) (*QueryGetVendorProductsResponse, error) // Queries a Model by index. Model(ctx context.Context, in *QueryGetModelRequest, opts ...grpc.CallOption) (*QueryGetModelResponse, error) // Queries a list of all Model items. ModelAll(ctx context.Context, in *QueryAllModelRequest, opts ...grpc.CallOption) (*QueryAllModelResponse, error) // Queries a ModelVersion by index. ModelVersion(ctx context.Context, in *QueryGetModelVersionRequest, opts ...grpc.CallOption) (*QueryGetModelVersionResponse, error) // Queries ModelVersions by index. ModelVersions(ctx context.Context, in *QueryGetModelVersionsRequest, opts ...grpc.CallOption) (*QueryGetModelVersionsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryGetModelRequest ¶
type QueryGetModelRequest struct { Vid int32 `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"` Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` }
func (*QueryGetModelRequest) Descriptor ¶
func (*QueryGetModelRequest) Descriptor() ([]byte, []int)
func (*QueryGetModelRequest) GetPid ¶
func (m *QueryGetModelRequest) GetPid() int32
func (*QueryGetModelRequest) GetVid ¶
func (m *QueryGetModelRequest) GetVid() int32
func (*QueryGetModelRequest) Marshal ¶
func (m *QueryGetModelRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetModelRequest) MarshalTo ¶
func (m *QueryGetModelRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetModelRequest) MarshalToSizedBuffer ¶
func (m *QueryGetModelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetModelRequest) ProtoMessage ¶
func (*QueryGetModelRequest) ProtoMessage()
func (*QueryGetModelRequest) Reset ¶
func (m *QueryGetModelRequest) Reset()
func (*QueryGetModelRequest) Size ¶
func (m *QueryGetModelRequest) Size() (n int)
func (*QueryGetModelRequest) String ¶
func (m *QueryGetModelRequest) String() string
func (*QueryGetModelRequest) Unmarshal ¶
func (m *QueryGetModelRequest) Unmarshal(dAtA []byte) error
func (*QueryGetModelRequest) XXX_DiscardUnknown ¶
func (m *QueryGetModelRequest) XXX_DiscardUnknown()
func (*QueryGetModelRequest) XXX_Marshal ¶
func (m *QueryGetModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetModelRequest) XXX_Merge ¶
func (m *QueryGetModelRequest) XXX_Merge(src proto.Message)
func (*QueryGetModelRequest) XXX_Size ¶
func (m *QueryGetModelRequest) XXX_Size() int
func (*QueryGetModelRequest) XXX_Unmarshal ¶
func (m *QueryGetModelRequest) XXX_Unmarshal(b []byte) error
type QueryGetModelResponse ¶
type QueryGetModelResponse struct {
Model Model `protobuf:"bytes,1,opt,name=model,proto3" json:"model"`
}
func (*QueryGetModelResponse) Descriptor ¶
func (*QueryGetModelResponse) Descriptor() ([]byte, []int)
func (*QueryGetModelResponse) GetModel ¶
func (m *QueryGetModelResponse) GetModel() Model
func (*QueryGetModelResponse) Marshal ¶
func (m *QueryGetModelResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetModelResponse) MarshalTo ¶
func (m *QueryGetModelResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetModelResponse) MarshalToSizedBuffer ¶
func (m *QueryGetModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetModelResponse) ProtoMessage ¶
func (*QueryGetModelResponse) ProtoMessage()
func (*QueryGetModelResponse) Reset ¶
func (m *QueryGetModelResponse) Reset()
func (*QueryGetModelResponse) Size ¶
func (m *QueryGetModelResponse) Size() (n int)
func (*QueryGetModelResponse) String ¶
func (m *QueryGetModelResponse) String() string
func (*QueryGetModelResponse) Unmarshal ¶
func (m *QueryGetModelResponse) Unmarshal(dAtA []byte) error
func (*QueryGetModelResponse) XXX_DiscardUnknown ¶
func (m *QueryGetModelResponse) XXX_DiscardUnknown()
func (*QueryGetModelResponse) XXX_Marshal ¶
func (m *QueryGetModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetModelResponse) XXX_Merge ¶
func (m *QueryGetModelResponse) XXX_Merge(src proto.Message)
func (*QueryGetModelResponse) XXX_Size ¶
func (m *QueryGetModelResponse) XXX_Size() int
func (*QueryGetModelResponse) XXX_Unmarshal ¶
func (m *QueryGetModelResponse) XXX_Unmarshal(b []byte) error
type QueryGetModelVersionRequest ¶
type QueryGetModelVersionRequest struct { Vid int32 `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"` Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` SoftwareVersion uint32 `protobuf:"varint,3,opt,name=softwareVersion,proto3" json:"softwareVersion,omitempty"` }
func (*QueryGetModelVersionRequest) Descriptor ¶
func (*QueryGetModelVersionRequest) Descriptor() ([]byte, []int)
func (*QueryGetModelVersionRequest) GetPid ¶
func (m *QueryGetModelVersionRequest) GetPid() int32
func (*QueryGetModelVersionRequest) GetSoftwareVersion ¶
func (m *QueryGetModelVersionRequest) GetSoftwareVersion() uint32
func (*QueryGetModelVersionRequest) GetVid ¶
func (m *QueryGetModelVersionRequest) GetVid() int32
func (*QueryGetModelVersionRequest) Marshal ¶
func (m *QueryGetModelVersionRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetModelVersionRequest) MarshalTo ¶
func (m *QueryGetModelVersionRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetModelVersionRequest) MarshalToSizedBuffer ¶
func (m *QueryGetModelVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetModelVersionRequest) ProtoMessage ¶
func (*QueryGetModelVersionRequest) ProtoMessage()
func (*QueryGetModelVersionRequest) Reset ¶
func (m *QueryGetModelVersionRequest) Reset()
func (*QueryGetModelVersionRequest) Size ¶
func (m *QueryGetModelVersionRequest) Size() (n int)
func (*QueryGetModelVersionRequest) String ¶
func (m *QueryGetModelVersionRequest) String() string
func (*QueryGetModelVersionRequest) Unmarshal ¶
func (m *QueryGetModelVersionRequest) Unmarshal(dAtA []byte) error
func (*QueryGetModelVersionRequest) XXX_DiscardUnknown ¶
func (m *QueryGetModelVersionRequest) XXX_DiscardUnknown()
func (*QueryGetModelVersionRequest) XXX_Marshal ¶
func (m *QueryGetModelVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetModelVersionRequest) XXX_Merge ¶
func (m *QueryGetModelVersionRequest) XXX_Merge(src proto.Message)
func (*QueryGetModelVersionRequest) XXX_Size ¶
func (m *QueryGetModelVersionRequest) XXX_Size() int
func (*QueryGetModelVersionRequest) XXX_Unmarshal ¶
func (m *QueryGetModelVersionRequest) XXX_Unmarshal(b []byte) error
type QueryGetModelVersionResponse ¶
type QueryGetModelVersionResponse struct {
ModelVersion ModelVersion `protobuf:"bytes,1,opt,name=modelVersion,proto3" json:"modelVersion"`
}
func (*QueryGetModelVersionResponse) Descriptor ¶
func (*QueryGetModelVersionResponse) Descriptor() ([]byte, []int)
func (*QueryGetModelVersionResponse) GetModelVersion ¶
func (m *QueryGetModelVersionResponse) GetModelVersion() ModelVersion
func (*QueryGetModelVersionResponse) Marshal ¶
func (m *QueryGetModelVersionResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetModelVersionResponse) MarshalTo ¶
func (m *QueryGetModelVersionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetModelVersionResponse) MarshalToSizedBuffer ¶
func (m *QueryGetModelVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetModelVersionResponse) ProtoMessage ¶
func (*QueryGetModelVersionResponse) ProtoMessage()
func (*QueryGetModelVersionResponse) Reset ¶
func (m *QueryGetModelVersionResponse) Reset()
func (*QueryGetModelVersionResponse) Size ¶
func (m *QueryGetModelVersionResponse) Size() (n int)
func (*QueryGetModelVersionResponse) String ¶
func (m *QueryGetModelVersionResponse) String() string
func (*QueryGetModelVersionResponse) Unmarshal ¶
func (m *QueryGetModelVersionResponse) Unmarshal(dAtA []byte) error
func (*QueryGetModelVersionResponse) XXX_DiscardUnknown ¶
func (m *QueryGetModelVersionResponse) XXX_DiscardUnknown()
func (*QueryGetModelVersionResponse) XXX_Marshal ¶
func (m *QueryGetModelVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetModelVersionResponse) XXX_Merge ¶
func (m *QueryGetModelVersionResponse) XXX_Merge(src proto.Message)
func (*QueryGetModelVersionResponse) XXX_Size ¶
func (m *QueryGetModelVersionResponse) XXX_Size() int
func (*QueryGetModelVersionResponse) XXX_Unmarshal ¶
func (m *QueryGetModelVersionResponse) XXX_Unmarshal(b []byte) error
type QueryGetModelVersionsRequest ¶
type QueryGetModelVersionsRequest struct { Vid int32 `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"` Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` }
func (*QueryGetModelVersionsRequest) Descriptor ¶
func (*QueryGetModelVersionsRequest) Descriptor() ([]byte, []int)
func (*QueryGetModelVersionsRequest) GetPid ¶
func (m *QueryGetModelVersionsRequest) GetPid() int32
func (*QueryGetModelVersionsRequest) GetVid ¶
func (m *QueryGetModelVersionsRequest) GetVid() int32
func (*QueryGetModelVersionsRequest) Marshal ¶
func (m *QueryGetModelVersionsRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetModelVersionsRequest) MarshalTo ¶
func (m *QueryGetModelVersionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetModelVersionsRequest) MarshalToSizedBuffer ¶
func (m *QueryGetModelVersionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetModelVersionsRequest) ProtoMessage ¶
func (*QueryGetModelVersionsRequest) ProtoMessage()
func (*QueryGetModelVersionsRequest) Reset ¶
func (m *QueryGetModelVersionsRequest) Reset()
func (*QueryGetModelVersionsRequest) Size ¶
func (m *QueryGetModelVersionsRequest) Size() (n int)
func (*QueryGetModelVersionsRequest) String ¶
func (m *QueryGetModelVersionsRequest) String() string
func (*QueryGetModelVersionsRequest) Unmarshal ¶
func (m *QueryGetModelVersionsRequest) Unmarshal(dAtA []byte) error
func (*QueryGetModelVersionsRequest) XXX_DiscardUnknown ¶
func (m *QueryGetModelVersionsRequest) XXX_DiscardUnknown()
func (*QueryGetModelVersionsRequest) XXX_Marshal ¶
func (m *QueryGetModelVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetModelVersionsRequest) XXX_Merge ¶
func (m *QueryGetModelVersionsRequest) XXX_Merge(src proto.Message)
func (*QueryGetModelVersionsRequest) XXX_Size ¶
func (m *QueryGetModelVersionsRequest) XXX_Size() int
func (*QueryGetModelVersionsRequest) XXX_Unmarshal ¶
func (m *QueryGetModelVersionsRequest) XXX_Unmarshal(b []byte) error
type QueryGetModelVersionsResponse ¶
type QueryGetModelVersionsResponse struct {
ModelVersions ModelVersions `protobuf:"bytes,1,opt,name=modelVersions,proto3" json:"modelVersions"`
}
func (*QueryGetModelVersionsResponse) Descriptor ¶
func (*QueryGetModelVersionsResponse) Descriptor() ([]byte, []int)
func (*QueryGetModelVersionsResponse) GetModelVersions ¶
func (m *QueryGetModelVersionsResponse) GetModelVersions() ModelVersions
func (*QueryGetModelVersionsResponse) Marshal ¶
func (m *QueryGetModelVersionsResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetModelVersionsResponse) MarshalTo ¶
func (m *QueryGetModelVersionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetModelVersionsResponse) MarshalToSizedBuffer ¶
func (m *QueryGetModelVersionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetModelVersionsResponse) ProtoMessage ¶
func (*QueryGetModelVersionsResponse) ProtoMessage()
func (*QueryGetModelVersionsResponse) Reset ¶
func (m *QueryGetModelVersionsResponse) Reset()
func (*QueryGetModelVersionsResponse) Size ¶
func (m *QueryGetModelVersionsResponse) Size() (n int)
func (*QueryGetModelVersionsResponse) String ¶
func (m *QueryGetModelVersionsResponse) String() string
func (*QueryGetModelVersionsResponse) Unmarshal ¶
func (m *QueryGetModelVersionsResponse) Unmarshal(dAtA []byte) error
func (*QueryGetModelVersionsResponse) XXX_DiscardUnknown ¶
func (m *QueryGetModelVersionsResponse) XXX_DiscardUnknown()
func (*QueryGetModelVersionsResponse) XXX_Marshal ¶
func (m *QueryGetModelVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetModelVersionsResponse) XXX_Merge ¶
func (m *QueryGetModelVersionsResponse) XXX_Merge(src proto.Message)
func (*QueryGetModelVersionsResponse) XXX_Size ¶
func (m *QueryGetModelVersionsResponse) XXX_Size() int
func (*QueryGetModelVersionsResponse) XXX_Unmarshal ¶
func (m *QueryGetModelVersionsResponse) XXX_Unmarshal(b []byte) error
type QueryGetVendorProductsRequest ¶
type QueryGetVendorProductsRequest struct {
Vid int32 `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
}
func (*QueryGetVendorProductsRequest) Descriptor ¶
func (*QueryGetVendorProductsRequest) Descriptor() ([]byte, []int)
func (*QueryGetVendorProductsRequest) GetVid ¶
func (m *QueryGetVendorProductsRequest) GetVid() int32
func (*QueryGetVendorProductsRequest) Marshal ¶
func (m *QueryGetVendorProductsRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetVendorProductsRequest) MarshalTo ¶
func (m *QueryGetVendorProductsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetVendorProductsRequest) MarshalToSizedBuffer ¶
func (m *QueryGetVendorProductsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetVendorProductsRequest) ProtoMessage ¶
func (*QueryGetVendorProductsRequest) ProtoMessage()
func (*QueryGetVendorProductsRequest) Reset ¶
func (m *QueryGetVendorProductsRequest) Reset()
func (*QueryGetVendorProductsRequest) Size ¶
func (m *QueryGetVendorProductsRequest) Size() (n int)
func (*QueryGetVendorProductsRequest) String ¶
func (m *QueryGetVendorProductsRequest) String() string
func (*QueryGetVendorProductsRequest) Unmarshal ¶
func (m *QueryGetVendorProductsRequest) Unmarshal(dAtA []byte) error
func (*QueryGetVendorProductsRequest) XXX_DiscardUnknown ¶
func (m *QueryGetVendorProductsRequest) XXX_DiscardUnknown()
func (*QueryGetVendorProductsRequest) XXX_Marshal ¶
func (m *QueryGetVendorProductsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetVendorProductsRequest) XXX_Merge ¶
func (m *QueryGetVendorProductsRequest) XXX_Merge(src proto.Message)
func (*QueryGetVendorProductsRequest) XXX_Size ¶
func (m *QueryGetVendorProductsRequest) XXX_Size() int
func (*QueryGetVendorProductsRequest) XXX_Unmarshal ¶
func (m *QueryGetVendorProductsRequest) XXX_Unmarshal(b []byte) error
type QueryGetVendorProductsResponse ¶
type QueryGetVendorProductsResponse struct {
VendorProducts VendorProducts `protobuf:"bytes,1,opt,name=vendorProducts,proto3" json:"vendorProducts"`
}
func (*QueryGetVendorProductsResponse) Descriptor ¶
func (*QueryGetVendorProductsResponse) Descriptor() ([]byte, []int)
func (*QueryGetVendorProductsResponse) GetVendorProducts ¶
func (m *QueryGetVendorProductsResponse) GetVendorProducts() VendorProducts
func (*QueryGetVendorProductsResponse) Marshal ¶
func (m *QueryGetVendorProductsResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetVendorProductsResponse) MarshalTo ¶
func (m *QueryGetVendorProductsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetVendorProductsResponse) MarshalToSizedBuffer ¶
func (m *QueryGetVendorProductsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetVendorProductsResponse) ProtoMessage ¶
func (*QueryGetVendorProductsResponse) ProtoMessage()
func (*QueryGetVendorProductsResponse) Reset ¶
func (m *QueryGetVendorProductsResponse) Reset()
func (*QueryGetVendorProductsResponse) Size ¶
func (m *QueryGetVendorProductsResponse) Size() (n int)
func (*QueryGetVendorProductsResponse) String ¶
func (m *QueryGetVendorProductsResponse) String() string
func (*QueryGetVendorProductsResponse) Unmarshal ¶
func (m *QueryGetVendorProductsResponse) Unmarshal(dAtA []byte) error
func (*QueryGetVendorProductsResponse) XXX_DiscardUnknown ¶
func (m *QueryGetVendorProductsResponse) XXX_DiscardUnknown()
func (*QueryGetVendorProductsResponse) XXX_Marshal ¶
func (m *QueryGetVendorProductsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetVendorProductsResponse) XXX_Merge ¶
func (m *QueryGetVendorProductsResponse) XXX_Merge(src proto.Message)
func (*QueryGetVendorProductsResponse) XXX_Size ¶
func (m *QueryGetVendorProductsResponse) XXX_Size() int
func (*QueryGetVendorProductsResponse) XXX_Unmarshal ¶
func (m *QueryGetVendorProductsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Queries VendorProducts by index. VendorProducts(context.Context, *QueryGetVendorProductsRequest) (*QueryGetVendorProductsResponse, error) // Queries a Model by index. Model(context.Context, *QueryGetModelRequest) (*QueryGetModelResponse, error) // Queries a list of all Model items. ModelAll(context.Context, *QueryAllModelRequest) (*QueryAllModelResponse, error) // Queries a ModelVersion by index. ModelVersion(context.Context, *QueryGetModelVersionRequest) (*QueryGetModelVersionResponse, error) // Queries ModelVersions by index. ModelVersions(context.Context, *QueryGetModelVersionsRequest) (*QueryGetModelVersionsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateModel ¶
func (*UnimplementedMsgServer) CreateModel(ctx context.Context, req *MsgCreateModel) (*MsgCreateModelResponse, error)
func (*UnimplementedMsgServer) CreateModelVersion ¶
func (*UnimplementedMsgServer) CreateModelVersion(ctx context.Context, req *MsgCreateModelVersion) (*MsgCreateModelVersionResponse, error)
func (*UnimplementedMsgServer) DeleteModel ¶
func (*UnimplementedMsgServer) DeleteModel(ctx context.Context, req *MsgDeleteModel) (*MsgDeleteModelResponse, error)
func (*UnimplementedMsgServer) UpdateModel ¶
func (*UnimplementedMsgServer) UpdateModel(ctx context.Context, req *MsgUpdateModel) (*MsgUpdateModelResponse, error)
func (*UnimplementedMsgServer) UpdateModelVersion ¶
func (*UnimplementedMsgServer) UpdateModelVersion(ctx context.Context, req *MsgUpdateModelVersion) (*MsgUpdateModelVersionResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Model ¶
func (*UnimplementedQueryServer) Model(ctx context.Context, req *QueryGetModelRequest) (*QueryGetModelResponse, error)
func (*UnimplementedQueryServer) ModelAll ¶
func (*UnimplementedQueryServer) ModelAll(ctx context.Context, req *QueryAllModelRequest) (*QueryAllModelResponse, error)
func (*UnimplementedQueryServer) ModelVersion ¶
func (*UnimplementedQueryServer) ModelVersion(ctx context.Context, req *QueryGetModelVersionRequest) (*QueryGetModelVersionResponse, error)
func (*UnimplementedQueryServer) ModelVersions ¶
func (*UnimplementedQueryServer) ModelVersions(ctx context.Context, req *QueryGetModelVersionsRequest) (*QueryGetModelVersionsResponse, error)
func (*UnimplementedQueryServer) VendorProducts ¶
func (*UnimplementedQueryServer) VendorProducts(ctx context.Context, req *QueryGetVendorProductsRequest) (*QueryGetVendorProductsResponse, error)
type VendorProducts ¶
type VendorProducts struct { Vid int32 `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"` Products []*Product `protobuf:"bytes,2,rep,name=products,proto3" json:"products,omitempty"` }
func (*VendorProducts) Descriptor ¶
func (*VendorProducts) Descriptor() ([]byte, []int)
func (*VendorProducts) GetProducts ¶
func (m *VendorProducts) GetProducts() []*Product
func (*VendorProducts) GetVid ¶
func (m *VendorProducts) GetVid() int32
func (*VendorProducts) Marshal ¶
func (m *VendorProducts) Marshal() (dAtA []byte, err error)
func (*VendorProducts) MarshalToSizedBuffer ¶
func (m *VendorProducts) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VendorProducts) ProtoMessage ¶
func (*VendorProducts) ProtoMessage()
func (*VendorProducts) Reset ¶
func (m *VendorProducts) Reset()
func (*VendorProducts) Size ¶
func (m *VendorProducts) Size() (n int)
func (*VendorProducts) String ¶
func (m *VendorProducts) String() string
func (*VendorProducts) Unmarshal ¶
func (m *VendorProducts) Unmarshal(dAtA []byte) error
func (*VendorProducts) XXX_DiscardUnknown ¶
func (m *VendorProducts) XXX_DiscardUnknown()
func (*VendorProducts) XXX_Marshal ¶
func (m *VendorProducts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VendorProducts) XXX_Merge ¶
func (m *VendorProducts) XXX_Merge(src proto.Message)
func (*VendorProducts) XXX_Size ¶
func (m *VendorProducts) XXX_Size() int
func (*VendorProducts) XXX_Unmarshal ¶
func (m *VendorProducts) XXX_Unmarshal(b []byte) error
Source Files ¶
- codec.go
- errors.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- key_model.go
- key_model_version.go
- key_model_versions.go
- key_vendor_products.go
- keys.go
- messages_model.go
- messages_model_version.go
- model.pb.go
- model_version.pb.go
- model_versions.pb.go
- product.pb.go
- query.pb.go
- query.pb.gw.go
- tx.pb.go
- types.go
- vendor_products.pb.go