prescription

package
v0.0.0-...-b5b3c4d Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

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

type RegisterModelFact struct {
	mitumbase.BaseFact
	// contains filtered or unexported fields
}

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 RegisterModelFactBSONUnmarshaler

type RegisterModelFactBSONUnmarshaler struct {
	Hint     string `bson:"_hint"`
	Sender   string `bson:"sender"`
	Contract string `bson:"contract"`
	Currency string `bson:"currency"`
}

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

type RegisterPrescription

type RegisterPrescription struct {
	common.BaseOperation
}

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)

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 (*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 (RegisterPrescriptionFact) 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 (*RegisterPrescriptionProcessor) Process

type UpdateDataFactBSONUnmarshaler

type UpdateDataFactBSONUnmarshaler struct {
	Hint             string `bson:"_hint"`
	Sender           string `bson:"sender"`
	Contract         string `bson:"contract"`
	PrescriptionHash string `bson:"prescription_hash"`
	PrepareDate      uint64 `bson:"prepare_date"`
	Pharmacy         string `bson:"pharmacy"`
	Currency         string `bson:"currency"`
}

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)

type UsePrescriptionFact

type UsePrescriptionFact struct {
	mitumbase.BaseFact
	// contains filtered or unexported fields
}

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL