record

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 15 Imported by: 22

Documentation

Index

Constants

View Source
const (
	// StateUndefined is used for special cases.
	StateUndefined = StateID(iota)
	// StateActivation means it's an activation record.
	StateActivation
	// StateAmend means it's an amend record.
	StateAmend
	// StateDeactivation means it's a deactivation record.
	StateDeactivation
)

Variables

View Source
var (
	ErrInvalidLengthRecord = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRecord   = fmt.Errorf("proto: integer overflow")
)
View Source
var CallType_name = map[int32]string{
	0: "CTMethod",
	1: "CTSaveAsChild",
	2: "CTGenesis",
	3: "CTDeployPrototype",
}
View Source
var CallType_value = map[string]int32{
	"CTMethod":          0,
	"CTSaveAsChild":     1,
	"CTGenesis":         2,
	"CTDeployPrototype": 3,
}
View Source
var ReturnMode_name = map[int32]string{
	0: "ReturnResult",
	1: "ReturnSaga",
}
View Source
var ReturnMode_value = map[string]int32{
	"ReturnResult": 0,
	"ReturnSaga":   1,
}

Functions

func CalculateRequestAffinityRef

func CalculateRequestAffinityRef(
	request Request,
	pulseNumber insolar.PulseNumber,
	scheme insolar.PlatformCryptographyScheme,
) *insolar.Reference

func HashVirtual

func HashVirtual(h hash.Hash, rec Virtual) []byte

HashVirtual returns hash for virtual record.

Types

type Activate

type Activate struct {
	Polymorph   int32                                        `protobuf:"varint,16,opt,name=polymorph,proto3" json:"polymorph,omitempty"`
	Request     github_com_insolar_insolar_insolar.Reference `protobuf:"bytes,20,opt,name=Request,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Request"`
	Memory      []byte                                       `protobuf:"bytes,21,opt,name=Memory,proto3" json:"Memory,omitempty"`
	Image       github_com_insolar_insolar_insolar.Reference `protobuf:"bytes,22,opt,name=Image,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Image"`
	IsPrototype bool                                         `protobuf:"varint,23,opt,name=IsPrototype,proto3" json:"IsPrototype,omitempty"`
	Parent      github_com_insolar_insolar_insolar.Reference `protobuf:"bytes,24,opt,name=Parent,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Parent"`
}

func (*Activate) Descriptor

func (*Activate) Descriptor() ([]byte, []int)

func (*Activate) Equal

func (this *Activate) Equal(that interface{}) bool

func (Activate) GetImage

func (p Activate) GetImage() *insolar.Reference

func (Activate) GetIsPrototype

func (p Activate) GetIsPrototype() bool

func (Activate) GetMemory

func (p Activate) GetMemory() []byte

func (*Activate) GoString

func (this *Activate) GoString() string

func (Activate) ID

func (Activate) ID() StateID

func (*Activate) Marshal

func (m *Activate) Marshal() (dAtA []byte, err error)

func (*Activate) MarshalTo

func (m *Activate) MarshalTo(dAtA []byte) (int, error)

func (Activate) PrevStateID

func (Activate) PrevStateID() *insolar.ID

func (*Activate) ProtoMessage

func (*Activate) ProtoMessage()

func (*Activate) Reset

func (m *Activate) Reset()

func (*Activate) Size

func (m *Activate) Size() (n int)

func (*Activate) String

func (this *Activate) String() string

func (*Activate) Unmarshal

func (m *Activate) Unmarshal(dAtA []byte) error

func (*Activate) XXX_DiscardUnknown

func (m *Activate) XXX_DiscardUnknown()

func (*Activate) XXX_Marshal

func (m *Activate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Activate) XXX_Merge

func (m *Activate) XXX_Merge(src proto.Message)

func (*Activate) XXX_Size

func (m *Activate) XXX_Size() int

func (*Activate) XXX_Unmarshal

func (m *Activate) XXX_Unmarshal(b []byte) error

type Amend

type Amend struct {
	Polymorph   int32                                        `protobuf:"varint,16,opt,name=polymorph,proto3" json:"polymorph,omitempty"`
	Request     github_com_insolar_insolar_insolar.Reference `protobuf:"bytes,20,opt,name=Request,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Request"`
	Memory      []byte                                       `protobuf:"bytes,21,opt,name=Memory,proto3" json:"Memory,omitempty"`
	Image       github_com_insolar_insolar_insolar.Reference `protobuf:"bytes,22,opt,name=Image,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Image"`
	IsPrototype bool                                         `protobuf:"varint,23,opt,name=IsPrototype,proto3" json:"IsPrototype,omitempty"`
	PrevState   github_com_insolar_insolar_insolar.ID        `protobuf:"bytes,24,opt,name=PrevState,proto3,customtype=github.com/insolar/insolar/insolar.ID" json:"PrevState"`
}

func (*Amend) Descriptor

func (*Amend) Descriptor() ([]byte, []int)

func (*Amend) Equal

func (this *Amend) Equal(that interface{}) bool

func (Amend) GetImage

func (p Amend) GetImage() *insolar.Reference

func (Amend) GetIsPrototype

func (p Amend) GetIsPrototype() bool

func (Amend) GetMemory

func (p Amend) GetMemory() []byte

func (*Amend) GoString

func (this *Amend) GoString() string

func (Amend) ID

func (Amend) ID() StateID

func (*Amend) Marshal

func (m *Amend) Marshal() (dAtA []byte, err error)

func (*Amend) MarshalTo

func (m *Amend) MarshalTo(dAtA []byte) (int, error)

func (Amend) PrevStateID

func (p Amend) PrevStateID() *insolar.ID

func (*Amend) ProtoMessage

func (*Amend) ProtoMessage()

func (*Amend) Reset

func (m *Amend) Reset()

func (*Amend) Size

func (m *Amend) Size() (n int)

func (*Amend) String

func (this *Amend) String() string

func (*Amend) Unmarshal

func (m *Amend) Unmarshal(dAtA []byte) error

func (*Amend) XXX_DiscardUnknown

func (m *Amend) XXX_DiscardUnknown()

func (*Amend) XXX_Marshal

func (m *Amend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Amend) XXX_Merge

func (m *Amend) XXX_Merge(src proto.Message)

func (*Amend) XXX_Size

func (m *Amend) XXX_Size() int

func (*Amend) XXX_Unmarshal

func (m *Amend) XXX_Unmarshal(b []byte) error

type CallType

type CallType int32
const (
	CTMethod          CallType = 0
	CTSaveAsChild     CallType = 1
	CTGenesis         CallType = 2
	CTDeployPrototype CallType = 3
)

func (CallType) EnumDescriptor

func (CallType) EnumDescriptor() ([]byte, []int)

func (CallType) String

func (x CallType) String() string

type Code

type Code struct {
	Polymorph   int32                                          `protobuf:"varint,16,opt,name=polymorph,proto3" json:"polymorph,omitempty"`
	Request     github_com_insolar_insolar_insolar.Reference   `protobuf:"bytes,20,opt,name=Request,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Request"`
	Code        []byte                                         `protobuf:"bytes,21,opt,name=Code,proto3" json:"Code,omitempty"`
	MachineType github_com_insolar_insolar_insolar.MachineType `protobuf:"varint,22,opt,name=MachineType,proto3,customtype=github.com/insolar/insolar/insolar.MachineType" json:"MachineType"`
}

func NewCodeFromFace

func NewCodeFromFace(that CodeFace) *Code

func (*Code) Descriptor

func (*Code) Descriptor() ([]byte, []int)

func (*Code) Equal

func (this *Code) Equal(that interface{}) bool

func (*Code) GetCode

func (this *Code) GetCode() []byte

func (*Code) GetMachineType

func (this *Code) GetMachineType() github_com_insolar_insolar_insolar.MachineType

func (*Code) GetPolymorph

func (this *Code) GetPolymorph() int32

func (*Code) GetRequest

func (*Code) GoString

func (this *Code) GoString() string

func (*Code) Marshal

func (m *Code) Marshal() (dAtA []byte, err error)

func (*Code) MarshalTo

func (m *Code) MarshalTo(dAtA []byte) (int, error)

func (*Code) Proto

func (*Code) ProtoMessage

func (*Code) ProtoMessage()

func (*Code) Reset

func (m *Code) Reset()

func (*Code) Size

func (m *Code) Size() (n int)

func (*Code) String

func (this *Code) String() string

func (*Code) TestProto

func (this *Code) TestProto() github_com_gogo_protobuf_proto.Message

func (*Code) Unmarshal

func (m *Code) Unmarshal(dAtA []byte) error

func (*Code) XXX_DiscardUnknown

func (m *Code) XXX_DiscardUnknown()

func (*Code) XXX_Marshal

func (m *Code) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Code) XXX_Merge

func (m *Code) XXX_Merge(src proto.Message)

func (*Code) XXX_Size

func (m *Code) XXX_Size() int

func (*Code) XXX_Unmarshal

func (m *Code) XXX_Unmarshal(b []byte) error

type CodeFace

type CodeFace interface {
	Proto() github_com_gogo_protobuf_proto.Message
	GetPolymorph() int32
	GetRequest() github_com_insolar_insolar_insolar.Reference
	GetCode() []byte
	GetMachineType() github_com_insolar_insolar_insolar.MachineType
}

type CompositeFilamentRecord

type CompositeFilamentRecord struct {
	Polymorph int32                                 `protobuf:"varint,16,opt,name=polymorph,proto3" json:"polymorph,omitempty"`
	RecordID  github_com_insolar_insolar_insolar.ID `protobuf:"bytes,20,opt,name=RecordID,proto3,customtype=github.com/insolar/insolar/insolar.ID" json:"RecordID"`
	Record    Material                              `protobuf:"bytes,21,opt,name=Record,proto3" json:"Record"`
	MetaID    github_com_insolar_insolar_insolar.ID `protobuf:"bytes,22,opt,name=MetaID,proto3,customtype=github.com/insolar/insolar/insolar.ID" json:"MetaID"`
	Meta      Material                              `protobuf:"bytes,23,opt,name=Meta,proto3" json:"Meta"`
}

func (*CompositeFilamentRecord) Descriptor

func (*CompositeFilamentRecord) Descriptor() ([]byte, []int)

func (*CompositeFilamentRecord) Equal

func (this *CompositeFilamentRecord) Equal(that interface{}) bool

func (*CompositeFilamentRecord) GoString

func (this *CompositeFilamentRecord) GoString() string

func (*CompositeFilamentRecord) Marshal

func (m *CompositeFilamentRecord) Marshal() (dAtA []byte, err error)

func (*CompositeFilamentRecord) MarshalTo

func (m *CompositeFilamentRecord) MarshalTo(dAtA []byte) (int, error)

func (*CompositeFilamentRecord) ProtoMessage

func (*CompositeFilamentRecord) ProtoMessage()

func (*CompositeFilamentRecord) Reset

func (m *CompositeFilamentRecord) Reset()

func (*CompositeFilamentRecord) Size

func (m *CompositeFilamentRecord) Size() (n int)

func (*CompositeFilamentRecord) String

func (this *CompositeFilamentRecord) String() string

func (*CompositeFilamentRecord) Unmarshal

func (m *CompositeFilamentRecord) Unmarshal(dAtA []byte) error

func (*CompositeFilamentRecord) XXX_DiscardUnknown

func (m *CompositeFilamentRecord) XXX_DiscardUnknown()

func (*CompositeFilamentRecord) XXX_Marshal

func (m *CompositeFilamentRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CompositeFilamentRecord) XXX_Merge

func (m *CompositeFilamentRecord) XXX_Merge(src proto.Message)

func (*CompositeFilamentRecord) XXX_Size

func (m *CompositeFilamentRecord) XXX_Size() int

func (*CompositeFilamentRecord) XXX_Unmarshal

func (m *CompositeFilamentRecord) XXX_Unmarshal(b []byte) error

type Deactivate

type Deactivate struct {
	Polymorph int32                                        `protobuf:"varint,16,opt,name=polymorph,proto3" json:"polymorph,omitempty"`
	Request   github_com_insolar_insolar_insolar.Reference `protobuf:"bytes,20,opt,name=Request,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Request"`
	PrevState github_com_insolar_insolar_insolar.ID        `protobuf:"bytes,21,opt,name=PrevState,proto3,customtype=github.com/insolar/insolar/insolar.ID" json:"PrevState"`
}

func (*Deactivate) Descriptor

func (*Deactivate) Descriptor() ([]byte, []int)

func (*Deactivate) Equal

func (this *Deactivate) Equal(that interface{}) bool

func (Deactivate) GetImage

func (Deactivate) GetImage() *insolar.Reference

func (Deactivate) GetIsPrototype

func (Deactivate) GetIsPrototype() bool

func (Deactivate) GetMemory

func (Deactivate) GetMemory() []byte

func (*Deactivate) GoString

func (this *Deactivate) GoString() string

func (Deactivate) ID

func (Deactivate) ID() StateID

func (*Deactivate) Marshal

func (m *Deactivate) Marshal() (dAtA []byte, err error)

func (*Deactivate) MarshalTo

func (m *Deactivate) MarshalTo(dAtA []byte) (int, error)

func (Deactivate) PrevStateID

func (p Deactivate) PrevStateID() *insolar.ID

func (*Deactivate) ProtoMessage

func (*Deactivate) ProtoMessage()

func (*Deactivate) Reset

func (m *Deactivate) Reset()

func (*Deactivate) Size

func (m *Deactivate) Size() (n int)

func (*Deactivate) String

func (this *Deactivate) String() string

func (*Deactivate) Unmarshal

func (m *Deactivate) Unmarshal(dAtA []byte) error

func (*Deactivate) XXX_DiscardUnknown

func (m *Deactivate) XXX_DiscardUnknown()

func (*Deactivate) XXX_Marshal

func (m *Deactivate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Deactivate) XXX_Merge

func (m *Deactivate) XXX_Merge(src proto.Message)

func (*Deactivate) XXX_Size

func (m *Deactivate) XXX_Size() int

func (*Deactivate) XXX_Unmarshal

func (m *Deactivate) XXX_Unmarshal(b []byte) error

type Genesis

type Genesis struct {
	Polymorph int32  `protobuf:"varint,16,opt,name=polymorph,proto3" json:"polymorph,omitempty"`
	Hash      []byte `protobuf:"bytes,20,opt,name=Hash,proto3" json:"Hash,omitempty"`
}

func NewGenesisFromFace

func NewGenesisFromFace(that GenesisFace) *Genesis

func (*Genesis) Descriptor

func (*Genesis) Descriptor() ([]byte, []int)

func (*Genesis) Equal

func (this *Genesis) Equal(that interface{}) bool

func (*Genesis) GetHash

func (this *Genesis) GetHash() []byte

func (Genesis) GetImage

func (Genesis) GetImage() *insolar.Reference

func (Genesis) GetIsPrototype

func (Genesis) GetIsPrototype() bool

func (Genesis) GetMemory

func (Genesis) GetMemory() []byte

func (*Genesis) GetPolymorph

func (this *Genesis) GetPolymorph() int32

func (*Genesis) GoString

func (this *Genesis) GoString() string

func (Genesis) ID

func (Genesis) ID() StateID

func (*Genesis) Marshal

func (m *Genesis) Marshal() (dAtA []byte, err error)

func (*Genesis) MarshalTo

func (m *Genesis) MarshalTo(dAtA []byte) (int, error)

func (Genesis) PrevStateID

func (Genesis) PrevStateID() *insolar.ID

func (*Genesis) Proto

func (*Genesis) ProtoMessage

func (*Genesis) ProtoMessage()

func (*Genesis) Reset

func (m *Genesis) Reset()

func (*Genesis) Size

func (m *Genesis) Size() (n int)

func (*Genesis) String

func (this *Genesis) String() string

func (*Genesis) TestProto

func (*Genesis) Unmarshal

func (m *Genesis) Unmarshal(dAtA []byte) error

func (*Genesis) XXX_DiscardUnknown

func (m *Genesis) XXX_DiscardUnknown()

func (*Genesis) XXX_Marshal

func (m *Genesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Genesis) XXX_Merge

func (m *Genesis) XXX_Merge(src proto.Message)

func (*Genesis) XXX_Size

func (m *Genesis) XXX_Size() int

func (*Genesis) XXX_Unmarshal

func (m *Genesis) XXX_Unmarshal(b []byte) error

type GenesisFace

type GenesisFace interface {
	Proto() github_com_gogo_protobuf_proto.Message
	GetPolymorph() int32
	GetHash() []byte
}

type IncomingRequest

type IncomingRequest struct {
	Polymorph       int32                                         `protobuf:"varint,16,opt,name=polymorph,proto3" json:"polymorph,omitempty"`
	CallType        CallType                                      `protobuf:"varint,20,opt,name=CallType,proto3,enum=record.CallType" json:"CallType,omitempty"`
	Caller          github_com_insolar_insolar_insolar.Reference  `protobuf:"bytes,21,opt,name=Caller,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Caller"`
	CallerPrototype github_com_insolar_insolar_insolar.Reference  `` /* 130-byte string literal not displayed */
	Nonce           uint64                                        `protobuf:"varint,23,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	ReturnMode      ReturnMode                                    `protobuf:"varint,25,opt,name=ReturnMode,proto3,enum=record.ReturnMode" json:"ReturnMode,omitempty"`
	Immutable       bool                                          `protobuf:"varint,26,opt,name=Immutable,proto3" json:"Immutable,omitempty"`
	Base            *github_com_insolar_insolar_insolar.Reference `protobuf:"bytes,27,opt,name=Base,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Base,omitempty"`
	Object          *github_com_insolar_insolar_insolar.Reference `protobuf:"bytes,28,opt,name=Object,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Object,omitempty"`
	Prototype       *github_com_insolar_insolar_insolar.Reference `` /* 128-byte string literal not displayed */
	Method          string                                        `protobuf:"bytes,30,opt,name=Method,proto3" json:"Method,omitempty"`
	Arguments       []byte                                        `protobuf:"bytes,31,opt,name=Arguments,proto3" json:"Arguments,omitempty"`
	APIRequestID    string                                        `protobuf:"bytes,33,opt,name=APIRequestID,proto3" json:"APIRequestID,omitempty"`
	Reason          github_com_insolar_insolar_insolar.Reference  `protobuf:"bytes,34,opt,name=Reason,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Reason"`
	APINode         github_com_insolar_insolar_insolar.Reference  `protobuf:"bytes,35,opt,name=APINode,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"APINode"`
}

func NewIncomingRequestFromFace

func NewIncomingRequestFromFace(that IncomingRequestFace) *IncomingRequest

func (*IncomingRequest) AffinityRef

func (r *IncomingRequest) AffinityRef() *insolar.Reference

func (*IncomingRequest) Descriptor

func (*IncomingRequest) Descriptor() ([]byte, []int)

func (*IncomingRequest) Equal

func (this *IncomingRequest) Equal(that interface{}) bool

func (*IncomingRequest) GetAPINode

func (*IncomingRequest) GetAPIRequestID

func (this *IncomingRequest) GetAPIRequestID() string

func (*IncomingRequest) GetArguments

func (this *IncomingRequest) GetArguments() []byte

func (*IncomingRequest) GetBase

func (*IncomingRequest) GetCallType

func (this *IncomingRequest) GetCallType() CallType

func (*IncomingRequest) GetCaller

func (*IncomingRequest) GetCallerPrototype

func (*IncomingRequest) GetImmutable

func (this *IncomingRequest) GetImmutable() bool

func (*IncomingRequest) GetMethod

func (this *IncomingRequest) GetMethod() string

func (*IncomingRequest) GetNonce

func (this *IncomingRequest) GetNonce() uint64

func (*IncomingRequest) GetObject

func (*IncomingRequest) GetPolymorph

func (this *IncomingRequest) GetPolymorph() int32

func (*IncomingRequest) GetPrototype

func (*IncomingRequest) GetReason

func (*IncomingRequest) GetReturnMode

func (this *IncomingRequest) GetReturnMode() ReturnMode

func (*IncomingRequest) GoString

func (this *IncomingRequest) GoString() string

func (*IncomingRequest) IsAPIRequest

func (r *IncomingRequest) IsAPIRequest() bool

func (*IncomingRequest) IsCreationRequest

func (r *IncomingRequest) IsCreationRequest() bool

func (*IncomingRequest) IsDetachedCall

func (r *IncomingRequest) IsDetachedCall() bool

func (*IncomingRequest) IsTemporaryUploadCode

func (r *IncomingRequest) IsTemporaryUploadCode() bool

func (*IncomingRequest) Marshal

func (m *IncomingRequest) Marshal() (dAtA []byte, err error)

func (*IncomingRequest) MarshalTo

func (m *IncomingRequest) MarshalTo(dAtA []byte) (int, error)

func (*IncomingRequest) Proto

func (*IncomingRequest) ProtoMessage

func (*IncomingRequest) ProtoMessage()

func (*IncomingRequest) ReasonAffinityRef

func (r *IncomingRequest) ReasonAffinityRef() insolar.Reference

func (*IncomingRequest) ReasonRef

func (r *IncomingRequest) ReasonRef() insolar.Reference

func (*IncomingRequest) Reset

func (m *IncomingRequest) Reset()

func (*IncomingRequest) Size

func (m *IncomingRequest) Size() (n int)

func (*IncomingRequest) String

func (this *IncomingRequest) String() string

func (*IncomingRequest) TestProto

func (*IncomingRequest) Unmarshal

func (m *IncomingRequest) Unmarshal(dAtA []byte) error

func (*IncomingRequest) Validate

func (r *IncomingRequest) Validate() error

func (*IncomingRequest) XXX_DiscardUnknown

func (m *IncomingRequest) XXX_DiscardUnknown()

func (*IncomingRequest) XXX_Marshal

func (m *IncomingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IncomingRequest) XXX_Merge

func (m *IncomingRequest) XXX_Merge(src proto.Message)

func (*IncomingRequest) XXX_Size

func (m *IncomingRequest) XXX_Size() int

func (*IncomingRequest) XXX_Unmarshal

func (m *IncomingRequest) XXX_Unmarshal(b []byte) error

type IncomingRequestFace

type IncomingRequestFace interface {
	Proto() github_com_gogo_protobuf_proto.Message
	GetPolymorph() int32
	GetCallType() CallType
	GetCaller() github_com_insolar_insolar_insolar.Reference
	GetCallerPrototype() github_com_insolar_insolar_insolar.Reference
	GetNonce() uint64
	GetReturnMode() ReturnMode
	GetImmutable() bool
	GetBase() *github_com_insolar_insolar_insolar.Reference
	GetObject() *github_com_insolar_insolar_insolar.Reference
	GetPrototype() *github_com_insolar_insolar_insolar.Reference
	GetMethod() string
	GetArguments() []byte
	GetAPIRequestID() string
	GetReason() github_com_insolar_insolar_insolar.Reference
	GetAPINode() github_com_insolar_insolar_insolar.Reference
}

type Index

type Index struct {
	Polymorph        int32                                          `protobuf:"varint,16,opt,name=Polymorph,proto3" json:"Polymorph,omitempty"`
	ObjID            github_com_insolar_insolar_insolar.ID          `protobuf:"bytes,20,opt,name=ObjID,proto3,customtype=github.com/insolar/insolar/insolar.ID" json:"ObjID"`
	Lifeline         Lifeline                                       `protobuf:"bytes,21,opt,name=Lifeline,proto3" json:"Lifeline"`
	LifelineLastUsed github_com_insolar_insolar_insolar.PulseNumber `` /* 135-byte string literal not displayed */
	PendingRecords   []github_com_insolar_insolar_insolar.ID        `protobuf:"bytes,23,rep,name=PendingRecords,proto3,customtype=github.com/insolar/insolar/insolar.ID" json:"PendingRecords"`
}

func (*Index) Descriptor

func (*Index) Descriptor() ([]byte, []int)

func (*Index) Equal

func (this *Index) Equal(that interface{}) bool

func (*Index) GoString

func (this *Index) GoString() string

func (*Index) Marshal

func (m *Index) Marshal() (dAtA []byte, err error)

func (*Index) MarshalTo

func (m *Index) MarshalTo(dAtA []byte) (int, error)

func (*Index) ProtoMessage

func (*Index) ProtoMessage()

func (*Index) Reset

func (m *Index) Reset()

func (*Index) Size

func (m *Index) Size() (n int)

func (*Index) String

func (this *Index) String() string

func (*Index) Unmarshal

func (m *Index) Unmarshal(dAtA []byte) error

func (*Index) XXX_DiscardUnknown

func (m *Index) XXX_DiscardUnknown()

func (*Index) XXX_Marshal

func (m *Index) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Index) XXX_Merge

func (m *Index) XXX_Merge(src proto.Message)

func (*Index) XXX_Size

func (m *Index) XXX_Size() int

func (*Index) XXX_Unmarshal

func (m *Index) XXX_Unmarshal(b []byte) error

type Lifeline

type Lifeline struct {
	Polymorph           int32                                           `protobuf:"varint,16,opt,name=Polymorph,proto3" json:"Polymorph,omitempty"`
	LatestState         *github_com_insolar_insolar_insolar.ID          `protobuf:"bytes,20,opt,name=LatestState,proto3,customtype=github.com/insolar/insolar/insolar.ID" json:"LatestState,omitempty"`
	StateID             StateID                                         `protobuf:"varint,21,opt,name=StateID,proto3,customtype=StateID" json:"StateID"`
	Parent              github_com_insolar_insolar_insolar.Reference    `protobuf:"bytes,22,opt,name=Parent,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Parent"`
	LatestRequest       *github_com_insolar_insolar_insolar.ID          `` /* 129-byte string literal not displayed */
	EarliestOpenRequest *github_com_insolar_insolar_insolar.PulseNumber `` /* 150-byte string literal not displayed */
}

func (*Lifeline) Descriptor

func (*Lifeline) Descriptor() ([]byte, []int)

func (*Lifeline) Equal

func (this *Lifeline) Equal(that interface{}) bool

func (*Lifeline) GoString

func (this *Lifeline) GoString() string

func (*Lifeline) Marshal

func (m *Lifeline) Marshal() (dAtA []byte, err error)

func (*Lifeline) MarshalTo

func (m *Lifeline) MarshalTo(dAtA []byte) (int, error)

func (*Lifeline) ProtoMessage

func (*Lifeline) ProtoMessage()

func (*Lifeline) Reset

func (m *Lifeline) Reset()

func (*Lifeline) Size

func (m *Lifeline) Size() (n int)

func (*Lifeline) String

func (this *Lifeline) String() string

func (*Lifeline) Unmarshal

func (m *Lifeline) Unmarshal(dAtA []byte) error

func (*Lifeline) XXX_DiscardUnknown

func (m *Lifeline) XXX_DiscardUnknown()

func (*Lifeline) XXX_Marshal

func (m *Lifeline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Lifeline) XXX_Merge

func (m *Lifeline) XXX_Merge(src proto.Message)

func (*Lifeline) XXX_Size

func (m *Lifeline) XXX_Size() int

func (*Lifeline) XXX_Unmarshal

func (m *Lifeline) XXX_Unmarshal(b []byte) error

type Material

type Material struct {
	Polymorph int32                                    `protobuf:"varint,16,opt,name=polymorph,proto3" json:"polymorph,omitempty"`
	Virtual   Virtual                                  `protobuf:"bytes,20,opt,name=Virtual,proto3" json:"Virtual"`
	ID        github_com_insolar_insolar_insolar.ID    `protobuf:"bytes,21,opt,name=ID,proto3,customtype=github.com/insolar/insolar/insolar.ID" json:"ID"`
	ObjectID  github_com_insolar_insolar_insolar.ID    `protobuf:"bytes,22,opt,name=ObjectID,proto3,customtype=github.com/insolar/insolar/insolar.ID" json:"ObjectID"`
	JetID     github_com_insolar_insolar_insolar.JetID `protobuf:"bytes,23,opt,name=JetID,proto3,customtype=github.com/insolar/insolar/insolar.JetID" json:"JetID"`
	Signature []byte                                   `protobuf:"bytes,200,opt,name=Signature,proto3" json:"Signature,omitempty"`
}

func (*Material) Descriptor

func (*Material) Descriptor() ([]byte, []int)

func (*Material) Equal

func (this *Material) Equal(that interface{}) bool

func (*Material) GoString

func (this *Material) GoString() string

func (*Material) Marshal

func (m *Material) Marshal() (dAtA []byte, err error)

func (*Material) MarshalTo

func (m *Material) MarshalTo(dAtA []byte) (int, error)

func (*Material) ProtoMessage

func (*Material) ProtoMessage()

func (*Material) Reset

func (m *Material) Reset()

func (*Material) Size

func (m *Material) Size() (n int)

func (*Material) String

func (this *Material) String() string

func (*Material) Unmarshal

func (m *Material) Unmarshal(dAtA []byte) error

func (*Material) XXX_DiscardUnknown

func (m *Material) XXX_DiscardUnknown()

func (*Material) XXX_Marshal

func (m *Material) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Material) XXX_Merge

func (m *Material) XXX_Merge(src proto.Message)

func (*Material) XXX_Size

func (m *Material) XXX_Size() int

func (*Material) XXX_Unmarshal

func (m *Material) XXX_Unmarshal(b []byte) error

type OutgoingRequest

type OutgoingRequest struct {
	Polymorph       int32                                         `protobuf:"varint,16,opt,name=polymorph,proto3" json:"polymorph,omitempty"`
	CallType        CallType                                      `protobuf:"varint,20,opt,name=CallType,proto3,enum=record.CallType" json:"CallType,omitempty"`
	Caller          github_com_insolar_insolar_insolar.Reference  `protobuf:"bytes,21,opt,name=Caller,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Caller"`
	CallerPrototype github_com_insolar_insolar_insolar.Reference  `` /* 130-byte string literal not displayed */
	Nonce           uint64                                        `protobuf:"varint,23,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	ReturnMode      ReturnMode                                    `protobuf:"varint,25,opt,name=ReturnMode,proto3,enum=record.ReturnMode" json:"ReturnMode,omitempty"`
	Immutable       bool                                          `protobuf:"varint,26,opt,name=Immutable,proto3" json:"Immutable,omitempty"`
	Base            *github_com_insolar_insolar_insolar.Reference `protobuf:"bytes,27,opt,name=Base,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Base,omitempty"`
	Object          *github_com_insolar_insolar_insolar.Reference `protobuf:"bytes,28,opt,name=Object,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Object,omitempty"`
	Prototype       *github_com_insolar_insolar_insolar.Reference `` /* 128-byte string literal not displayed */
	Method          string                                        `protobuf:"bytes,30,opt,name=Method,proto3" json:"Method,omitempty"`
	Arguments       []byte                                        `protobuf:"bytes,31,opt,name=Arguments,proto3" json:"Arguments,omitempty"`
	APIRequestID    string                                        `protobuf:"bytes,33,opt,name=APIRequestID,proto3" json:"APIRequestID,omitempty"`
	Reason          github_com_insolar_insolar_insolar.Reference  `protobuf:"bytes,34,opt,name=Reason,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Reason"`
	APINode         github_com_insolar_insolar_insolar.Reference  `protobuf:"bytes,35,opt,name=APINode,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"APINode"`
}

func NewOutgoingRequestFromFace

func NewOutgoingRequestFromFace(that OutgoingRequestFace) *OutgoingRequest

func (*OutgoingRequest) AffinityRef

func (r *OutgoingRequest) AffinityRef() *insolar.Reference

func (*OutgoingRequest) Descriptor

func (*OutgoingRequest) Descriptor() ([]byte, []int)

func (*OutgoingRequest) Equal

func (this *OutgoingRequest) Equal(that interface{}) bool

func (*OutgoingRequest) GetAPINode

func (*OutgoingRequest) GetAPIRequestID

func (this *OutgoingRequest) GetAPIRequestID() string

func (*OutgoingRequest) GetArguments

func (this *OutgoingRequest) GetArguments() []byte

func (*OutgoingRequest) GetBase

func (*OutgoingRequest) GetCallType

func (this *OutgoingRequest) GetCallType() CallType

func (*OutgoingRequest) GetCaller

func (*OutgoingRequest) GetCallerPrototype

func (*OutgoingRequest) GetImmutable

func (this *OutgoingRequest) GetImmutable() bool

func (*OutgoingRequest) GetMethod

func (this *OutgoingRequest) GetMethod() string

func (*OutgoingRequest) GetNonce

func (this *OutgoingRequest) GetNonce() uint64

func (*OutgoingRequest) GetObject

func (*OutgoingRequest) GetPolymorph

func (this *OutgoingRequest) GetPolymorph() int32

func (*OutgoingRequest) GetPrototype

func (*OutgoingRequest) GetReason

func (*OutgoingRequest) GetReturnMode

func (this *OutgoingRequest) GetReturnMode() ReturnMode

func (*OutgoingRequest) GoString

func (this *OutgoingRequest) GoString() string

func (*OutgoingRequest) IsAPIRequest

func (r *OutgoingRequest) IsAPIRequest() bool

func (*OutgoingRequest) IsCreationRequest

func (r *OutgoingRequest) IsCreationRequest() bool

func (*OutgoingRequest) IsDetached

func (r *OutgoingRequest) IsDetached() bool

func (*OutgoingRequest) IsTemporaryUploadCode

func (r *OutgoingRequest) IsTemporaryUploadCode() bool

func (*OutgoingRequest) Marshal

func (m *OutgoingRequest) Marshal() (dAtA []byte, err error)

func (*OutgoingRequest) MarshalTo

func (m *OutgoingRequest) MarshalTo(dAtA []byte) (int, error)

func (*OutgoingRequest) Proto

func (*OutgoingRequest) ProtoMessage

func (*OutgoingRequest) ProtoMessage()

func (*OutgoingRequest) ReasonAffinityRef

func (r *OutgoingRequest) ReasonAffinityRef() insolar.Reference

func (*OutgoingRequest) ReasonRef

func (r *OutgoingRequest) ReasonRef() insolar.Reference

func (*OutgoingRequest) Reset

func (m *OutgoingRequest) Reset()

func (*OutgoingRequest) Size

func (m *OutgoingRequest) Size() (n int)

func (*OutgoingRequest) String

func (this *OutgoingRequest) String() string

func (*OutgoingRequest) TestProto

func (*OutgoingRequest) Unmarshal

func (m *OutgoingRequest) Unmarshal(dAtA []byte) error

func (*OutgoingRequest) Validate

func (r *OutgoingRequest) Validate() error

func (*OutgoingRequest) XXX_DiscardUnknown

func (m *OutgoingRequest) XXX_DiscardUnknown()

func (*OutgoingRequest) XXX_Marshal

func (m *OutgoingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OutgoingRequest) XXX_Merge

func (m *OutgoingRequest) XXX_Merge(src proto.Message)

func (*OutgoingRequest) XXX_Size

func (m *OutgoingRequest) XXX_Size() int

func (*OutgoingRequest) XXX_Unmarshal

func (m *OutgoingRequest) XXX_Unmarshal(b []byte) error

type OutgoingRequestFace

type OutgoingRequestFace interface {
	Proto() github_com_gogo_protobuf_proto.Message
	GetPolymorph() int32
	GetCallType() CallType
	GetCaller() github_com_insolar_insolar_insolar.Reference
	GetCallerPrototype() github_com_insolar_insolar_insolar.Reference
	GetNonce() uint64
	GetReturnMode() ReturnMode
	GetImmutable() bool
	GetBase() *github_com_insolar_insolar_insolar.Reference
	GetObject() *github_com_insolar_insolar_insolar.Reference
	GetPrototype() *github_com_insolar_insolar_insolar.Reference
	GetMethod() string
	GetArguments() []byte
	GetAPIRequestID() string
	GetReason() github_com_insolar_insolar_insolar.Reference
	GetAPINode() github_com_insolar_insolar_insolar.Reference
}

type PendingFilament

type PendingFilament struct {
	Polymorph      int32                                  `protobuf:"varint,16,opt,name=polymorph,proto3" json:"polymorph,omitempty"`
	RecordID       github_com_insolar_insolar_insolar.ID  `protobuf:"bytes,20,opt,name=RecordID,proto3,customtype=github.com/insolar/insolar/insolar.ID" json:"RecordID"`
	PreviousRecord *github_com_insolar_insolar_insolar.ID `` /* 131-byte string literal not displayed */
}

func (*PendingFilament) Descriptor

func (*PendingFilament) Descriptor() ([]byte, []int)

func (*PendingFilament) Equal

func (this *PendingFilament) Equal(that interface{}) bool

func (*PendingFilament) GoString

func (this *PendingFilament) GoString() string

func (*PendingFilament) Marshal

func (m *PendingFilament) Marshal() (dAtA []byte, err error)

func (*PendingFilament) MarshalTo

func (m *PendingFilament) MarshalTo(dAtA []byte) (int, error)

func (*PendingFilament) ProtoMessage

func (*PendingFilament) ProtoMessage()

func (*PendingFilament) Reset

func (m *PendingFilament) Reset()

func (*PendingFilament) Size

func (m *PendingFilament) Size() (n int)

func (*PendingFilament) String

func (this *PendingFilament) String() string

func (*PendingFilament) Unmarshal

func (m *PendingFilament) Unmarshal(dAtA []byte) error

func (*PendingFilament) XXX_DiscardUnknown

func (m *PendingFilament) XXX_DiscardUnknown()

func (*PendingFilament) XXX_Marshal

func (m *PendingFilament) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PendingFilament) XXX_Merge

func (m *PendingFilament) XXX_Merge(src proto.Message)

func (*PendingFilament) XXX_Size

func (m *PendingFilament) XXX_Size() int

func (*PendingFilament) XXX_Unmarshal

func (m *PendingFilament) XXX_Unmarshal(b []byte) error

type Record

type Record interface {
	Marshal() (dAtA []byte, err error)
}

func Unwrap

func Unwrap(v *Virtual) Record

type Request

type Request interface {
	Record
	// AffinityRef returns a pointer to the reference of the object the
	// Request is affine to. The result can be nil, e.g. in case of creating
	// a new object.
	AffinityRef() *insolar.Reference
	// ReasonRef returns a reference of the Request that caused the creating
	// of this Request.
	ReasonRef() insolar.Reference
	// ReasonAffinityRef returns a reference of an object reason request is
	// affine to.
	ReasonAffinityRef() insolar.Reference
	// GetCallType returns call type.
	GetCallType() CallType
	// IsAPIRequest tells is it API-request or not.
	IsAPIRequest() bool
	// IsCreationRequest checks a request-type.
	IsCreationRequest() bool
	// Validate validates request params and its combinations.
	Validate() error
	// IsTemporaryUploadCode tells us that that request is temporary hack
	// for uploading code.
	IsTemporaryUploadCode() bool
}

Request is a common request interface.

type RequestMock

type RequestMock struct {
	AffinityRefMock mRequestMockAffinityRef

	GetCallTypeMock mRequestMockGetCallType

	IsAPIRequestMock mRequestMockIsAPIRequest

	IsCreationRequestMock mRequestMockIsCreationRequest

	IsTemporaryUploadCodeMock mRequestMockIsTemporaryUploadCode

	MarshalMock mRequestMockMarshal

	ReasonAffinityRefMock mRequestMockReasonAffinityRef

	ReasonRefMock mRequestMockReasonRef

	ValidateMock mRequestMockValidate
	// contains filtered or unexported fields
}

RequestMock implements Request

func NewRequestMock

func NewRequestMock(t minimock.Tester) *RequestMock

NewRequestMock returns a mock for Request

func (*RequestMock) AffinityRef

func (mmAffinityRef *RequestMock) AffinityRef() (rp1 *insolar.Reference)

AffinityRef implements Request

func (*RequestMock) AffinityRefAfterCounter

func (mmAffinityRef *RequestMock) AffinityRefAfterCounter() uint64

AffinityRefAfterCounter returns a count of finished RequestMock.AffinityRef invocations

func (*RequestMock) AffinityRefBeforeCounter

func (mmAffinityRef *RequestMock) AffinityRefBeforeCounter() uint64

AffinityRefBeforeCounter returns a count of RequestMock.AffinityRef invocations

func (*RequestMock) GetCallType

func (mmGetCallType *RequestMock) GetCallType() (c1 CallType)

GetCallType implements Request

func (*RequestMock) GetCallTypeAfterCounter

func (mmGetCallType *RequestMock) GetCallTypeAfterCounter() uint64

GetCallTypeAfterCounter returns a count of finished RequestMock.GetCallType invocations

func (*RequestMock) GetCallTypeBeforeCounter

