Documentation ¶
Index ¶
- Constants
- Variables
- func GetCustomContext(file *descriptor.FileDescriptorProto, msg *descriptor.DescriptorProto) string
- func GetCustomContextApply(field *descriptor.FieldDescriptorProto) string
- func GetCustomContextMethod(file *descriptor.FileDescriptorProto, msg *descriptor.DescriptorProto) string
- func GetCustomMessageContextApply(file *descriptor.FileDescriptorProto, msg *descriptor.DescriptorProto) string
- func GetCustomRegister(file *descriptor.FileDescriptorProto, msg *descriptor.DescriptorProto) string
- func GetPolymorphID(msg *descriptor.DescriptorProto) uint64
- func GetProjectionID(msg *descriptor.DescriptorProto) uint64
- func GetStrExtension(msg *descriptor.DescriptorProto, extension *proto.ExtensionDesc, ...) string
- func GetStrFieldExtension(field *descriptor.FieldDescriptorProto, extension *proto.ExtensionDesc, ...) string
- func GetStrFileExtension(file *descriptor.FileDescriptorProto, extension *proto.ExtensionDesc, ...) string
- func HasPolymorphID(msg *descriptor.DescriptorProto) bool
- func IsCustomContext(file *descriptor.FileDescriptorProto, msg *descriptor.DescriptorProto) bool
- func IsCustomContextApply(field *descriptor.FieldDescriptorProto) bool
- func IsMappingForField(field *descriptor.FieldDescriptorProto, message *descriptor.DescriptorProto, ...) bool
- func IsMappingForMessage(file *descriptor.FileDescriptorProto, message *descriptor.DescriptorProto) bool
- func IsNotation(file *descriptor.FileDescriptorProto, message *descriptor.DescriptorProto) bool
- func IsNullableAll(file *descriptor.FileDescriptorProto) bool
- func IsProjection(file *descriptor.FileDescriptorProto, msg *descriptor.DescriptorProto) bool
- func IsRawBytes(field *descriptor.FieldDescriptorProto, defValue bool) bool
- func IsZeroable(field *descriptor.FieldDescriptorProto, defValue bool) bool
- func IsZeroableDefault(file *descriptor.FileDescriptorProto, message *descriptor.DescriptorProto) bool
- func NewFieldMapDescriptorProto(number int32) *descriptor.FieldDescriptorProto
- type FieldMap
- func (*FieldMap) Descriptor() ([]byte, []int)
- func (*FieldMap) Equal(*FieldMap) bool
- func (p *FieldMap) Get(fieldNum int32) []byte
- func (p *FieldMap) GetMessage() []byte
- func (*FieldMap) MarshalTo([]byte) (int, error)
- func (*FieldMap) MarshalToSizedBuffer([]byte) (int, error)
- func (*FieldMap) ProtoMessage()
- func (m *FieldMap) ProtoSize() (n int)
- func (p *FieldMap) Put(fieldNum int32, fieldStart, fieldEnd int, data []byte)
- func (p *FieldMap) PutMessage(msgStart, msgEnd int, b []byte)
- func (m *FieldMap) Reset()
- func (m *FieldMap) String() string
- func (*FieldMap) Unmarshal([]byte) error
- func (p *FieldMap) UnsetMap()
- func (m *FieldMap) XXX_DiscardUnknown()
- func (m *FieldMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FieldMap) XXX_Merge(src proto.Message)
- func (m *FieldMap) XXX_Size() int
- func (m *FieldMap) XXX_Unmarshal(b []byte) error
- type FieldMapCallback
Constants ¶
View Source
const FieldMapFQN = `.insproto.FieldMap`
View Source
const FieldMapFieldName = `FieldMap`
View Source
const FieldMapPackage = `github.com/insolar/assured-ledger/ledger-core/insproto`
Variables ¶
View Source
var E_Context = &proto.ExtensionDesc{ ExtendedType: (*descriptor.MessageOptions)(nil), ExtensionType: (*string)(nil), Field: 64910, Name: "insproto.context", Tag: "bytes,64910,opt,name=context", Filename: "insproto/ins.proto", }
View Source
var E_ContextAll = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*string)(nil), Field: 63910, Name: "insproto.context_all", Tag: "bytes,63910,opt,name=context_all", Filename: "insproto/ins.proto", }
View Source
var E_ContextMethod = &proto.ExtensionDesc{ ExtendedType: (*descriptor.MessageOptions)(nil), ExtensionType: (*string)(nil), Field: 64906, Name: "insproto.context_method", Tag: "bytes,64906,opt,name=context_method", Filename: "insproto/ins.proto", }
View Source
var E_ContextMethodAll = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*string)(nil), Field: 63906, Name: "insproto.context_method_all", Tag: "bytes,63906,opt,name=context_method_all", Filename: "insproto/ins.proto", }
View Source
var E_CtxApply = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FieldOptions)(nil), ExtensionType: (*string)(nil), Field: 65903, Name: "insproto.ctx_apply", Tag: "bytes,65903,opt,name=ctx_apply", Filename: "insproto/ins.proto", }
View Source
var E_FieldsMapping = &proto.ExtensionDesc{ ExtendedType: (*descriptor.MessageOptions)(nil), ExtensionType: (*bool)(nil), Field: 64907, Name: "insproto.fields_mapping", Tag: "varint,64907,opt,name=fields_mapping", Filename: "insproto/ins.proto", }
View Source
var E_FieldsMappingAll = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*bool)(nil), Field: 63907, Name: "insproto.fields_mapping_all", Tag: "varint,63907,opt,name=fields_mapping_all", Filename: "insproto/ins.proto", }
View Source
var E_FieldsZeroable = &proto.ExtensionDesc{ ExtendedType: (*descriptor.MessageOptions)(nil), ExtensionType: (*bool)(nil), Field: 64902, Name: "insproto.fields_zeroable", Tag: "varint,64902,opt,name=fields_zeroable", Filename: "insproto/ins.proto", }
View Source
var E_Id = &proto.ExtensionDesc{ ExtendedType: (*descriptor.MessageOptions)(nil), ExtensionType: (*uint64)(nil), Field: 64904, Name: "insproto.id", Tag: "varint,64904,opt,name=id", Filename: "insproto/ins.proto", }
View Source
var E_Mapping = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FieldOptions)(nil), ExtensionType: (*bool)(nil), Field: 65907, Name: "insproto.mapping", Tag: "varint,65907,opt,name=mapping", Filename: "insproto/ins.proto", }
View Source
var E_MessageCtxApply = &proto.ExtensionDesc{ ExtendedType: (*descriptor.MessageOptions)(nil), ExtensionType: (*string)(nil), Field: 64903, Name: "insproto.message_ctx_apply", Tag: "bytes,64903,opt,name=message_ctx_apply", Filename: "insproto/ins.proto", }
View Source
var E_MessageCtxApplyAll = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*string)(nil), Field: 63903, Name: "insproto.message_ctx_apply_all", Tag: "bytes,63903,opt,name=message_ctx_apply_all", Filename: "insproto/ins.proto", }
View Source
var E_MessageMapping = &proto.ExtensionDesc{ ExtendedType: (*descriptor.MessageOptions)(nil), ExtensionType: (*bool)(nil), Field: 64908, Name: "insproto.message_mapping", Tag: "varint,64908,opt,name=message_mapping", Filename: "insproto/ins.proto", }
View Source
var E_MessageMappingAll = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*bool)(nil), Field: 63908, Name: "insproto.message_mapping_all", Tag: "varint,63908,opt,name=message_mapping_all", Filename: "insproto/ins.proto", }
View Source
var E_Notation = &proto.ExtensionDesc{ ExtendedType: (*descriptor.MessageOptions)(nil), ExtensionType: (*bool)(nil), Field: 64901, Name: "insproto.notation", Tag: "varint,64901,opt,name=notation", Filename: "insproto/ins.proto", }
View Source
var E_NotationAll = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*bool)(nil), Field: 63901, Name: "insproto.notation_all", Tag: "varint,63901,opt,name=notation_all", Filename: "insproto/ins.proto", }
View Source
var E_NullableAll = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*bool)(nil), Field: 63912, Name: "insproto.nullable_all", Tag: "varint,63912,opt,name=nullable_all", Filename: "insproto/ins.proto", }
View Source
var E_Projection = &proto.ExtensionDesc{ ExtendedType: (*descriptor.MessageOptions)(nil), ExtensionType: (*bool)(nil), Field: 64905, Name: "insproto.projection", Tag: "varint,64905,opt,name=projection", Filename: "insproto/ins.proto", }
View Source
var E_ProjectionId = &proto.ExtensionDesc{ ExtendedType: (*descriptor.MessageOptions)(nil), ExtensionType: (*uint64)(nil), Field: 64911, Name: "insproto.projection_id", Tag: "varint,64911,opt,name=projection_id", Filename: "insproto/ins.proto", }
View Source
var E_ProjectionNames = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*string)(nil), Field: 63905, Name: "insproto.projection_names", Tag: "bytes,63905,opt,name=projection_names", Filename: "insproto/ins.proto", }
View Source
var E_RawBytes = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FieldOptions)(nil), ExtensionType: (*bool)(nil), Field: 65904, Name: "insproto.raw_bytes", Tag: "varint,65904,opt,name=raw_bytes", Filename: "insproto/ins.proto", }
View Source
var E_Register = &proto.ExtensionDesc{ ExtendedType: (*descriptor.MessageOptions)(nil), ExtensionType: (*string)(nil), Field: 64909, Name: "insproto.register", Tag: "bytes,64909,opt,name=register", Filename: "insproto/ins.proto", }
View Source
var E_RegisterAll = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*string)(nil), Field: 63909, Name: "insproto.register_all", Tag: "bytes,63909,opt,name=register_all", Filename: "insproto/ins.proto", }
View Source
var E_Zeroable = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FieldOptions)(nil), ExtensionType: (*bool)(nil), Field: 65902, Name: "insproto.zeroable", Tag: "varint,65902,opt,name=zeroable", Filename: "insproto/ins.proto", }
View Source
var E_ZeroableAll = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*bool)(nil), Field: 63902, Name: "insproto.zeroable_all", Tag: "varint,63902,opt,name=zeroable_all", Filename: "insproto/ins.proto", }
Functions ¶
func GetCustomContext ¶
func GetCustomContext(file *descriptor.FileDescriptorProto, msg *descriptor.DescriptorProto) string
func GetCustomContextApply ¶
func GetCustomContextApply(field *descriptor.FieldDescriptorProto) string
func GetCustomContextMethod ¶
func GetCustomContextMethod(file *descriptor.FileDescriptorProto, msg *descriptor.DescriptorProto) string
func GetCustomMessageContextApply ¶
func GetCustomMessageContextApply(file *descriptor.FileDescriptorProto, msg *descriptor.DescriptorProto) string
func GetCustomRegister ¶
func GetCustomRegister(file *descriptor.FileDescriptorProto, msg *descriptor.DescriptorProto) string
func GetPolymorphID ¶
func GetPolymorphID(msg *descriptor.DescriptorProto) uint64
func GetProjectionID ¶
func GetProjectionID(msg *descriptor.DescriptorProto) uint64
func GetStrExtension ¶
func GetStrExtension(msg *descriptor.DescriptorProto, extension *proto.ExtensionDesc, defValue string) string
func GetStrFieldExtension ¶
func GetStrFieldExtension(field *descriptor.FieldDescriptorProto, extension *proto.ExtensionDesc, defValue string) string
func GetStrFileExtension ¶
func GetStrFileExtension(file *descriptor.FileDescriptorProto, extension *proto.ExtensionDesc, defValue string) string
func HasPolymorphID ¶
func HasPolymorphID(msg *descriptor.DescriptorProto) bool
func IsCustomContext ¶
func IsCustomContext(file *descriptor.FileDescriptorProto, msg *descriptor.DescriptorProto) bool
func IsCustomContextApply ¶
func IsCustomContextApply(field *descriptor.FieldDescriptorProto) bool
func IsMappingForField ¶
func IsMappingForField(field *descriptor.FieldDescriptorProto, message *descriptor.DescriptorProto, file *descriptor.FileDescriptorProto) bool
func IsMappingForMessage ¶
func IsMappingForMessage(file *descriptor.FileDescriptorProto, message *descriptor.DescriptorProto) bool
func IsNotation ¶
func IsNotation(file *descriptor.FileDescriptorProto, message *descriptor.DescriptorProto) bool
func IsNullableAll ¶
func IsNullableAll(file *descriptor.FileDescriptorProto) bool
func IsProjection ¶
func IsProjection(file *descriptor.FileDescriptorProto, msg *descriptor.DescriptorProto) bool
func IsRawBytes ¶
func IsRawBytes(field *descriptor.FieldDescriptorProto, defValue bool) bool
func IsZeroable ¶
func IsZeroable(field *descriptor.FieldDescriptorProto, defValue bool) bool
func IsZeroableDefault ¶
func IsZeroableDefault(file *descriptor.FileDescriptorProto, message *descriptor.DescriptorProto) bool
func NewFieldMapDescriptorProto ¶
func NewFieldMapDescriptorProto(number int32) *descriptor.FieldDescriptorProto
Types ¶
type FieldMap ¶
type FieldMap struct { Message []byte Fields map[int32][]byte Callback FieldMapCallback }
func (*FieldMap) Descriptor ¶
func (*FieldMap) GetMessage ¶
func (*FieldMap) ProtoMessage ¶
func (*FieldMap) ProtoMessage()
func (*FieldMap) PutMessage ¶
func (*FieldMap) XXX_DiscardUnknown ¶
func (m *FieldMap) XXX_DiscardUnknown()
func (*FieldMap) XXX_Marshal ¶
func (*FieldMap) XXX_Unmarshal ¶
type FieldMapCallback ¶
type FieldMapCallback interface {
OnMessage(*FieldMap)
}
Click to show internal directories.
Click to hide internal directories.