Documentation ¶
Index ¶
- Constants
- func Require(condition bool, msg string, flags ...int) error
- func ShouldRefund(flag int) bool
- func WithFlag(err error, flag int) error
- type Error
- type HandlerFunc
- type Request
- func (r *Request) Context() context.Context
- func (r *Request) Copy() *Request
- func (r *Request) Scan(dest ...interface{}) error
- func (r *Request) Tx() *core.Transaction
- func (r *Request) Values() []interface{}
- func (r *Request) WithBody(values ...interface{}) *Request
- func (r *Request) WithContext(ctx context.Context) *Request
- func (r *Request) WithProposal(p *core.Proposal) *Request
Constants ¶
View Source
const ( // 标记成可以退款 FlagRefund = 1 << iota // 1 // 标记成骚扰转账,不退款 FlagNoisy = 1 << iota // 2 )
Variables ¶
This section is empty.
Functions ¶
func ShouldRefund ¶
Types ¶
type HandlerFunc ¶
type Request ¶
type Request struct { Now time.Time Version int64 TraceID string Sender string FollowID string AssetID string Amount decimal.Decimal Action core.Action Body []byte // Permission Gov bool // Action from approved proposal Oracle bool // Action from price oracle Next *Request // contains filtered or unexported fields }
func (*Request) Tx ¶
func (r *Request) Tx() *core.Transaction
Click to show internal directories.
Click to hide internal directories.