func (mmGetCallType *RequestMock) GetCallTypeBeforeCounter() uint64

GetCallTypeBeforeCounter returns a count of RequestMock.GetCallType invocations

func (*RequestMock) IsAPIRequest

func (mmIsAPIRequest *RequestMock) IsAPIRequest() (b1 bool)

IsAPIRequest implements Request

func (*RequestMock) IsAPIRequestAfterCounter

func (mmIsAPIRequest *RequestMock) IsAPIRequestAfterCounter() uint64

IsAPIRequestAfterCounter returns a count of finished RequestMock.IsAPIRequest invocations

func (*RequestMock) IsAPIRequestBeforeCounter

func (mmIsAPIRequest *RequestMock) IsAPIRequestBeforeCounter() uint64

IsAPIRequestBeforeCounter returns a count of RequestMock.IsAPIRequest invocations

func (*RequestMock) IsCreationRequest

func (mmIsCreationRequest *RequestMock) IsCreationRequest() (b1 bool)

IsCreationRequest implements Request

func (*RequestMock) IsCreationRequestAfterCounter

func (mmIsCreationRequest *RequestMock) IsCreationRequestAfterCounter() uint64

IsCreationRequestAfterCounter returns a count of finished RequestMock.IsCreationRequest invocations

func (*RequestMock) IsCreationRequestBeforeCounter

func (mmIsCreationRequest *RequestMock) IsCreationRequestBeforeCounter() uint64

IsCreationRequestBeforeCounter returns a count of RequestMock.IsCreationRequest invocations

func (*RequestMock) IsTemporaryUploadCode

func (mmIsTemporaryUploadCode *RequestMock) IsTemporaryUploadCode() (b1 bool)

IsTemporaryUploadCode implements Request

func (*RequestMock) IsTemporaryUploadCodeAfterCounter

func (mmIsTemporaryUploadCode *RequestMock) IsTemporaryUploadCodeAfterCounter() uint64

IsTemporaryUploadCodeAfterCounter returns a count of finished RequestMock.IsTemporaryUploadCode invocations

func (*RequestMock) IsTemporaryUploadCodeBeforeCounter

func (mmIsTemporaryUploadCode *RequestMock) IsTemporaryUploadCodeBeforeCounter() uint64

IsTemporaryUploadCodeBeforeCounter returns a count of RequestMock.IsTemporaryUploadCode invocations

func (*RequestMock) Marshal

func (mmMarshal *RequestMock) Marshal() (dAtA []byte, err error)

Marshal implements Request

func (*RequestMock) MarshalAfterCounter

func (mmMarshal *RequestMock) MarshalAfterCounter() uint64

MarshalAfterCounter returns a count of finished RequestMock.Marshal invocations

func (*RequestMock) MarshalBeforeCounter

func (mmMarshal *RequestMock) MarshalBeforeCounter() uint64

MarshalBeforeCounter returns a count of RequestMock.Marshal invocations

func (*RequestMock) MinimockAffinityRefDone

func (m *RequestMock) MinimockAffinityRefDone() bool

MinimockAffinityRefDone returns true if the count of the AffinityRef invocations corresponds the number of defined expectations

func (*RequestMock) MinimockAffinityRefInspect

func (m *RequestMock) MinimockAffinityRefInspect()

MinimockAffinityRefInspect logs each unmet expectation

func (*RequestMock) MinimockFinish

func (m *RequestMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*RequestMock) MinimockGetCallTypeDone

func (m *RequestMock) MinimockGetCallTypeDone() bool

MinimockGetCallTypeDone returns true if the count of the GetCallType invocations corresponds the number of defined expectations

func (*RequestMock) MinimockGetCallTypeInspect

func (m *RequestMock) MinimockGetCallTypeInspect()

MinimockGetCallTypeInspect logs each unmet expectation

func (*RequestMock) MinimockIsAPIRequestDone

func (m *RequestMock) MinimockIsAPIRequestDone() bool

MinimockIsAPIRequestDone returns true if the count of the IsAPIRequest invocations corresponds the number of defined expectations

func (*RequestMock) MinimockIsAPIRequestInspect

func (m *RequestMock) MinimockIsAPIRequestInspect()

MinimockIsAPIRequestInspect logs each unmet expectation

func (*RequestMock) MinimockIsCreationRequestDone

func (m *RequestMock) MinimockIsCreationRequestDone() bool

MinimockIsCreationRequestDone returns true if the count of the IsCreationRequest invocations corresponds the number of defined expectations

func (*RequestMock) MinimockIsCreationRequestInspect

func (m *RequestMock) MinimockIsCreationRequestInspect()

MinimockIsCreationRequestInspect logs each unmet expectation

func (*RequestMock) MinimockIsTemporaryUploadCodeDone

func (m *RequestMock) MinimockIsTemporaryUploadCodeDone() bool

MinimockIsTemporaryUploadCodeDone returns true if the count of the IsTemporaryUploadCode invocations corresponds the number of defined expectations

func (*RequestMock) MinimockIsTemporaryUploadCodeInspect

func (m *RequestMock) MinimockIsTemporaryUploadCodeInspect()

MinimockIsTemporaryUploadCodeInspect logs each unmet expectation

func (*RequestMock) MinimockMarshalDone

func (m *RequestMock) MinimockMarshalDone() bool

MinimockMarshalDone returns true if the count of the Marshal invocations corresponds the number of defined expectations

func (*RequestMock) MinimockMarshalInspect

func (m *RequestMock) MinimockMarshalInspect()

MinimockMarshalInspect logs each unmet expectation

func (*RequestMock) MinimockReasonAffinityRefDone

func (m *RequestMock) MinimockReasonAffinityRefDone() bool

MinimockReasonAffinityRefDone returns true if the count of the ReasonAffinityRef invocations corresponds the number of defined expectations

func (*RequestMock) MinimockReasonAffinityRefInspect

func (m *RequestMock) MinimockReasonAffinityRefInspect()

MinimockReasonAffinityRefInspect logs each unmet expectation

func (*RequestMock) MinimockReasonRefDone

func (m *RequestMock) MinimockReasonRefDone() bool

MinimockReasonRefDone returns true if the count of the ReasonRef invocations corresponds the number of defined expectations

func (*RequestMock) MinimockReasonRefInspect

func (m *RequestMock) MinimockReasonRefInspect()

MinimockReasonRefInspect logs each unmet expectation

func (*RequestMock) MinimockValidateDone

func (m *RequestMock) MinimockValidateDone() bool

MinimockValidateDone returns true if the count of the Validate invocations corresponds the number of defined expectations

func (*RequestMock) MinimockValidateInspect

func (m *RequestMock) MinimockValidateInspect()

MinimockValidateInspect logs each unmet expectation

func (*RequestMock) MinimockWait

func (m *RequestMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*RequestMock) ReasonAffinityRef

func (mmReasonAffinityRef *RequestMock) ReasonAffinityRef() (r1 insolar.Reference)

ReasonAffinityRef implements Request

func (*RequestMock) ReasonAffinityRefAfterCounter

func (mmReasonAffinityRef *RequestMock) ReasonAffinityRefAfterCounter() uint64

ReasonAffinityRefAfterCounter returns a count of finished RequestMock.ReasonAffinityRef invocations

func (*RequestMock) ReasonAffinityRefBeforeCounter

func (mmReasonAffinityRef *RequestMock) ReasonAffinityRefBeforeCounter() uint64

ReasonAffinityRefBeforeCounter returns a count of RequestMock.ReasonAffinityRef invocations

func (*RequestMock) ReasonRef

func (mmReasonRef *RequestMock) ReasonRef() (r1 insolar.Reference)

ReasonRef implements Request

func (*RequestMock) ReasonRefAfterCounter

func (mmReasonRef *RequestMock) ReasonRefAfterCounter() uint64

ReasonRefAfterCounter returns a count of finished RequestMock.ReasonRef invocations

func (*RequestMock) ReasonRefBeforeCounter

func (mmReasonRef *RequestMock) ReasonRefBeforeCounter() uint64

ReasonRefBeforeCounter returns a count of RequestMock.ReasonRef invocations

func (*RequestMock) Validate

func (mmValidate *RequestMock) Validate() (err error)

Validate implements Request

func (*RequestMock) ValidateAfterCounter

func (mmValidate *RequestMock) ValidateAfterCounter() uint64

