Commit bcb1c42c authored by vipwzw's avatar vipwzw Committed by 33cn

auto ci

parent d74c62aa
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -5,10 +5,9 @@ package types
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
......@@ -20,7 +19,7 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type VoteResult struct {
// 总票数
......@@ -40,16 +39,17 @@ func (m *VoteResult) Reset() { *m = VoteResult{} }
func (m *VoteResult) String() string { return proto.CompactTextString(m) }
func (*VoteResult) ProtoMessage() {}
func (*VoteResult) Descriptor() ([]byte, []int) {
return fileDescriptor_lcommon_3cf79d051a979aaa, []int{0}
return fileDescriptor_d916a933dd8220ff, []int{0}
}
func (m *VoteResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VoteResult.Unmarshal(m, b)
}
func (m *VoteResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VoteResult.Marshal(b, m, deterministic)
}
func (dst *VoteResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_VoteResult.Merge(dst, src)
func (m *VoteResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_VoteResult.Merge(m, src)
}
func (m *VoteResult) XXX_Size() int {
return xxx_messageInfo_VoteResult.Size(m)
......@@ -106,16 +106,17 @@ func (m *PublicVote) Reset() { *m = PublicVote{} }
func (m *PublicVote) String() string { return proto.CompactTextString(m) }
func (*PublicVote) ProtoMessage() {}
func (*PublicVote) Descriptor() ([]byte, []int) {
return fileDescriptor_lcommon_3cf79d051a979aaa, []int{1}
return fileDescriptor_d916a933dd8220ff, []int{1}
}
func (m *PublicVote) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PublicVote.Unmarshal(m, b)
}
func (m *PublicVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PublicVote.Marshal(b, m, deterministic)
}
func (dst *PublicVote) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublicVote.Merge(dst, src)
func (m *PublicVote) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublicVote.Merge(m, src)
}
func (m *PublicVote) XXX_Size() int {
return xxx_messageInfo_PublicVote.Size(m)
......@@ -165,16 +166,17 @@ func (m *VotesRecord) Reset() { *m = VotesRecord{} }
func (m *VotesRecord) String() string { return proto.CompactTextString(m) }
func (*VotesRecord) ProtoMessage() {}
func (*VotesRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_lcommon_3cf79d051a979aaa, []int{2}
return fileDescriptor_d916a933dd8220ff, []int{2}
}
func (m *VotesRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VotesRecord.Unmarshal(m, b)
}
func (m *VotesRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VotesRecord.Marshal(b, m, deterministic)
}
func (dst *VotesRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_VotesRecord.Merge(dst, src)
func (m *VotesRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_VotesRecord.Merge(m, src)
}
func (m *VotesRecord) XXX_Size() int {
return xxx_messageInfo_VotesRecord.Size(m)
......@@ -212,16 +214,17 @@ func (m *RuleConfig) Reset() { *m = RuleConfig{} }
func (m *RuleConfig) String() string { return proto.CompactTextString(m) }
func (*RuleConfig) ProtoMessage() {}
func (*RuleConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_lcommon_3cf79d051a979aaa, []int{3}
return fileDescriptor_d916a933dd8220ff, []int{3}
}
func (m *RuleConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RuleConfig.Unmarshal(m, b)
}
func (m *RuleConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RuleConfig.Marshal(b, m, deterministic)
}
func (dst *RuleConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_RuleConfig.Merge(dst, src)
func (m *RuleConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_RuleConfig.Merge(m, src)
}
func (m *RuleConfig) XXX_Size() int {
return xxx_messageInfo_RuleConfig.Size(m)
......@@ -281,16 +284,17 @@ func (m *ActiveBoard) Reset() { *m = ActiveBoard{} }
func (m *ActiveBoard) String() string { return proto.CompactTextString(m) }
func (*ActiveBoard) ProtoMessage() {}
func (*ActiveBoard) Descriptor() ([]byte, []int) {
return fileDescriptor_lcommon_3cf79d051a979aaa, []int{4}
return fileDescriptor_d916a933dd8220ff, []int{4}
}
func (m *ActiveBoard) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ActiveBoard.Unmarshal(m, b)
}
func (m *ActiveBoard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ActiveBoard.Marshal(b, m, deterministic)
}
func (dst *ActiveBoard) XXX_Merge(src proto.Message) {
xxx_messageInfo_ActiveBoard.Merge(dst, src)
func (m *ActiveBoard) XXX_Merge(src proto.Message) {
xxx_messageInfo_ActiveBoard.Merge(m, src)
}
func (m *ActiveBoard) XXX_Size() int {
return xxx_messageInfo_ActiveBoard.Size(m)
......@@ -337,9 +341,11 @@ func init() {
proto.RegisterType((*ActiveBoard)(nil), "types.ActiveBoard")
}
func init() { proto.RegisterFile("lcommon.proto", fileDescriptor_lcommon_3cf79d051a979aaa) }
func init() {
proto.RegisterFile("lcommon.proto", fileDescriptor_d916a933dd8220ff)
}
var fileDescriptor_lcommon_3cf79d051a979aaa = []byte{
var fileDescriptor_d916a933dd8220ff = []byte{
// 352 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xbf, 0x4e, 0xe3, 0x40,
0x10, 0x87, 0xe5, 0xfc, 0xbb, 0x64, 0x72, 0x77, 0xd2, 0x6d, 0x71, 0x72, 0x81, 0x50, 0xe4, 0x02,
......
This diff is collapsed.
This diff is collapsed.
......@@ -5,10 +5,9 @@ package types
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
......@@ -20,7 +19,7 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type Cert struct {
CertId []byte `protobuf:"bytes,1,opt,name=certId,proto3" json:"certId,omitempty"`
......@@ -36,16 +35,17 @@ func (m *Cert) Reset() { *m = Cert{} }
func (m *Cert) String() string { return proto.CompactTextString(m) }
func (*Cert) ProtoMessage() {}
func (*Cert) Descriptor() ([]byte, []int) {
return fileDescriptor_cert_ed39500e31f072f0, []int{0}
return fileDescriptor_a142e29cbef9b1cf, []int{0}
}
func (m *Cert) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Cert.Unmarshal(m, b)
}
func (m *Cert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Cert.Marshal(b, m, deterministic)
}
func (dst *Cert) XXX_Merge(src proto.Message) {
xxx_messageInfo_Cert.Merge(dst, src)
func (m *Cert) XXX_Merge(src proto.Message) {
xxx_messageInfo_Cert.Merge(m, src)
}
func (m *Cert) XXX_Size() int {
return xxx_messageInfo_Cert.Size(m)
......@@ -100,16 +100,17 @@ func (m *CertAction) Reset() { *m = CertAction{} }
func (m *CertAction) String() string { return proto.CompactTextString(m) }
func (*CertAction) ProtoMessage() {}
func (*CertAction) Descriptor() ([]byte, []int) {
return fileDescriptor_cert_ed39500e31f072f0, []int{1}
return fileDescriptor_a142e29cbef9b1cf, []int{1}
}
func (m *CertAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CertAction.Unmarshal(m, b)
}
func (m *CertAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CertAction.Marshal(b, m, deterministic)
}
func (dst *CertAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertAction.Merge(dst, src)
func (m *CertAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertAction.Merge(m, src)
}
func (m *CertAction) XXX_Size() int {
return xxx_messageInfo_CertAction.Size(m)
......@@ -177,99 +178,15 @@ func (m *CertAction) GetTy() int32 {
return 0
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*CertAction) 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{}) {
return _CertAction_OneofMarshaler, _CertAction_OneofUnmarshaler, _CertAction_OneofSizer, []interface{}{
// XXX_OneofWrappers is for the internal use of the proto package.
func (*CertAction) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*CertAction_New)(nil),
(*CertAction_Update)(nil),
(*CertAction_Normal)(nil),
}
}
func _CertAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*CertAction)
// value
switch x := m.Value.(type) {
case *CertAction_New:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.New); err != nil {
return err
}
case *CertAction_Update:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Update); err != nil {
return err
}
case *CertAction_Normal:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Normal); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("CertAction.Value has unexpected type %T", x)
}
return nil
}
func _CertAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*CertAction)
switch tag {
case 1: // value.new
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CertNew)
err := b.DecodeMessage(msg)
m.Value = &CertAction_New{msg}
return true, err
case 2: // value.update
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CertUpdate)
err := b.DecodeMessage(msg)
m.Value = &CertAction_Update{msg}
return true, err
case 3: // value.normal
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CertNormal)
err := b.DecodeMessage(msg)
m.Value = &CertAction_Normal{msg}
return true, err
default:
return false, nil
}
}
func _CertAction_OneofSizer(msg proto.Message) (n int) {
m := msg.(*CertAction)
// value
switch x := m.Value.(type) {
case *CertAction_New:
s := proto.Size(x.New)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CertAction_Update:
s := proto.Size(x.Update)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CertAction_Normal:
s := proto.Size(x.Normal)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type CertNew struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
......@@ -282,16 +199,17 @@ func (m *CertNew) Reset() { *m = CertNew{} }
func (m *CertNew) String() string { return proto.CompactTextString(m) }
func (*CertNew) ProtoMessage() {}
func (*CertNew) Descriptor() ([]byte, []int) {
return fileDescriptor_cert_ed39500e31f072f0, []int{2}
return fileDescriptor_a142e29cbef9b1cf, []int{2}
}
func (m *CertNew) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CertNew.Unmarshal(m, b)
}
func (m *CertNew) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CertNew.Marshal(b, m, deterministic)
}
func (dst *CertNew) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertNew.Merge(dst, src)
func (m *CertNew) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertNew.Merge(m, src)
}
func (m *CertNew) XXX_Size() int {
return xxx_messageInfo_CertNew.Size(m)
......@@ -328,16 +246,17 @@ func (m *CertUpdate) Reset() { *m = CertUpdate{} }
func (m *CertUpdate) String() string { return proto.CompactTextString(m) }
func (*CertUpdate) ProtoMessage() {}
func (*CertUpdate) Descriptor() ([]byte, []int) {
return fileDescriptor_cert_ed39500e31f072f0, []int{3}
return fileDescriptor_a142e29cbef9b1cf, []int{3}
}
func (m *CertUpdate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CertUpdate.Unmarshal(m, b)
}
func (m *CertUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CertUpdate.Marshal(b, m, deterministic)
}
func (dst *CertUpdate) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertUpdate.Merge(dst, src)
func (m *CertUpdate) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertUpdate.Merge(m, src)
}
func (m *CertUpdate) XXX_Size() int {
return xxx_messageInfo_CertUpdate.Size(m)
......@@ -374,16 +293,17 @@ func (m *CertNormal) Reset() { *m = CertNormal{} }
func (m *CertNormal) String() string { return proto.CompactTextString(m) }
func (*CertNormal) ProtoMessage() {}
func (*CertNormal) Descriptor() ([]byte, []int) {
return fileDescriptor_cert_ed39500e31f072f0, []int{4}
return fileDescriptor_a142e29cbef9b1cf, []int{4}
}
func (m *CertNormal) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CertNormal.Unmarshal(m, b)
}
func (m *CertNormal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CertNormal.Marshal(b, m, deterministic)
}
func (dst *CertNormal) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertNormal.Merge(dst, src)
func (m *CertNormal) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertNormal.Merge(m, src)
}
func (m *CertNormal) XXX_Size() int {
return xxx_messageInfo_CertNormal.Size(m)
......@@ -421,16 +341,17 @@ func (m *Authority) Reset() { *m = Authority{} }
func (m *Authority) String() string { return proto.CompactTextString(m) }
func (*Authority) ProtoMessage() {}
func (*Authority) Descriptor() ([]byte, []int) {
return fileDescriptor_cert_ed39500e31f072f0, []int{5}
return fileDescriptor_a142e29cbef9b1cf, []int{5}
}
func (m *Authority) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Authority.Unmarshal(m, b)
}
func (m *Authority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Authority.Marshal(b, m, deterministic)
}
func (dst *Authority) XXX_Merge(src proto.Message) {
xxx_messageInfo_Authority.Merge(dst, src)
func (m *Authority) XXX_Merge(src proto.Message) {
xxx_messageInfo_Authority.Merge(m, src)
}
func (m *Authority) XXX_Size() int {
return xxx_messageInfo_Authority.Size(m)
......@@ -471,9 +392,11 @@ func init() {
proto.RegisterType((*Authority)(nil), "types.Authority")
}
func init() { proto.RegisterFile("cert.proto", fileDescriptor_cert_ed39500e31f072f0) }
func init() {
proto.RegisterFile("cert.proto", fileDescriptor_a142e29cbef9b1cf)
}
var fileDescriptor_cert_ed39500e31f072f0 = []byte{
var fileDescriptor_a142e29cbef9b1cf = []byte{
// 300 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcd, 0x4a, 0xf3, 0x40,
0x14, 0xed, 0x24, 0xfd, 0xbd, 0xfd, 0x28, 0x9f, 0x83, 0x48, 0x70, 0x21, 0x25, 0xab, 0x82, 0x10,
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -5,10 +5,9 @@ package jsproto
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
......@@ -20,7 +19,7 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// create action
type Create struct {
......@@ -35,16 +34,17 @@ func (m *Create) Reset() { *m = Create{} }
func (m *Create) String() string { return proto.CompactTextString(m) }
func (*Create) ProtoMessage() {}
func (*Create) Descriptor() ([]byte, []int) {
return fileDescriptor_js_ce3c26906a820fa8, []int{0}
return fileDescriptor_d11539bc790542aa, []int{0}
}
func (m *Create) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Create.Unmarshal(m, b)
}
func (m *Create) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Create.Marshal(b, m, deterministic)
}
func (dst *Create) XXX_Merge(src proto.Message) {
xxx_messageInfo_Create.Merge(dst, src)
func (m *Create) XXX_Merge(src proto.Message) {
xxx_messageInfo_Create.Merge(m, src)
}
func (m *Create) XXX_Size() int {
return xxx_messageInfo_Create.Size(m)
......@@ -83,16 +83,17 @@ func (m *Call) Reset() { *m = Call{} }
func (m *Call) String() string { return proto.CompactTextString(m) }
func (*Call) ProtoMessage() {}
func (*Call) Descriptor() ([]byte, []int) {
return fileDescriptor_js_ce3c26906a820fa8, []int{1}
return fileDescriptor_d11539bc790542aa, []int{1}
}
func (m *Call) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Call.Unmarshal(m, b)
}
func (m *Call) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Call.Marshal(b, m, deterministic)
}
func (dst *Call) XXX_Merge(src proto.Message) {
xxx_messageInfo_Call.Merge(dst, src)
func (m *Call) XXX_Merge(src proto.Message) {
xxx_messageInfo_Call.Merge(m, src)
}
func (m *Call) XXX_Size() int {
return xxx_messageInfo_Call.Size(m)
......@@ -139,16 +140,17 @@ func (m *JsAction) Reset() { *m = JsAction{} }
func (m *JsAction) String() string { return proto.CompactTextString(m) }
func (*JsAction) ProtoMessage() {}
func (*JsAction) Descriptor() ([]byte, []int) {
return fileDescriptor_js_ce3c26906a820fa8, []int{2}
return fileDescriptor_d11539bc790542aa, []int{2}
}
func (m *JsAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_JsAction.Unmarshal(m, b)
}
func (m *JsAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_JsAction.Marshal(b, m, deterministic)
}
func (dst *JsAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_JsAction.Merge(dst, src)
func (m *JsAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_JsAction.Merge(m, src)
}
func (m *JsAction) XXX_Size() int {
return xxx_messageInfo_JsAction.Size(m)
......@@ -203,80 +205,14 @@ func (m *JsAction) GetTy() int32 {
return 0
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*JsAction) 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{}) {
return _JsAction_OneofMarshaler, _JsAction_OneofUnmarshaler, _JsAction_OneofSizer, []interface{}{
// XXX_OneofWrappers is for the internal use of the proto package.
func (*JsAction) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*JsAction_Create)(nil),
(*JsAction_Call)(nil),
}
}
func _JsAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*JsAction)
// value
switch x := m.Value.(type) {
case *JsAction_Create:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Create); err != nil {
return err
}
case *JsAction_Call:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Call); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("JsAction.Value has unexpected type %T", x)
}
return nil
}
func _JsAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*JsAction)
switch tag {
case 1: // value.create
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Create)
err := b.DecodeMessage(msg)
m.Value = &JsAction_Create{msg}
return true, err
case 2: // value.call
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Call)
err := b.DecodeMessage(msg)
m.Value = &JsAction_Call{msg}
return true, err
default:
return false, nil
}
}
func _JsAction_OneofSizer(msg proto.Message) (n int) {
m := msg.(*JsAction)
// value
switch x := m.Value.(type) {
case *JsAction_Create:
s := proto.Size(x.Create)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *JsAction_Call:
s := proto.Size(x.Call)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type JsLog struct {
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -288,16 +224,17 @@ func (m *JsLog) Reset() { *m = JsLog{} }
func (m *JsLog) String() string { return proto.CompactTextString(m) }
func (*JsLog) ProtoMessage() {}
func (*JsLog) Descriptor() ([]byte, []int) {
return fileDescriptor_js_ce3c26906a820fa8, []int{3}
return fileDescriptor_d11539bc790542aa, []int{3}
}
func (m *JsLog) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_JsLog.Unmarshal(m, b)
}
func (m *JsLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_JsLog.Marshal(b, m, deterministic)
}
func (dst *JsLog) XXX_Merge(src proto.Message) {
xxx_messageInfo_JsLog.Merge(dst, src)
func (m *JsLog) XXX_Merge(src proto.Message) {
xxx_messageInfo_JsLog.Merge(m, src)
}
func (m *JsLog) XXX_Size() int {
return xxx_messageInfo_JsLog.Size(m)
......@@ -326,16 +263,17 @@ func (m *QueryResult) Reset() { *m = QueryResult{} }
func (m *QueryResult) String() string { return proto.CompactTextString(m) }
func (*QueryResult) ProtoMessage() {}
func (*QueryResult) Descriptor() ([]byte, []int) {
return fileDescriptor_js_ce3c26906a820fa8, []int{4}
return fileDescriptor_d11539bc790542aa, []int{4}
}
func (m *QueryResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryResult.Unmarshal(m, b)
}
func (m *QueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryResult.Marshal(b, m, deterministic)
}
func (dst *QueryResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryResult.Merge(dst, src)
func (m *QueryResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryResult.Merge(m, src)
}
func (m *QueryResult) XXX_Size() int {
return xxx_messageInfo_QueryResult.Size(m)
......@@ -361,9 +299,11 @@ func init() {
proto.RegisterType((*QueryResult)(nil), "jsproto.QueryResult")
}
func init() { proto.RegisterFile("js.proto", fileDescriptor_js_ce3c26906a820fa8) }
func init() {
proto.RegisterFile("js.proto", fileDescriptor_d11539bc790542aa)
}
var fileDescriptor_js_ce3c26906a820fa8 = []byte{
var fileDescriptor_d11539bc790542aa = []byte{
// 231 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0xbf, 0x4e, 0xc3, 0x30,
0x10, 0xc6, 0x9b, 0x90, 0xa4, 0xe1, 0x22, 0x40, 0xf2, 0x14, 0xc1, 0x02, 0x66, 0x81, 0x25, 0x42,
......
This diff is collapsed.
This diff is collapsed.
......@@ -5,10 +5,9 @@ package types
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
......@@ -20,7 +19,7 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type Norm struct {
NormId []byte `protobuf:"bytes,1,opt,name=normId,proto3" json:"normId,omitempty"`
......@@ -36,16 +35,17 @@ func (m *Norm) Reset() { *m = Norm{} }
func (m *Norm) String() string { return proto.CompactTextString(m) }
func (*Norm) ProtoMessage() {}
func (*Norm) Descriptor() ([]byte, []int) {
return fileDescriptor_norm_4c7b2dbe1c6a4afc, []int{0}
return fileDescriptor_4c505000707f0293, []int{0}
}
func (m *Norm) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Norm.Unmarshal(m, b)
}
func (m *Norm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Norm.Marshal(b, m, deterministic)
}
func (dst *Norm) XXX_Merge(src proto.Message) {
xxx_messageInfo_Norm.Merge(dst, src)
func (m *Norm) XXX_Merge(src proto.Message) {
xxx_messageInfo_Norm.Merge(m, src)
}
func (m *Norm) XXX_Size() int {
return xxx_messageInfo_Norm.Size(m)
......@@ -98,16 +98,17 @@ func (m *NormAction) Reset() { *m = NormAction{} }
func (m *NormAction) String() string { return proto.CompactTextString(m) }
func (*NormAction) ProtoMessage() {}
func (*NormAction) Descriptor() ([]byte, []int) {
return fileDescriptor_norm_4c7b2dbe1c6a4afc, []int{1}
return fileDescriptor_4c505000707f0293, []int{1}
}
func (m *NormAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NormAction.Unmarshal(m, b)
}
func (m *NormAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NormAction.Marshal(b, m, deterministic)
}
func (dst *NormAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_NormAction.Merge(dst, src)
func (m *NormAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_NormAction.Merge(m, src)
}
func (m *NormAction) XXX_Size() int {
return xxx_messageInfo_NormAction.Size(m)
......@@ -149,61 +150,13 @@ func (m *NormAction) GetTy() int32 {
return 0
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*NormAction) 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{}) {
return _NormAction_OneofMarshaler, _NormAction_OneofUnmarshaler, _NormAction_OneofSizer, []interface{}{
// XXX_OneofWrappers is for the internal use of the proto package.
func (*NormAction) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*NormAction_Nput)(nil),
}
}
func _NormAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*NormAction)
// value
switch x := m.Value.(type) {
case *NormAction_Nput:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Nput); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("NormAction.Value has unexpected type %T", x)
}
return nil
}
func _NormAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*NormAction)
switch tag {
case 1: // value.nput
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(NormPut)
err := b.DecodeMessage(msg)
m.Value = &NormAction_Nput{msg}
return true, err
default:
return false, nil
}
}
func _NormAction_OneofSizer(msg proto.Message) (n int) {
m := msg.(*NormAction)
// value
switch x := m.Value.(type) {
case *NormAction_Nput:
s := proto.Size(x.Nput)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type NormPut struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
......@@ -216,16 +169,17 @@ func (m *NormPut) Reset() { *m = NormPut{} }
func (m *NormPut) String() string { return proto.CompactTextString(m) }
func (*NormPut) ProtoMessage() {}
func (*NormPut) Descriptor() ([]byte, []int) {
return fileDescriptor_norm_4c7b2dbe1c6a4afc, []int{2}
return fileDescriptor_4c505000707f0293, []int{2}
}
func (m *NormPut) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NormPut.Unmarshal(m, b)
}
func (m *NormPut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NormPut.Marshal(b, m, deterministic)
}
func (dst *NormPut) XXX_Merge(src proto.Message) {
xxx_messageInfo_NormPut.Merge(dst, src)
func (m *NormPut) XXX_Merge(src proto.Message) {
xxx_messageInfo_NormPut.Merge(m, src)
}
func (m *NormPut) XXX_Size() int {
return xxx_messageInfo_NormPut.Size(m)
......@@ -261,16 +215,17 @@ func (m *NormGetKey) Reset() { *m = NormGetKey{} }
func (m *NormGetKey) String() string { return proto.CompactTextString(m) }
func (*NormGetKey) ProtoMessage() {}
func (*NormGetKey) Descriptor() ([]byte, []int) {
return fileDescriptor_norm_4c7b2dbe1c6a4afc, []int{3}
return fileDescriptor_4c505000707f0293, []int{3}
}
func (m *NormGetKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NormGetKey.Unmarshal(m, b)
}
func (m *NormGetKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NormGetKey.Marshal(b, m, deterministic)
}
func (dst *NormGetKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_NormGetKey.Merge(dst, src)
func (m *NormGetKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_NormGetKey.Merge(m, src)
}
func (m *NormGetKey) XXX_Size() int {
return xxx_messageInfo_NormGetKey.Size(m)
......@@ -295,9 +250,11 @@ func init() {
proto.RegisterType((*NormGetKey)(nil), "types.NormGetKey")
}
func init() { proto.RegisterFile("norm.proto", fileDescriptor_norm_4c7b2dbe1c6a4afc) }
func init() {
proto.RegisterFile("norm.proto", fileDescriptor_4c505000707f0293)
}
var fileDescriptor_norm_4c7b2dbe1c6a4afc = []byte{
var fileDescriptor_4c505000707f0293 = []byte{
// 209 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xca, 0xcb, 0x2f, 0xca,
0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2d, 0xa9, 0x2c, 0x48, 0x2d, 0x56, 0x4a, 0xe3,
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -117,9 +117,11 @@ type rawShortNode struct {
Val node
}
func (n rawShortNode) canUnload(uint16, uint16) bool { panic("this should never end up in a live trie") }
func (n rawShortNode) cache() (hashNode, bool) { panic("this should never end up in a live trie") }
func (n rawShortNode) fstring(ind string) string { panic("this should never end up in a live trie") }
func (n rawShortNode) canUnload(uint16, uint16) bool {
panic("this should never end up in a live trie")
}
func (n rawShortNode) cache() (hashNode, bool) { panic("this should never end up in a live trie") }
func (n rawShortNode) fstring(ind string) string { panic("this should never end up in a live trie") }
// cachedNode is all the information we know about a single cached node in the
// memory database write layer.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment