Documentation ¶
Index ¶
- Variables
- func NewRegisterModelProcessor() currencytypes.GetNewProcessor
- func NewRegisterPrescriptionProcessor() crtypes.GetNewProcessor
- func NewUsePrescriptionProcessor() crtypes.GetNewProcessorWithProposal
- type CreateDataFactJSONMarshaler
- type CreateDataFactJSONUnmarshaler
- type RegisterModel
- type RegisterModelFact
- func (fact RegisterModelFact) Addresses() ([]mitumbase.Address, error)
- func (fact RegisterModelFact) Bytes() []byte
- func (fact RegisterModelFact) Contract() mitumbase.Address
- func (fact RegisterModelFact) Currency() types.CurrencyID
- func (fact *RegisterModelFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *RegisterModelFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact RegisterModelFact) GenerateHash() util.Hash
- func (fact RegisterModelFact) Hash() util.Hash
- func (fact RegisterModelFact) IsValid(b []byte) error
- func (fact RegisterModelFact) MarshalBSON() ([]byte, error)
- func (fact RegisterModelFact) MarshalJSON() ([]byte, error)
- func (fact RegisterModelFact) Sender() mitumbase.Address
- func (fact RegisterModelFact) Token() mitumbase.Token
- type RegisterModelFactBSONUnmarshaler
- type RegisterModelFactJSONMarshaler
- type RegisterModelFactJSONUnmarshaler
- type RegisterModelProcessor
- func (opp *RegisterModelProcessor) Close() error
- func (opp *RegisterModelProcessor) PreProcess(ctx context.Context, op mitumbase.Operation, ...) (context.Context, mitumbase.OperationProcessReasonError, error)
- func (opp *RegisterModelProcessor) Process(_ context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type RegisterPrescription
- func (op *RegisterPrescription) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (op *RegisterPrescription) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (op RegisterPrescription) MarshalBSON() ([]byte, error)
- func (op RegisterPrescription) MarshalJSON() ([]byte, error)
- func (RegisterPrescription) Process(_ context.Context, _ mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type RegisterPrescriptionFact
- func (fact RegisterPrescriptionFact) Addresses() ([]mitumbase.Address, error)
- func (fact RegisterPrescriptionFact) Bytes() []byte
- func (fact RegisterPrescriptionFact) Contract() mitumbase.Address
- func (fact RegisterPrescriptionFact) Currency() currencytypes.CurrencyID
- func (fact *RegisterPrescriptionFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *RegisterPrescriptionFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact RegisterPrescriptionFact) EndDate() uint64
- func (fact RegisterPrescriptionFact) GenerateHash() util.Hash
- func (fact RegisterPrescriptionFact) Hash() util.Hash
- func (fact RegisterPrescriptionFact) Hospital() string
- func (fact RegisterPrescriptionFact) IsValid(b []byte) error
- func (fact RegisterPrescriptionFact) MarshalBSON() ([]byte, error)
- func (fact RegisterPrescriptionFact) MarshalJSON() ([]byte, error)
- func (fact RegisterPrescriptionFact) PrescribeDate() uint64
- func (fact RegisterPrescriptionFact) PrescriptionHash() string
- func (fact RegisterPrescriptionFact) Sender() mitumbase.Address
- func (fact RegisterPrescriptionFact) Token() mitumbase.Token
- type RegisterPrescriptionFactBSONUnmarshaler
- type RegisterPrescriptionProcessor
- func (opp *RegisterPrescriptionProcessor) Close() error
- func (opp *RegisterPrescriptionProcessor) PreProcess(ctx context.Context, op mitumbase.Operation, ...) (context.Context, mitumbase.OperationProcessReasonError, error)
- func (opp *RegisterPrescriptionProcessor) Process(_ context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type UpdateDataFactBSONUnmarshaler
- type UpdateDataFactJSONMarshaler
- type UpdateDataFactJSONUnmarshaler
- type UsePrescription
- func (op *UsePrescription) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (op *UsePrescription) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (op UsePrescription) MarshalBSON() ([]byte, error)
- func (op UsePrescription) MarshalJSON() ([]byte, error)
- func (UsePrescription) Process(_ context.Context, _ mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type UsePrescriptionFact
- func (fact UsePrescriptionFact) Addresses() ([]mitumbase.Address, error)
- func (fact UsePrescriptionFact) Bytes() []byte
- func (fact UsePrescriptionFact) Contract() mitumbase.Address
- func (fact UsePrescriptionFact) Currency() currencytypes.CurrencyID
- func (fact *UsePrescriptionFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *UsePrescriptionFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact UsePrescriptionFact) GenerateHash() util.Hash
- func (fact UsePrescriptionFact) Hash() util.Hash
- func (fact UsePrescriptionFact) IsValid(b []byte) error
- func (fact UsePrescriptionFact) MarshalBSON() ([]byte, error)
- func (fact UsePrescriptionFact) MarshalJSON() ([]byte, error)
- func (fact UsePrescriptionFact) Pharmacy() string
- func (fact UsePrescriptionFact) PrepareDate() uint64
- func (fact UsePrescriptionFact) PrescriptionHash() string
- func (fact UsePrescriptionFact) Sender() mitumbase.Address
- func (fact UsePrescriptionFact) Token() mitumbase.Token
- type UsePrescriptionProcessor
- func (opp *UsePrescriptionProcessor) Close() error
- func (opp *UsePrescriptionProcessor) PreProcess(ctx context.Context, op mitumbase.Operation, ...) (context.Context, mitumbase.OperationProcessReasonError, error)
- func (opp *UsePrescriptionProcessor) Process(_ context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RegisterModelFactHint = hint.MustNewHint("mitum-prescription-register-model-operation-fact-v0.0.1") RegisterModelHint = hint.MustNewHint("mitum-prescription-register-model-operation-v0.0.1") )
View Source
var ( RegisterPrescriptionFactHint = hint.MustNewHint("mitum-prescription-register-prescription-operation-fact-v0.0.1") RegisterPrescriptionHint = hint.MustNewHint("mitum-prescription-register-prescription-operation-v0.0.1") )
View Source
var ( UsePrescriptionFactHint = hint.MustNewHint("mitum-prescription-use-prescription-operation-fact-v0.0.1") UsePrescriptionHint = hint.MustNewHint("mitum-prescription-use-prescription-operation-v0.0.1") )
Functions ¶
func NewRegisterModelProcessor ¶
func NewRegisterModelProcessor() currencytypes.GetNewProcessor
func NewRegisterPrescriptionProcessor ¶
func NewRegisterPrescriptionProcessor() crtypes.GetNewProcessor
func NewUsePrescriptionProcessor ¶
func NewUsePrescriptionProcessor() crtypes.GetNewProcessorWithProposal
Types ¶
type CreateDataFactJSONMarshaler ¶
type CreateDataFactJSONMarshaler struct { mitumbase.BaseFactJSONMarshaler Sender mitumbase.Address `json:"sender"` Contract mitumbase.Address `json:"contract"` PrescriptionHash string `json:"prescription_hash"` PrescribeDate uint64 `json:"prescribe_date"` EndDate uint64 `json:"end_date"` Hospital string `json:"hospital"` Currency types.CurrencyID `json:"currency"` }
type CreateDataFactJSONUnmarshaler ¶
type CreateDataFactJSONUnmarshaler struct { mitumbase.BaseFactJSONUnmarshaler Sender string `json:"sender"` Contract string `json:"contract"` PrescriptionHash string `json:"prescription_hash"` PrescribeDate uint64 `json:"prescribe_date"` EndDate uint64 `json:"end_date"` Hospital string `json:"hospital"` Currency string `json:"currency"` }
type RegisterModel ¶
type RegisterModel struct {
common.BaseOperation
}
func NewRegisterModel ¶
func NewRegisterModel(fact RegisterModelFact) (RegisterModel, error)
func (*RegisterModel) DecodeBSON ¶
func (op *RegisterModel) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*RegisterModel) DecodeJSON ¶
func (op *RegisterModel) DecodeJSON(b []byte, enc encoder.Encoder) error
func (RegisterModel) MarshalBSON ¶
func (op RegisterModel) MarshalBSON() ([]byte, error)
func (RegisterModel) MarshalJSON ¶
func (op RegisterModel) MarshalJSON() ([]byte, error)
type RegisterModelFact ¶
func NewRegisterModelFact ¶
func NewRegisterModelFact(token []byte, sender, contract mitumbase.Address, currency types.CurrencyID) RegisterModelFact
func (RegisterModelFact) Addresses ¶
func (fact RegisterModelFact) Addresses() ([]mitumbase.Address, error)
func (RegisterModelFact) Bytes ¶
func (fact RegisterModelFact) Bytes() []byte
func (RegisterModelFact) Contract ¶
func (fact RegisterModelFact) Contract() mitumbase.Address
func (RegisterModelFact) Currency ¶
func (fact RegisterModelFact) Currency() types.CurrencyID
func (*RegisterModelFact) DecodeBSON ¶
func (fact *RegisterModelFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*RegisterModelFact) DecodeJSON ¶
func (fact *RegisterModelFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (RegisterModelFact) GenerateHash ¶
func (fact RegisterModelFact) GenerateHash() util.Hash
func (RegisterModelFact) Hash ¶
func (fact RegisterModelFact) Hash() util.Hash
func (RegisterModelFact) IsValid ¶
func (fact RegisterModelFact) IsValid(b []byte) error
func (RegisterModelFact) MarshalBSON ¶
func (fact RegisterModelFact) MarshalBSON() ([]byte, error)
func (RegisterModelFact) MarshalJSON ¶
func (fact RegisterModelFact) MarshalJSON() ([]byte, error)
func (RegisterModelFact) Sender ¶
func (fact RegisterModelFact) Sender() mitumbase.Address
func (RegisterModelFact) Token ¶
func (fact RegisterModelFact) Token() mitumbase.Token
type RegisterModelFactJSONMarshaler ¶
type RegisterModelFactJSONMarshaler struct { mitumbase.BaseFactJSONMarshaler Sender mitumbase.Address `json:"sender"` Contract mitumbase.Address `json:"contract"` Currency types.CurrencyID `json:"currency"` }
type RegisterModelFactJSONUnmarshaler ¶
type RegisterModelFactJSONUnmarshaler struct { mitumbase.BaseFactJSONUnmarshaler Sender string `json:"sender"` Contract string `json:"contract"` Currency string `json:"currency"` }
type RegisterModelProcessor ¶
type RegisterModelProcessor struct {
*mitumbase.BaseOperationProcessor
}
func (*RegisterModelProcessor) Close ¶
func (opp *RegisterModelProcessor) Close() error
func (*RegisterModelProcessor) PreProcess ¶
func (opp *RegisterModelProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) (context.Context, mitumbase.OperationProcessReasonError, error)
func (*RegisterModelProcessor) Process ¶
func (opp *RegisterModelProcessor) Process( _ context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ( []mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error, )
type RegisterPrescription ¶
type RegisterPrescription struct {
common.BaseOperation
}
func NewRegisterPrescription ¶
func NewRegisterPrescription(fact RegisterPrescriptionFact) (RegisterPrescription, error)
func (*RegisterPrescription) DecodeBSON ¶
func (op *RegisterPrescription) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*RegisterPrescription) DecodeJSON ¶
func (op *RegisterPrescription) DecodeJSON(b []byte, enc encoder.Encoder) error
func (RegisterPrescription) MarshalBSON ¶
func (op RegisterPrescription) MarshalBSON() ([]byte, error)
func (RegisterPrescription) MarshalJSON ¶
func (op RegisterPrescription) MarshalJSON() ([]byte, error)
func (RegisterPrescription) Process ¶
func (RegisterPrescription) Process( _ context.Context, _ mitumbase.GetStateFunc, ) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
type RegisterPrescriptionFact ¶
type RegisterPrescriptionFact struct { mitumbase.BaseFact // contains filtered or unexported fields }
func NewRegisterPrescriptionFact ¶
func NewRegisterPrescriptionFact( token []byte, sender, contract mitumbase.Address, prescriptionHash string, prescribeDate, endDate uint64, hospital string, currency currencytypes.CurrencyID) RegisterPrescriptionFact
func (RegisterPrescriptionFact) Addresses ¶
func (fact RegisterPrescriptionFact) Addresses() ([]mitumbase.Address, error)
func (RegisterPrescriptionFact) Bytes ¶
func (fact RegisterPrescriptionFact) Bytes() []byte
func (RegisterPrescriptionFact) Contract ¶
func (fact RegisterPrescriptionFact) Contract() mitumbase.Address
func (RegisterPrescriptionFact) Currency ¶
func (fact RegisterPrescriptionFact) Currency() currencytypes.CurrencyID
func (*RegisterPrescriptionFact) DecodeBSON ¶
func (fact *RegisterPrescriptionFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*RegisterPrescriptionFact) DecodeJSON ¶
func (fact *RegisterPrescriptionFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (RegisterPrescriptionFact) EndDate ¶
func (fact RegisterPrescriptionFact) EndDate() uint64
func (RegisterPrescriptionFact) GenerateHash ¶
func (fact RegisterPrescriptionFact) GenerateHash() util.Hash
func (RegisterPrescriptionFact) Hash ¶
func (fact RegisterPrescriptionFact) Hash() util.Hash
func (RegisterPrescriptionFact) Hospital ¶
func (fact RegisterPrescriptionFact) Hospital() string
func (RegisterPrescriptionFact) IsValid ¶
func (fact RegisterPrescriptionFact) IsValid(b []byte) error
func (RegisterPrescriptionFact) MarshalBSON ¶
func (fact RegisterPrescriptionFact) MarshalBSON() ([]byte, error)
func (RegisterPrescriptionFact) MarshalJSON ¶
func (fact RegisterPrescriptionFact) MarshalJSON() ([]byte, error)
func (RegisterPrescriptionFact) PrescribeDate ¶
func (fact RegisterPrescriptionFact) PrescribeDate() uint64
func (RegisterPrescriptionFact) PrescriptionHash ¶
func (fact RegisterPrescriptionFact) PrescriptionHash() string
func (RegisterPrescriptionFact) Sender ¶
func (fact RegisterPrescriptionFact) Sender() mitumbase.Address
func (RegisterPrescriptionFact) Token ¶
func (fact RegisterPrescriptionFact) Token() mitumbase.Token
type RegisterPrescriptionFactBSONUnmarshaler ¶
type RegisterPrescriptionFactBSONUnmarshaler struct { Hint string `bson:"_hint"` Sender string `bson:"sender"` Contract string `bson:"contract"` PrescriptionHash string `bson:"prescription_hash"` PrescribeDate uint64 `bson:"prescribe_date"` EndDate uint64 `bson:"end_date"` Hospital string `bson:"hospital"` Currency string `bson:"currency"` }
type RegisterPrescriptionProcessor ¶
type RegisterPrescriptionProcessor struct {
*mitumbase.BaseOperationProcessor
}
func (*RegisterPrescriptionProcessor) Close ¶
func (opp *RegisterPrescriptionProcessor) Close() error
func (*RegisterPrescriptionProcessor) PreProcess ¶
func (opp *RegisterPrescriptionProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) (context.Context, mitumbase.OperationProcessReasonError, error)
func (*RegisterPrescriptionProcessor) Process ¶
func (opp *RegisterPrescriptionProcessor) Process( _ context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ( []mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error, )
type UpdateDataFactJSONMarshaler ¶
type UpdateDataFactJSONMarshaler struct { mitumbase.BaseFactJSONMarshaler Sender mitumbase.Address `json:"sender"` Contract mitumbase.Address `json:"contract"` PrescriptionHash string `json:"prescription_hash"` PrepareDate uint64 `json:"prepare_date"` Pharmacy string `json:"pharmacy"` Currency types.CurrencyID `json:"currency"` }
type UpdateDataFactJSONUnmarshaler ¶
type UpdateDataFactJSONUnmarshaler struct { mitumbase.BaseFactJSONUnmarshaler Sender string `json:"sender"` Contract string `json:"contract"` PrescriptionHash string `json:"prescription_hash"` PrepareDate uint64 `json:"prepare_date"` Pharmacy string `json:"pharmacy"` Currency string `json:"currency"` }
type UsePrescription ¶
type UsePrescription struct {
common.BaseOperation
}
func NewUsePrescription ¶
func NewUsePrescription(fact UsePrescriptionFact) (UsePrescription, error)
func (*UsePrescription) DecodeBSON ¶
func (op *UsePrescription) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*UsePrescription) DecodeJSON ¶
func (op *UsePrescription) DecodeJSON(b []byte, enc encoder.Encoder) error
func (UsePrescription) MarshalBSON ¶
func (op UsePrescription) MarshalBSON() ([]byte, error)
func (UsePrescription) MarshalJSON ¶
func (op UsePrescription) MarshalJSON() ([]byte, error)
func (UsePrescription) Process ¶
func (UsePrescription) Process( _ context.Context, _ mitumbase.GetStateFunc, ) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
type UsePrescriptionFact ¶
func NewUsePrescriptionFact ¶
func NewUsePrescriptionFact( token []byte, sender, contract mitumbase.Address, prescriptionHash string, prepareDate uint64, pharmacy string, currency currencytypes.CurrencyID) UsePrescriptionFact
func (UsePrescriptionFact) Addresses ¶
func (fact UsePrescriptionFact) Addresses() ([]mitumbase.Address, error)
func (UsePrescriptionFact) Bytes ¶
func (fact UsePrescriptionFact) Bytes() []byte
func (UsePrescriptionFact) Contract ¶
func (fact UsePrescriptionFact) Contract() mitumbase.Address
func (UsePrescriptionFact) Currency ¶
func (fact UsePrescriptionFact) Currency() currencytypes.CurrencyID
func (*UsePrescriptionFact) DecodeBSON ¶
func (fact *UsePrescriptionFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*UsePrescriptionFact) DecodeJSON ¶
func (fact *UsePrescriptionFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (UsePrescriptionFact) GenerateHash ¶
func (fact UsePrescriptionFact) GenerateHash() util.Hash
func (UsePrescriptionFact) Hash ¶
func (fact UsePrescriptionFact) Hash() util.Hash
func (UsePrescriptionFact) IsValid ¶
func (fact UsePrescriptionFact) IsValid(b []byte) error
func (UsePrescriptionFact) MarshalBSON ¶
func (fact UsePrescriptionFact) MarshalBSON() ([]byte, error)
func (UsePrescriptionFact) MarshalJSON ¶
func (fact UsePrescriptionFact) MarshalJSON() ([]byte, error)
func (UsePrescriptionFact) Pharmacy ¶
func (fact UsePrescriptionFact) Pharmacy() string
func (UsePrescriptionFact) PrepareDate ¶
func (fact UsePrescriptionFact) PrepareDate() uint64
func (UsePrescriptionFact) PrescriptionHash ¶
func (fact UsePrescriptionFact) PrescriptionHash() string
func (UsePrescriptionFact) Sender ¶
func (fact UsePrescriptionFact) Sender() mitumbase.Address
func (UsePrescriptionFact) Token ¶
func (fact UsePrescriptionFact) Token() mitumbase.Token
type UsePrescriptionProcessor ¶
type UsePrescriptionProcessor struct { *mitumbase.BaseOperationProcessor // contains filtered or unexported fields }
func (*UsePrescriptionProcessor) Close ¶
func (opp *UsePrescriptionProcessor) Close() error
func (*UsePrescriptionProcessor) PreProcess ¶
func (opp *UsePrescriptionProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) (context.Context, mitumbase.OperationProcessReasonError, error)
func (*UsePrescriptionProcessor) Process ¶
func (opp *UsePrescriptionProcessor) Process( _ context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ( []mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error, )
Source Files ¶
- register_model.go
- register_model_bson.go
- register_model_encode.go
- register_model_json.go
- register_model_process.go
- register_prescription.go
- register_prescription_bson.go
- register_prescription_encode.go
- register_prescription_json.go
- register_prescription_process.go
- use_prescription.go
- use_prescription_bson.go
- use_prescription_encode.go
- use_prescription_json.go
- use_prescription_process.go
Click to show internal directories.
Click to hide internal directories.