ValidateAfterCounter returns a count of finished RequestMock.Validate invocations

func (*RequestMock) ValidateBeforeCounter

func (mmValidate *RequestMock) ValidateBeforeCounter() uint64

ValidateBeforeCounter returns a count of RequestMock.Validate invocations

type RequestMockAffinityRefExpectation

type RequestMockAffinityRefExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RequestMockAffinityRefExpectation specifies expectation struct of the Request.AffinityRef

type RequestMockAffinityRefResults

type RequestMockAffinityRefResults struct {
	// contains filtered or unexported fields
}

RequestMockAffinityRefResults contains results of the Request.AffinityRef

type RequestMockGetCallTypeExpectation

type RequestMockGetCallTypeExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RequestMockGetCallTypeExpectation specifies expectation struct of the Request.GetCallType

type RequestMockGetCallTypeResults

type RequestMockGetCallTypeResults struct {
	// contains filtered or unexported fields
}

RequestMockGetCallTypeResults contains results of the Request.GetCallType

type RequestMockIsAPIRequestExpectation

type RequestMockIsAPIRequestExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RequestMockIsAPIRequestExpectation specifies expectation struct of the Request.IsAPIRequest

type RequestMockIsAPIRequestResults

type RequestMockIsAPIRequestResults struct {
	// contains filtered or unexported fields
}

RequestMockIsAPIRequestResults contains results of the Request.IsAPIRequest

type RequestMockIsCreationRequestExpectation

type RequestMockIsCreationRequestExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RequestMockIsCreationRequestExpectation specifies expectation struct of the Request.IsCreationRequest

type RequestMockIsCreationRequestResults

type RequestMockIsCreationRequestResults struct {
	// contains filtered or unexported fields
}

RequestMockIsCreationRequestResults contains results of the Request.IsCreationRequest

type RequestMockIsTemporaryUploadCodeExpectation

type RequestMockIsTemporaryUploadCodeExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RequestMockIsTemporaryUploadCodeExpectation specifies expectation struct of the Request.IsTemporaryUploadCode

type RequestMockIsTemporaryUploadCodeResults

type RequestMockIsTemporaryUploadCodeResults struct {
	// contains filtered or unexported fields
}

RequestMockIsTemporaryUploadCodeResults contains results of the Request.IsTemporaryUploadCode

type RequestMockMarshalExpectation

type RequestMockMarshalExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RequestMockMarshalExpectation specifies expectation struct of the Request.Marshal

type RequestMockMarshalResults

type RequestMockMarshalResults struct {
	// contains filtered or unexported fields
}

RequestMockMarshalResults contains results of the Request.Marshal

type RequestMockReasonAffinityRefExpectation

type RequestMockReasonAffinityRefExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RequestMockReasonAffinityRefExpectation specifies expectation struct of the Request.ReasonAffinityRef

type RequestMockReasonAffinityRefResults

type RequestMockReasonAffinityRefResults struct {
	// contains filtered or unexported fields
}

RequestMockReasonAffinityRefResults contains results of the Request.ReasonAffinityRef

type RequestMockReasonRefExpectation

type RequestMockReasonRefExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RequestMockReasonRefExpectation specifies expectation struct of the Request.ReasonRef

type RequestMockReasonRefResults

type RequestMockReasonRefResults struct {
	// contains filtered or unexported fields
}

RequestMockReasonRefResults contains results of the Request.ReasonRef

type RequestMockValidateExpectation

type RequestMockValidateExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

RequestMockValidateExpectation specifies expectation struct of the Request.Validate

type RequestMockValidateResults

type RequestMockValidateResults struct {
	// contains filtered or unexported fields
}

RequestMockValidateResults contains results of the Request.Validate

type Result

type Result struct {
	Polymorph int32                                        `protobuf:"varint,16,opt,name=polymorph,proto3" json:"polymorph,omitempty"`
	Object    github_com_insolar_insolar_insolar.ID        `protobuf:"bytes,20,opt,name=Object,proto3,customtype=github.com/insolar/insolar/insolar.ID" json:"Object"`
	Request   github_com_insolar_insolar_insolar.Reference `protobuf:"bytes,21,opt,name=Request,proto3,customtype=github.com/insolar/insolar/insolar.Reference" json:"Request"`
	Payload   []byte                                       `protobuf:"bytes,22,opt,name=Payload,proto3" json:"Payload,omitempty"`
}

func NewResultFromFace

func NewResultFromFace(that ResultFace) *Result

func (*Result) Descriptor

func (*Result) Descriptor() ([]byte, []int)

func (*Result) Equal

func (this *Result) Equal(that interface{}) bool

func (*Result) GetObject

func (this *Result) GetObject() github_com_insolar_insolar_insolar.ID

func (*Result) GetPayload

func (this *Result) GetPayload() []byte

func (*Result) GetPolymorph

func (this *Result) GetPolymorph() int32

func (*Result) GetRequest

func (*Result) GoString

func (this *Result) GoString() string

func (*Result) Marshal

func (m *Result) Marshal() (dAtA []byte, err error)

func (*Result) MarshalTo

func (m *Result) MarshalTo(dAtA []byte) (int, error)

func (*Result) Proto

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) Size

func (m *Result) Size() (n int)

func (*Result) String

func (this *Result) String() string

func (*Result) TestProto

func (this *Result) TestProto() github_com_gogo_protobuf_proto.Message

func (*Result) Unmarshal

func (m *Result) Unmarshal(dAtA []byte) error

func (*Result) XXX_DiscardUnknown

func (m *Result) XXX_DiscardUnknown()

func (*Result) XXX_Marshal

func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Result) XXX_Merge

func (m *Result) XXX_Merge(src proto.Message)

func (*Result) XXX_Size

func (m *Result) XXX_Size() int

func (*Result) XXX_Unmarshal

func (m *Result) XXX_Unmarshal(b []byte) error

type ResultFace

type ResultFace interface {
	Proto() github_com_gogo_protobuf_proto.Message
	GetPolymorph() int32
	GetObject() github_com_insolar_insolar_insolar.ID
	GetRequest() github_com_insolar_insolar_insolar.Reference
	GetPayload() []byte
}

type ReturnMode

type ReturnMode int32
const (
	// ReturnResult - return result as soon as it is ready
	ReturnResult ReturnMode = 0
	// ReturnSaga - call saga method and return without results
	ReturnSaga ReturnMode = 1
)

func (ReturnMode) EnumDescriptor

func (ReturnMode) EnumDescriptor() ([]byte, []int)

func (ReturnMode) String

func (x ReturnMode) String() string

type State

type State interface {
	Record
	// ID returns state id.
	ID() StateID
	// GetImage returns state code.
	GetImage() *insolar.Reference
	// GetIsPrototype returns state code.
	GetIsPrototype() bool
	// GetMemory returns state indexStorage.
	GetMemory() []byte
	// PrevStateID returns previous state id.
	PrevStateID() *insolar.ID
}

State is common object state record.

type StateID

type StateID int

StateID is a state of lifeline records.

func (*StateID) Equal

func (s *StateID) Equal(other StateID) bool

type Virtual

type Virtual struct {
	Polymorph int32 `protobuf:"varint,16,opt,name=polymorph,proto3" json:"polymorph,omitempty"`
	// Types that are valid to be assigned to Union:
	//	*Virtual_Genesis
	//	*Virtual_IncomingRequest
	//	*Virtual_OutgoingRequest
	//	*Virtual_Result
	//	*Virtual_Code
	//	*Virtual_Activate
	//	*Virtual_Amend
	//	*Virtual_Deactivate
	//	*Virtual_PendingFilament
	Union     isVirtual_Union `protobuf_oneof:"union"`
	Signature []byte          `protobuf:"bytes,200,opt,name=Signature,proto3" json:"Signature,omitempty"`
}

func Wrap

func Wrap(record Record) Virtual

func (*Virtual) Descriptor

func (*Virtual) Descriptor() ([]byte, []int)

func (*Virtual) Equal

func (this *Virtual) Equal(that interface{}) bool

func (*Virtual) GetActivate

func (m *Virtual) GetActivate() *Activate

func (*Virtual) GetAmend

func (m *Virtual) GetAmend() *Amend

func (*Virtual) GetCode

func (m *Virtual) GetCode() *Code

