fielddef

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0, MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelFieldDefMarshall

func LabelFieldDefMarshall(f *market.DealLabel) (interface{}, error)

func LabelFieldDefUnmarshall

func LabelFieldDefUnmarshall(marshalled sql.NullString) (*market.DealLabel, error)

Types

type AddrFieldDef

type AddrFieldDef struct {
	Marshalled string
	F          *address.Address
}

func (*AddrFieldDef) FieldPtr

func (fd *AddrFieldDef) FieldPtr() interface{}

func (*AddrFieldDef) Marshall

func (fd *AddrFieldDef) Marshall() (interface{}, error)

func (*AddrFieldDef) Unmarshall

func (fd *AddrFieldDef) Unmarshall() error

type BigIntFieldDef

type BigIntFieldDef struct {
	Marshalled sql.NullString
	F          *big.Int
}

func (*BigIntFieldDef) FieldPtr

func (fd *BigIntFieldDef) FieldPtr() interface{}

func (*BigIntFieldDef) Marshall

func (fd *BigIntFieldDef) Marshall() (interface{}, error)

func (*BigIntFieldDef) Unmarshall

func (fd *BigIntFieldDef) Unmarshall() error

type CidFieldDef

type CidFieldDef struct {
	F *cid.Cid
	// contains filtered or unexported fields
}

func (*CidFieldDef) FieldPtr

func (fd *CidFieldDef) FieldPtr() interface{}

func (*CidFieldDef) Marshall

func (fd *CidFieldDef) Marshall() (interface{}, error)

func (*CidFieldDef) Unmarshall

func (fd *CidFieldDef) Unmarshall() error

type CidPtrFieldDef

type CidPtrFieldDef struct {
	F **cid.Cid
	// contains filtered or unexported fields
}

func (*CidPtrFieldDef) FieldPtr

func (fd *CidPtrFieldDef) FieldPtr() interface{}

func (*CidPtrFieldDef) Marshall

func (fd *CidPtrFieldDef) Marshall() (interface{}, error)

func (*CidPtrFieldDef) Unmarshall

func (fd *CidPtrFieldDef) Unmarshall() error

type CkptFieldDef

type CkptFieldDef struct {
	Marshalled string
	F          *dealcheckpoints.Checkpoint
}

func (*CkptFieldDef) FieldPtr

func (fd *CkptFieldDef) FieldPtr() interface{}

func (*CkptFieldDef) Marshall

func (fd *CkptFieldDef) Marshall() (interface{}, error)

func (*CkptFieldDef) Unmarshall

func (fd *CkptFieldDef) Unmarshall() error

type FieldDef

type FieldDef struct {
	F interface{}
}

func (*FieldDef) FieldPtr

func (fd *FieldDef) FieldPtr() interface{}

func (*FieldDef) Marshall

func (fd *FieldDef) Marshall() (interface{}, error)

func (*FieldDef) Unmarshall

func (fd *FieldDef) Unmarshall() error

type FieldDefinition

type FieldDefinition interface {
	FieldPtr() interface{}
	Marshall() (interface{}, error)
	Unmarshall() error
}

type LabelFieldDef

type LabelFieldDef struct {
	Marshalled sql.NullString
	F          *market.DealLabel
}

func (*LabelFieldDef) FieldPtr

func (fd *LabelFieldDef) FieldPtr() interface{}

func (*LabelFieldDef) Marshall

func (fd *LabelFieldDef) Marshall() (interface{}, error)

func (*LabelFieldDef) Unmarshall

func (fd *LabelFieldDef) Unmarshall() error

type PeerIDFieldDef

type PeerIDFieldDef struct {
	Marshalled sql.NullString
	F          *peer.ID
}

func (*PeerIDFieldDef) FieldPtr

func (fd *PeerIDFieldDef) FieldPtr() interface{}

func (*PeerIDFieldDef) Marshall

func (fd *PeerIDFieldDef) Marshall() (interface{}, error)

func (*PeerIDFieldDef) Unmarshall

func (fd *PeerIDFieldDef) Unmarshall() error

type SigFieldDef

type SigFieldDef struct {
	Marshalled []byte
	F          *crypto.Signature
}

func (*SigFieldDef) FieldPtr

func (fd *SigFieldDef) FieldPtr() interface{}

func (*SigFieldDef) Marshall

func (fd *SigFieldDef) Marshall() (interface{}, error)

func (*SigFieldDef) Unmarshall

func (fd *SigFieldDef) Unmarshall() error

type SignedPropFieldDef

type SignedPropFieldDef struct {
	Marshalled string
	F          *cid.Cid
	Prop       market.ClientDealProposal
}

func (*SignedPropFieldDef) FieldPtr

func (fd *SignedPropFieldDef) FieldPtr() interface{}

func (*SignedPropFieldDef) Marshall

func (fd *SignedPropFieldDef) Marshall() (interface{}, error)

func (*SignedPropFieldDef) Unmarshall

func (fd *SignedPropFieldDef) Unmarshall() error

Jump to

Keyboard shortcuts

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