katydid: github.com/katydid/katydid/relapse/protonum Index | Files

package protonum

import "github.com/katydid/katydid/relapse/protonum"

Package protonum is used to rewrite field names to field numbers in relapse grammars.

Package protonum is a generated protocol buffer package.

It is generated from these files:

protonum.proto

It has these top-level messages:

ProtoNum
KeyValue
TopsyTurvy
Topsy
Turvy
Knot
BightKnot

Index

Package Files

protonum.go protonum.pb.go

func FieldNamesToNumbers Uses

func FieldNamesToNumbers(pkgName, msgName string, desc *descriptor.FileDescriptorSet, grammar *ast.Grammar) (*ast.Grammar, error)

FieldNamesToNumbers rewrites field names contained in the grammar to their respective field numbers found in the protocol buffer filedescriptorset. This allows for more speedy field comparisons in validation when used in conjunction with the ProtoNumParser.

func ProtonumDescription Uses

func ProtonumDescription() (desc *descriptor.FileDescriptorSet)

type BightKnot Uses

type BightKnot struct {
    Loop             *Knot  `protobuf:"bytes,1,opt,name=Loop" json:"Loop,omitempty"`
    Turn             *bool  `protobuf:"varint,2,opt,name=Turn" json:"Turn,omitempty"`
    XXX_unrecognized []byte `json:"-"`
}

BightKnot is used for testing of the protonum package.

func (*BightKnot) Description Uses

func (this *BightKnot) Description() (desc *descriptor.FileDescriptorSet)

func (*BightKnot) Descriptor Uses

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

func (*BightKnot) GetLoop Uses

func (m *BightKnot) GetLoop() *Knot

func (*BightKnot) GetTurn Uses

func (m *BightKnot) GetTurn() bool

func (*BightKnot) GoString Uses

func (this *BightKnot) GoString() string

func (*BightKnot) ProtoMessage Uses

func (*BightKnot) ProtoMessage()

func (*BightKnot) Reset Uses

func (m *BightKnot) Reset()

func (*BightKnot) String Uses

func (m *BightKnot) String() string

type ErrDup Uses

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

func (*ErrDup) Error Uses

func (this *ErrDup) Error() string

type KeyValue Uses

type KeyValue struct {
    Key              *string `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"`
    Value            *string `protobuf:"bytes,2,opt,name=Value" json:"Value,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

KeyValue is used for testing of the protonum package.

func (*KeyValue) Description Uses

func (this *KeyValue) Description() (desc *descriptor.FileDescriptorSet)

func (*KeyValue) Descriptor Uses

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

func (*KeyValue) GetKey Uses

func (m *KeyValue) GetKey() string

func (*KeyValue) GetValue Uses

func (m *KeyValue) GetValue() string

func (*KeyValue) GoString Uses

func (this *KeyValue) GoString() string

func (*KeyValue) ProtoMessage Uses

func (*KeyValue) ProtoMessage()

func (*KeyValue) Reset Uses

func (m *KeyValue) Reset()

func (*KeyValue) String Uses

func (m *KeyValue) String() string

type Knot Uses

type Knot struct {
    Bight            []*BightKnot `protobuf:"bytes,1,rep,name=Bight" json:"Bight,omitempty"`
    Elbow            *bool        `protobuf:"varint,2,opt,name=Elbow" json:"Elbow,omitempty"`
    BitterEnd        *Knot        `protobuf:"bytes,3,opt,name=BitterEnd" json:"BitterEnd,omitempty"`
    XXX_unrecognized []byte       `json:"-"`
}

Knot is used for testing of the protonum package.

func (*Knot) Description Uses

func (this *Knot) Description() (desc *descriptor.FileDescriptorSet)

func (*Knot) Descriptor Uses

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

func (*Knot) GetBight Uses

func (m *Knot) GetBight() []*BightKnot

func (*Knot) GetBitterEnd Uses

func (m *Knot) GetBitterEnd() *Knot

func (*Knot) GetElbow Uses

func (m *Knot) GetElbow() bool

func (*Knot) GoString Uses

func (this *Knot) GoString() string

func (*Knot) ProtoMessage Uses

func (*Knot) ProtoMessage()

func (*Knot) Reset Uses

func (m *Knot) Reset()

func (*Knot) String Uses

func (m *Knot) String() string

type ProtoNum Uses

type ProtoNum struct {
    KeyValue         []*KeyValue `protobuf:"bytes,2,rep,name=KeyValue" json:"KeyValue,omitempty"`
    XXX_unrecognized []byte      `json:"-"`
}

ProtoNum is used for testing of the protonum package.

func (*ProtoNum) Description Uses

func (this *ProtoNum) Description() (desc *descriptor.FileDescriptorSet)

func (*ProtoNum) Descriptor Uses

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

func (*ProtoNum) GetKeyValue Uses

func (m *ProtoNum) GetKeyValue() []*KeyValue

func (*ProtoNum) GoString Uses

func (this *ProtoNum) GoString() string

func (*ProtoNum) ProtoMessage Uses

func (*ProtoNum) ProtoMessage()

func (*ProtoNum) Reset Uses

func (m *ProtoNum) Reset()

func (*ProtoNum) String Uses

func (m *ProtoNum) String() string

type Topsy Uses

type Topsy struct {
    A                *int64 `protobuf:"varint,1,opt,name=A" json:"A,omitempty"`
    B                *int64 `protobuf:"varint,2,opt,name=B" json:"B,omitempty"`
    XXX_unrecognized []byte `json:"-"`
}

Topsy is used for testing of the protonum package.

func (*Topsy) Description Uses

func (this *Topsy) Description() (desc *descriptor.FileDescriptorSet)

func (*Topsy) Descriptor Uses

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

func (*Topsy) GetA Uses

func (m *Topsy) GetA() int64

func (*Topsy) GetB Uses

func (m *Topsy) GetB() int64

func (*Topsy) GoString Uses

func (this *Topsy) GoString() string

func (*Topsy) ProtoMessage Uses

func (*Topsy) ProtoMessage()

func (*Topsy) Reset Uses

func (m *Topsy) Reset()

func (*Topsy) String Uses

func (m *Topsy) String() string

type TopsyTurvy Uses

type TopsyTurvy struct {
    Topsy            *Topsy `protobuf:"bytes,1,opt,name=Topsy" json:"Topsy,omitempty"`
    Turvy            *Turvy `protobuf:"bytes,2,opt,name=Turvy" json:"Turvy,omitempty"`
    XXX_unrecognized []byte `json:"-"`
}

TopsyTurvy is used for testing of the protonum package.

func (*TopsyTurvy) Description Uses

func (this *TopsyTurvy) Description() (desc *descriptor.FileDescriptorSet)

func (*TopsyTurvy) Descriptor Uses

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

func (*TopsyTurvy) GetTopsy Uses

func (m *TopsyTurvy) GetTopsy() *Topsy

func (*TopsyTurvy) GetTurvy Uses

func (m *TopsyTurvy) GetTurvy() *Turvy

func (*TopsyTurvy) GoString Uses

func (this *TopsyTurvy) GoString() string

func (*TopsyTurvy) ProtoMessage Uses

func (*TopsyTurvy) ProtoMessage()

func (*TopsyTurvy) Reset Uses

func (m *TopsyTurvy) Reset()

func (*TopsyTurvy) String Uses

func (m *TopsyTurvy) String() string

type Turvy Uses

type Turvy struct {
    B                *int64 `protobuf:"varint,1,opt,name=B" json:"B,omitempty"`
    A                *int64 `protobuf:"varint,2,opt,name=A" json:"A,omitempty"`
    XXX_unrecognized []byte `json:"-"`
}

Turvy is used for testing of the protonum package.

func (*Turvy) Description Uses

func (this *Turvy) Description() (desc *descriptor.FileDescriptorSet)

func (*Turvy) Descriptor Uses

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

func (*Turvy) GetA Uses

func (m *Turvy) GetA() int64

func (*Turvy) GetB Uses

func (m *Turvy) GetB() int64

func (*Turvy) GoString Uses

func (this *Turvy) GoString() string

func (*Turvy) ProtoMessage Uses

func (*Turvy) ProtoMessage()

func (*Turvy) Reset Uses

func (m *Turvy) Reset()

func (*Turvy) String Uses

func (m *Turvy) String() string

Package protonum imports 12 packages (graph). Updated 2018-07-21. Refresh now. Tools for package owners.