func (*Virtual) GetDeactivate

func (m *Virtual) GetDeactivate() *Deactivate

func (*Virtual) GetGenesis

func (m *Virtual) GetGenesis() *Genesis

func (*Virtual) GetIncomingRequest

func (m *Virtual) GetIncomingRequest() *IncomingRequest

func (*Virtual) GetOutgoingRequest

func (m *Virtual) GetOutgoingRequest() *OutgoingRequest

func (*Virtual) GetPendingFilament

func (m *Virtual) GetPendingFilament() *PendingFilament

func (*Virtual) GetResult

func (m *Virtual) GetResult() *Result

func (*Virtual) GetUnion

func (m *Virtual) GetUnion() isVirtual_Union

func (*Virtual) GoString

func (this *Virtual) GoString() string

func (*Virtual) Marshal

func (m *Virtual) Marshal() (dAtA []byte, err error)

func (*Virtual) MarshalTo

func (m *Virtual) MarshalTo(dAtA []byte) (int, error)

func (*Virtual) ProtoMessage

func (*Virtual) ProtoMessage()

func (*Virtual) Reset

func (m *Virtual) Reset()

func (*Virtual) Size

func (m *Virtual) Size() (n int)

func (*Virtual) String

func (this *Virtual) String() string

func (*Virtual) Unmarshal

func (m *Virtual) Unmarshal(dAtA []byte) error

func (*Virtual) XXX_DiscardUnknown

func (m *Virtual) XXX_DiscardUnknown()

func (*Virtual) XXX_Marshal

func (m *Virtual) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Virtual) XXX_Merge

func (m *Virtual) XXX_Merge(src proto.Message)

func (*Virtual) XXX_OneofFuncs

func (*Virtual) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Virtual) XXX_Size

func (m *Virtual) XXX_Size() int

func (*Virtual) XXX_Unmarshal

func (m *Virtual) XXX_Unmarshal(b []byte) error

type Virtual_Activate

type Virtual_Activate struct {
	Activate *Activate `protobuf:"bytes,106,opt,name=Activate,proto3,oneof"`
}

func (*Virtual_Activate) Equal

func (this *Virtual_Activate) Equal(that interface{}) bool

func (*Virtual_Activate) GoString

func (this *Virtual_Activate) GoString() string

func (*Virtual_Activate) MarshalTo

func (m *Virtual_Activate) MarshalTo(dAtA []byte) (int, error)

func (*Virtual_Activate) Size

func (m *Virtual_Activate) Size() (n int)

func (*Virtual_Activate) String

func (this *Virtual_Activate) String() string

type Virtual_Amend

type Virtual_Amend struct {
	Amend *Amend `protobuf:"bytes,107,opt,name=Amend,proto3,oneof"`
}

func (*Virtual_Amend) Equal

func (this *Virtual_Amend) Equal(that interface{}) bool

func (*Virtual_Amend) GoString

func (this *Virtual_Amend) GoString() string

func (*Virtual_Amend) MarshalTo

func (m *Virtual_Amend) MarshalTo(dAtA []byte) (int, error)

func (*Virtual_Amend) Size

func (m *Virtual_Amend) Size() (n int)

func (*Virtual_Amend) String

func (this *Virtual_Amend) String() string

type Virtual_Code

type Virtual_Code struct {
	Code *Code `protobuf:"bytes,105,opt,name=Code,proto3,oneof"`
}

func (*Virtual_Code) Equal

func (this *Virtual_Code) Equal(that interface{}) bool

func (*Virtual_Code) GoString

func (this *Virtual_Code) GoString() string

func (*Virtual_Code) MarshalTo

func (m *Virtual_Code) MarshalTo(dAtA []byte) (int, error)

func (*Virtual_Code) Size

func (m *Virtual_Code) Size() (n int)

func (*Virtual_Code) String

func (this *Virtual_Code) String() string

type Virtual_Deactivate

type Virtual_Deactivate struct {
	Deactivate *Deactivate `protobuf:"bytes,108,opt,name=Deactivate,proto3,oneof"`
}

func (*Virtual_Deactivate) Equal

func (this *Virtual_Deactivate) Equal(that interface{}) bool

func (*Virtual_Deactivate) GoString

func (this *Virtual_Deactivate) GoString() string

func (*Virtual_Deactivate) MarshalTo

func (m *Virtual_Deactivate) MarshalTo(dAtA []byte) (int, error)

func (*Virtual_Deactivate) Size

func (m *Virtual_Deactivate) Size() (n int)

func (*Virtual_Deactivate) String

func (this *Virtual_Deactivate) String() string

type Virtual_Genesis

type Virtual_Genesis struct {
	Genesis *Genesis `protobuf:"bytes,101,opt,name=Genesis,proto3,oneof"`
}

func (*Virtual_Genesis) Equal

func (this *Virtual_Genesis) Equal(that interface{}) bool

func (*Virtual_Genesis) GoString

func (this *Virtual_Genesis) GoString() string

func (*Virtual_Genesis) MarshalTo

func (m *Virtual_Genesis) MarshalTo(dAtA []byte) (int, error)

func (*Virtual_Genesis) Size

func (m *Virtual_Genesis) Size() (n int)

func (*Virtual_Genesis) String

func (this *Virtual_Genesis) String() string

type Virtual_IncomingRequest

type Virtual_IncomingRequest struct {
	IncomingRequest *IncomingRequest `protobuf:"bytes,102,opt,name=IncomingRequest,proto3,oneof"`
}

func (*Virtual_IncomingRequest) Equal

func (this *Virtual_IncomingRequest) Equal(that interface{}) bool

func (*Virtual_IncomingRequest) GoString

func (this *Virtual_IncomingRequest) GoString() string

func (*Virtual_IncomingRequest) MarshalTo

func (m *Virtual_IncomingRequest) MarshalTo(dAtA []byte) (int, error)

func (*Virtual_IncomingRequest) Size

func (m *Virtual_IncomingRequest) Size() (n int)

func (*Virtual_IncomingRequest) String

func (this *Virtual_IncomingRequest) String() string

type Virtual_OutgoingRequest

type Virtual_OutgoingRequest struct {
	OutgoingRequest *OutgoingRequest `protobuf:"bytes,103,opt,name=OutgoingRequest,proto3,oneof"`
}

func (*Virtual_OutgoingRequest) Equal

func (this *Virtual_OutgoingRequest) Equal(that interface{}) bool

func (*Virtual_OutgoingRequest) GoString

func (this *Virtual_OutgoingRequest) GoString() string

func (*Virtual_OutgoingRequest) MarshalTo

func (m *Virtual_OutgoingRequest) MarshalTo(dAtA []byte) (int, error)

func (*Virtual_OutgoingRequest) Size

func (m *Virtual_OutgoingRequest) Size() (n int)

func (*Virtual_OutgoingRequest) String

func (this *Virtual_OutgoingRequest) String() string

type Virtual_PendingFilament

type Virtual_PendingFilament struct {
	PendingFilament *PendingFilament `protobuf:"bytes,109,opt,name=PendingFilament,proto3,oneof"`
}

func (*Virtual_PendingFilament) Equal

func (this *Virtual_PendingFilament) Equal(that interface{}) bool

func (*Virtual_PendingFilament) GoString

func (this *Virtual_PendingFilament) GoString() string

func (*Virtual_PendingFilament) MarshalTo

func (m *Virtual_PendingFilament) MarshalTo(dAtA []byte) (int, error)

func (*Virtual_PendingFilament) Size

func (m *Virtual_PendingFilament) Size() (n int)

func (*Virtual_PendingFilament) String

func (this *Virtual_PendingFilament) String() string

type Virtual_Result

type Virtual_Result struct {
	Result *Result `protobuf:"bytes,104,opt,name=Result,proto3,oneof"`
}

func (*Virtual_Result) Equal

func (this *Virtual_Result) Equal(that interface{}) bool

func (*Virtual_Result) GoString

func (this *Virtual_Result) GoString() string

func (*Virtual_Result) MarshalTo

func (m *Virtual_Result) MarshalTo(dAtA []byte) (int, error)

func (*Virtual_Result) Size

func (m *Virtual_Result) Size() (n int)

func (*Virtual_Result) String

func (this *Virtual_Result) String() string

Jump to

Keyboard shortcuts

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