proto3

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockHeaderV1

type BlockHeaderV1 struct {
	Magic                uint32   `protobuf:"varint,1,opt,name=magic,proto3" json:"magic,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlockHeaderV1) Descriptor

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

func (*BlockHeaderV1) GetMagic

func (m *BlockHeaderV1) GetMagic() uint32

func (*BlockHeaderV1) ProtoMessage

func (*BlockHeaderV1) ProtoMessage()

func (*BlockHeaderV1) Reset

func (m *BlockHeaderV1) Reset()

func (*BlockHeaderV1) String

func (m *BlockHeaderV1) String() string

func (*BlockHeaderV1) XXX_DiscardUnknown

func (m *BlockHeaderV1) XXX_DiscardUnknown()

func (*BlockHeaderV1) XXX_Marshal

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

func (*BlockHeaderV1) XXX_Merge

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

func (*BlockHeaderV1) XXX_Size

func (m *BlockHeaderV1) XXX_Size() int

func (*BlockHeaderV1) XXX_Unmarshal

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

type BlockHeaderV2

type BlockHeaderV2 struct {
	Magic                uint32   `protobuf:"varint,1,opt,name=magic,proto3" json:"magic,omitempty"`
	Timestamp            uint64   `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlockHeaderV2) Descriptor

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

func (*BlockHeaderV2) GetMagic

func (m *BlockHeaderV2) GetMagic() uint32

func (*BlockHeaderV2) GetTimestamp

func (m *BlockHeaderV2) GetTimestamp() uint64

func (*BlockHeaderV2) ProtoMessage

func (*BlockHeaderV2) ProtoMessage()

func (*BlockHeaderV2) Reset

func (m *BlockHeaderV2) Reset()

func (*BlockHeaderV2) String

func (m *BlockHeaderV2) String() string

func (*BlockHeaderV2) XXX_DiscardUnknown

func (m *BlockHeaderV2) XXX_DiscardUnknown()

func (*BlockHeaderV2) XXX_Marshal

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

func (*BlockHeaderV2) XXX_Merge

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

func (*BlockHeaderV2) XXX_Size

func (m *BlockHeaderV2) XXX_Size() int

func (*BlockHeaderV2) XXX_Unmarshal

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

type BlockRecordV1

type BlockRecordV1 struct {
	// Types that are valid to be assigned to Record:
	//	*BlockRecordV1_Person
	//	*BlockRecordV1_Book
	Record               isBlockRecordV1_Record `protobuf_oneof:"record"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*BlockRecordV1) Descriptor

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

func (*BlockRecordV1) GetBook

func (m *BlockRecordV1) GetBook() *BookRecordV1

func (*BlockRecordV1) GetPerson

func (m *BlockRecordV1) GetPerson() *PersonRecordV1

func (*BlockRecordV1) GetRecord

func (m *BlockRecordV1) GetRecord() isBlockRecordV1_Record

func (*BlockRecordV1) ProtoMessage

func (*BlockRecordV1) ProtoMessage()

func (*BlockRecordV1) Reset

func (m *BlockRecordV1) Reset()

func (*BlockRecordV1) String

func (m *BlockRecordV1) String() string

func (*BlockRecordV1) XXX_DiscardUnknown

func (m *BlockRecordV1) XXX_DiscardUnknown()

func (*BlockRecordV1) XXX_Marshal

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

func (*BlockRecordV1) XXX_Merge

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

func (*BlockRecordV1) XXX_OneofWrappers

func (*BlockRecordV1) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*BlockRecordV1) XXX_Size

func (m *BlockRecordV1) XXX_Size() int

func (*BlockRecordV1) XXX_Unmarshal

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

type BlockRecordV1_Book

type BlockRecordV1_Book struct {
	Book *BookRecordV1 `protobuf:"bytes,2,opt,name=book,proto3,oneof"`
}

type BlockRecordV1_Person

type BlockRecordV1_Person struct {
	Person *PersonRecordV1 `protobuf:"bytes,1,opt,name=person,proto3,oneof"`
}

type BlockRecordV2

type BlockRecordV2 struct {
	// Types that are valid to be assigned to Record:
	//	*BlockRecordV2_Person
	//	*BlockRecordV2_Book
	//	*BlockRecordV2_Car
	Record               isBlockRecordV2_Record `protobuf_oneof:"record"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

new in v2

func (*BlockRecordV2) Descriptor

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

func (*BlockRecordV2) GetBook

func (m *BlockRecordV2) GetBook() *BookRecordV2

func (*BlockRecordV2) GetCar

func (m *BlockRecordV2) GetCar() *CarRecordV2

func (*BlockRecordV2) GetPerson

func (m *BlockRecordV2) GetPerson() *PersonRecordV2

func (*BlockRecordV2) GetRecord

func (m *BlockRecordV2) GetRecord() isBlockRecordV2_Record

func (*BlockRecordV2) ProtoMessage

func (*BlockRecordV2) ProtoMessage()

func (*BlockRecordV2) Reset

func (m *BlockRecordV2) Reset()

func (*BlockRecordV2) String

func (m *BlockRecordV2) String() string

func (*BlockRecordV2) XXX_DiscardUnknown

func (m *BlockRecordV2) XXX_DiscardUnknown()

func (*BlockRecordV2) XXX_Marshal

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

func (*BlockRecordV2) XXX_Merge

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

func (*BlockRecordV2) XXX_OneofWrappers

func (*BlockRecordV2) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*BlockRecordV2) XXX_Size

func (m *BlockRecordV2) XXX_Size() int

func (*BlockRecordV2) XXX_Unmarshal

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

type BlockRecordV2_Book

type BlockRecordV2_Book struct {
	Book *BookRecordV2 `protobuf:"bytes,2,opt,name=book,proto3,oneof"`
}

type BlockRecordV2_Car

type BlockRecordV2_Car struct {
	Car *CarRecordV2 `protobuf:"bytes,3,opt,name=car,proto3,oneof"`
}

type BlockRecordV2_Person

type BlockRecordV2_Person struct {
	Person *PersonRecordV2 `protobuf:"bytes,1,opt,name=person,proto3,oneof"`
}

type BlockV1

type BlockV1 struct {
	Header               *BlockHeaderV1   `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Records              []*BlockRecordV1 `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*BlockV1) Descriptor

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

func (*BlockV1) GetHeader

func (m *BlockV1) GetHeader() *BlockHeaderV1

func (*BlockV1) GetRecords

func (m *BlockV1) GetRecords() []*BlockRecordV1

func (*BlockV1) ProtoMessage

func (*BlockV1) ProtoMessage()

func (*BlockV1) Reset

func (m *BlockV1) Reset()

func (*BlockV1) String

func (m *BlockV1) String() string

func (*BlockV1) XXX_DiscardUnknown

func (m *BlockV1) XXX_DiscardUnknown()

func (*BlockV1) XXX_Marshal

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

func (*BlockV1) XXX_Merge

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

func (*BlockV1) XXX_Size

func (m *BlockV1) XXX_Size() int

func (*BlockV1) XXX_Unmarshal

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

type BlockV2

type BlockV2 struct {
	Header               *BlockHeaderV2   `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Records              []*BlockRecordV2 `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"`
	Signature            []byte           `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*BlockV2) Descriptor

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

func (*BlockV2) GetHeader

func (m *BlockV2) GetHeader() *BlockHeaderV2

func (*BlockV2) GetRecords

func (m *BlockV2) GetRecords() []*BlockRecordV2

func (*BlockV2) GetSignature

func (m *BlockV2) GetSignature() []byte

func (*BlockV2) ProtoMessage

func (*BlockV2) ProtoMessage()

func (*BlockV2) Reset

func (m *BlockV2) Reset()

func (*BlockV2) String

func (m *BlockV2) String() string

func (*BlockV2) XXX_DiscardUnknown

func (m *BlockV2) XXX_DiscardUnknown()

func (*BlockV2) XXX_Marshal

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

func (*BlockV2) XXX_Merge

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

func (*BlockV2) XXX_Size

func (m *BlockV2) XXX_Size() int

func (*BlockV2) XXX_Unmarshal

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

type BookRecordV1

type BookRecordV1 struct {
	Isdn                 string   `protobuf:"bytes,1,opt,name=isdn,proto3" json:"isdn,omitempty"`
	Title                string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Author               string   `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BookRecordV1) Descriptor

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

func (*BookRecordV1) GetAuthor

func (m *BookRecordV1) GetAuthor() string

func (*BookRecordV1) GetIsdn

func (m *BookRecordV1) GetIsdn() string

func (*BookRecordV1) GetTitle

func (m *BookRecordV1) GetTitle() string

func (*BookRecordV1) ProtoMessage

func (*BookRecordV1) ProtoMessage()

func (*BookRecordV1) Reset

func (m *BookRecordV1) Reset()

func (*BookRecordV1) String

func (m *BookRecordV1) String() string

func (*BookRecordV1) XXX_DiscardUnknown

func (m *BookRecordV1) XXX_DiscardUnknown()

func (*BookRecordV1) XXX_Marshal

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

func (*BookRecordV1) XXX_Merge

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

func (*BookRecordV1) XXX_Size

func (m *BookRecordV1) XXX_Size() int

func (*BookRecordV1) XXX_Unmarshal

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

type BookRecordV2

type BookRecordV2 struct {
	Isdn                 string   `protobuf:"bytes,1,opt,name=isdn,proto3" json:"isdn,omitempty"`
	Title                string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Author               string   `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BookRecordV2) Descriptor

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

func (*BookRecordV2) GetAuthor

func (m *BookRecordV2) GetAuthor() string

func (*BookRecordV2) GetIsdn

func (m *BookRecordV2) GetIsdn() string

func (*BookRecordV2) GetTitle

func (m *BookRecordV2) GetTitle() string

func (*BookRecordV2) ProtoMessage

func (*BookRecordV2) ProtoMessage()

func (*BookRecordV2) Reset

func (m *BookRecordV2) Reset()

func (*BookRecordV2) String

func (m *BookRecordV2) String() string

func (*BookRecordV2) XXX_DiscardUnknown

func (m *BookRecordV2) XXX_DiscardUnknown()

func (*BookRecordV2) XXX_Marshal

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

func (*BookRecordV2) XXX_Merge

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

func (*BookRecordV2) XXX_Size

func (m *BookRecordV2) XXX_Size() int

func (*BookRecordV2) XXX_Unmarshal

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

type CarRecordV2

type CarRecordV2 struct {
	Brand                string   `protobuf:"bytes,1,opt,name=brand,proto3" json:"brand,omitempty"`
	Color                string   `protobuf:"bytes,2,opt,name=color,proto3" json:"color,omitempty"`
	Power                uint32   `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CarRecordV2) Descriptor

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

func (*CarRecordV2) GetBrand

func (m *CarRecordV2) GetBrand() string

func (*CarRecordV2) GetColor

func (m *CarRecordV2) GetColor() string

func (*CarRecordV2) GetPower

func (m *CarRecordV2) GetPower() uint32

func (*CarRecordV2) ProtoMessage

func (*CarRecordV2) ProtoMessage()

func (*CarRecordV2) Reset

func (m *CarRecordV2) Reset()

func (*CarRecordV2) String

func (m *CarRecordV2) String() string

func (*CarRecordV2) XXX_DiscardUnknown

func (m *CarRecordV2) XXX_DiscardUnknown()

func (*CarRecordV2) XXX_Marshal

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

func (*CarRecordV2) XXX_Merge

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

func (*CarRecordV2) XXX_Size

func (m *CarRecordV2) XXX_Size() int

func (*CarRecordV2) XXX_Unmarshal

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

type PersonRecordV1

type PersonRecordV1 struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Gender               bool     `protobuf:"varint,2,opt,name=gender,proto3" json:"gender,omitempty"`
	Age                  uint32   `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PersonRecordV1) Descriptor

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

func (*PersonRecordV1) GetAge

func (m *PersonRecordV1) GetAge() uint32

func (*PersonRecordV1) GetGender

func (m *PersonRecordV1) GetGender() bool

func (*PersonRecordV1) GetName

func (m *PersonRecordV1) GetName() string

func (*PersonRecordV1) ProtoMessage

func (*PersonRecordV1) ProtoMessage()

func (*PersonRecordV1) Reset

func (m *PersonRecordV1) Reset()

func (*PersonRecordV1) String

func (m *PersonRecordV1) String() string

func (*PersonRecordV1) XXX_DiscardUnknown

func (m *PersonRecordV1) XXX_DiscardUnknown()

func (*PersonRecordV1) XXX_Marshal

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

func (*PersonRecordV1) XXX_Merge

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

func (*PersonRecordV1) XXX_Size

func (m *PersonRecordV1) XXX_Size() int

func (*PersonRecordV1) XXX_Unmarshal

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

type PersonRecordV2

type PersonRecordV2 struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Gender               bool     `protobuf:"varint,2,opt,name=gender,proto3" json:"gender,omitempty"`
	Age                  uint32   `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"`
	Address              string   `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PersonRecordV2) Descriptor

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

func (*PersonRecordV2) GetAddress

func (m *PersonRecordV2) GetAddress() string

func (*PersonRecordV2) GetAge

func (m *PersonRecordV2) GetAge() uint32

func (*PersonRecordV2) GetGender

func (m *PersonRecordV2) GetGender() bool

func (*PersonRecordV2) GetName

func (m *PersonRecordV2) GetName() string

func (*PersonRecordV2) ProtoMessage

func (*PersonRecordV2) ProtoMessage()

func (*PersonRecordV2) Reset

func (m *PersonRecordV2) Reset()

func (*PersonRecordV2) String

func (m *PersonRecordV2) String() string

func (*PersonRecordV2) XXX_DiscardUnknown

func (m *PersonRecordV2) XXX_DiscardUnknown()

func (*PersonRecordV2) XXX_Marshal

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

func (*PersonRecordV2) XXX_Merge

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

func (*PersonRecordV2) XXX_Size

func (m *PersonRecordV2) XXX_Size() int

func (*PersonRecordV2) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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