Documentation ΒΆ
Index ΒΆ
- func CheckOption(bearer OptionsBearer, optName string) *optChecker
- func Equal(x, y Unique) bool
- func FieldIndex(f Field) int
- func FieldName(f Field) string
- func GetFieldKey(k Unique, fieldAddr interface{}) string
- func GetUnique(k Unique) string
- func IsErrorTypeNotFound(err error) bool
- func SamePrimitive(x, y Type) bool
- func SetUnique(k Unique, ctx UniqueContext)
- type Any
- type ArrayOption
- type Bool
- type BoolOption
- type Bytes
- type Comment
- type Commented
- type Compound
- type EmbeddedOption
- type Enum
- type EnumOption
- type EnumValue
- type ErrorPackageMissingFiles
- type ErrorTypeNotFound
- type Extension
- type ExtensionField
- type Field
- type File
- type FileManager
- type Fixed32
- type Fixed64
- type Float32
- type Float64
- type FloatOption
- type Hashable
- type Import
- type Int32
- type Int64
- type IntOption
- type Map
- type MapOption
- type Message
- func (m *Message) AllFields() []Field
- func (m *Message) Enum(name string) (*Enum, error)
- func (m *Message) Field(name string) *MessageField
- func (m *Message) FieldOneof(name string) Field
- func (m *Message) GetComment() *Comment
- func (m *Message) GetFullName() string
- func (m *Message) GetName() string
- func (m *Message) GetOptions() []*Option
- func (m *Message) GetParentMsg() *Message
- func (m *Message) Message(name string) (*Message, error)
- func (m *Message) ScanTypes(inspector func(typ Type) bool)
- func (m *Message) String() string
- func (m *Message) Type(name string) Type
- type MessageField
- type Method
- type MethodType
- type Named
- type Node
- type OneOf
- type OneOfBranch
- type Option
- type OptionValue
- type Optional
- type OptionsBearer
- type Package
- func (s *Package) Enum(name string) (*Enum, error)
- func (s *Package) File(name string) (*File, error)
- func (s *Package) Files() []*File
- func (s *Package) GoPkg() string
- func (s *Package) Message(name string) (*Message, error)
- func (s *Package) Pkg() string
- func (s *Package) ScanTypes(inspector func(p Type) bool)
- func (s *Package) Service(name string) *Service
- func (s *Package) Services() []*Service
- func (s *Package) Type(name string) Type
- func (s *Package) Types() []Type
- type Printer
- type Repeated
- type ScalarNode
- type Service
- type Sfixed32
- type Sfixed64
- type Sint32
- type Sint64
- type Stream
- type String
- type StringOption
- type Type
- type Uint32
- type Uint64
- type UintOption
- type Unique
- type UniqueContext
- type Valuable
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
func CheckOption ΒΆ added in v0.30.1
func CheckOption(bearer OptionsBearer, optName string) *optChecker
func FieldIndex ΒΆ
FieldIndex Π²ΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΠΈΠ½Π΄Π΅ΠΊΡ ΠΏΠΎΠ»Ρ
func GetFieldKey ΒΆ
GetFieldKey ΠΏΠΎΠ»ΡΡΠ°Π΅Ρ ΠΊΠ»ΡΡ Π΄Π»Ρ ΠΏΠΎΠ»Ρ Π΄Π°Π½Π½ΠΎΠ³ΠΎ k
func IsErrorTypeNotFound ΒΆ
IsErrorTypeNotFound ΠΏΡΠΎΠ²Π΅ΡΠΊΠ°, ΡΡΠΎ Π΄Π°Π½Π½Π°Ρ ΠΎΡΠΈΠ±ΠΊΠ° ΡΠ²Π»ΡΠ΅ΡΡΡ ΠΎΠ±ΡΡΡΠΊΠΎΠΉ Π΄Π»Ρ ErrorTypeNotFound
func SamePrimitive ΒΆ
SamePrimitive ΠΏΡΠΎΠ²Π΅ΡΠΊΠ° ΡΠ°Π²Π΅Π½ΡΡΠ²Π° ΠΏΡΠΈΠΌΠΈΡΠΈΠ²Π½ΡΡ ΡΠΈΠΏΠΎΠ²
func SetUnique ΒΆ
func SetUnique(k Unique, ctx UniqueContext)
SetUnique ΡΡΡΠ°Π½Π°Π²Π»ΠΈΠ²Π°Π΅Ρ ΡΠ½ΠΈΠΊΠ°Π»ΡΠ½ΠΎΠ΅ Π² ΡΠ°ΠΌΠΊΠ°Ρ UniqueContext Π·Π½Π°ΡΠ΅Π½ΠΈΠ΅ Π΄Π»Ρ Π΄Π°Π½Π½ΠΎΠ³ΠΎ Unique
Types ΒΆ
type Any ΒΆ
type Any struct { File *File // contains filtered or unexported fields }
Any ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΈΠΏΠ° golang.protobuf.Any
func (*Any) GetFullName ΒΆ added in v0.30.3
type ArrayOption ΒΆ
type ArrayOption struct { Value []OptionValue // contains filtered or unexported fields }
ArrayOption branch of OptionValue
type Bool ΒΆ
type Bool struct {
// contains filtered or unexported fields
}
Bool ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π±ΡΠ»Π΅Π²ΡΠΊΠΎΠ³ΠΎ ΡΠΈΠΏΠ°
func (*Bool) GetFullName ΒΆ added in v0.30.3
type BoolOption ΒΆ
type BoolOption struct { Value bool // contains filtered or unexported fields }
BoolOption branch of OptionValue
func (*BoolOption) GetValue ΒΆ added in v0.30.2
func (o *BoolOption) GetValue() interface{}
func (*BoolOption) String ΒΆ
func (o *BoolOption) String() string
type Bytes ΒΆ
type Bytes struct {
// contains filtered or unexported fields
}
Bytes ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΈΠΏΠ° bytes
func (*Bytes) GetFullName ΒΆ added in v0.30.3
type Compound ΒΆ added in v0.30.1
Compound ΡΠΈΠΏΡ, Π²Ρ ΠΎΠ΄ΡΡΠΈΠ΅ Π² ΡΠΎΡΡΠ°Π² Π΄ΡΡΠ³ΠΈΡ ΡΠΈΠΏΠΎΠ².
type EmbeddedOption ΒΆ
type EmbeddedOption struct { Value string // contains filtered or unexported fields }
EmbeddedOption ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π²ΡΡΡΠΎΠ΅Π½Π½ΠΎΠΉ ΠΎΠΏΡΠΈΠΈ
func (*EmbeddedOption) GetValue ΒΆ added in v0.30.1
func (o *EmbeddedOption) GetValue() interface{}
type Enum ΒΆ
type Enum struct { File *File ParentMsg *Message Name string Comment *Comment Options []*Option Values []*EnumValue // contains filtered or unexported fields }
Enum ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΈΠΏΠ° enum
func (*Enum) GetComment ΒΆ added in v0.30.1
func (*Enum) GetFullName ΒΆ added in v0.30.3
type EnumOption ΒΆ
type EnumOption struct { Value *EnumValue // contains filtered or unexported fields }
EnumOption ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΠΎΠΏΡΠΈΠΉ ΡΠΈΠΏΠ° Enum
func (*EnumOption) GetValue ΒΆ added in v0.30.1
func (o *EnumOption) GetValue() interface{}
type EnumValue ΒΆ
type EnumValue struct { Name string Comment *Comment Integer int Options []*Option // contains filtered or unexported fields }
EnumValue ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΠΏΠΎΠ»Ρ Π΄Π»Ρ Enum-Π°
func (*EnumValue) GetComment ΒΆ added in v0.30.1
func (*EnumValue) GetFullName ΒΆ added in v0.30.3
type ErrorPackageMissingFiles ΒΆ
type ErrorPackageMissingFiles struct{}
ErrorPackageMissingFiles ΠΎΡΠΈΠ±ΠΊΠ° ΡΠΊΠ°Π·ΡΠ²Π°ΡΡΠ°Ρ Π½Π° ΠΎΡΡΡΡΡΡΠ²ΠΈΠ΅ proto-ΡΠ°ΠΉΠ»ΠΎΠ² Π² ΠΏΠ°ΠΊΠ΅ΡΠ΅
func (ErrorPackageMissingFiles) Error ΒΆ
func (ErrorPackageMissingFiles) Error() string
type ErrorTypeNotFound ΒΆ
type ErrorTypeNotFound string
ErrorTypeNotFound ΠΎΡΠΈΠ±ΠΊΠ° Π²ΠΎΠ·Π²ΡΠ°ΡΠ°Π΅ΠΌΠ°Ρ Π΅ΡΠ»ΠΈ ΡΠΈΠΏ Π½Π΅ Π±ΡΠ» Π½Π°ΠΉΠ΄Π΅Π½
func (ErrorTypeNotFound) Error ΒΆ
func (e ErrorTypeNotFound) Error() string
type Extension ΒΆ
type Extension struct { File *File ParentMsg *Message Name string Fields []*ExtensionField Types []Type // contains filtered or unexported fields }
Extension ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ extension
func MessageToExtension ΒΆ
MessageToExtension ΠΊΠΎΠΏΠΈΡΡΠ΅Ρ Message Π² Extension Ρ ΡΠΎΡ ΡΠ°Π½Π΅Π½ΠΈΠ΅ΠΌ Π²ΡΠ΅ΠΉ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΠΈ
type ExtensionField ΒΆ
type ExtensionField struct { Name string Sequence int Type Type Options []*Option // contains filtered or unexported fields }
ExtensionField ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΠΏΠΎΠ»Ρ extension-Π°
type Field ΒΆ
type Field interface { Unique Named Commented OptionsBearer // contains filtered or unexported methods }
Field ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΡΡΠ½ΠΎΡΡΠΈ ΡΠ²Π»ΡΡΡΠ΅ΠΉΡΡ ΠΏΠΎΠ»Π΅ΠΌ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΡ. ΠΡΠΎ ΠΌΠΎΠΆΠ΅Ρ Π±ΡΡΡ ΠΊΠ°ΠΊ Π½Π΅ΠΏΠΎΡΡΠ΅Π΄ΡΡΠ²Π΅Π½Π½ΠΎ ΠΏΠΎΠ»Π΅, ΡΠ°ΠΊ ΠΈ Π²Π΅ΡΠ²Ρ oneof-Π°
type File ΒΆ
type File struct { Name string Package string Syntax string Imports []*Import Types []Type Extensions []*Extension Services []*Service Options []*Option GoPath string GoPkg string // contains filtered or unexported fields }
File ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ ΡΠ°ΠΉΠ»Π°
func (*File) Enum ΒΆ
Enum ΠΏΠΎΠΈΡΠΊ ΠΏΠ΅ΡΠ΅ΡΠΈΡΠ»Π΅Π½ΠΈΡ ΠΏΠΎ ΠΈΠΌΠ΅Π½ΠΈ ΠΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΠΎΡΠΈΠ±ΠΊΡ ErrorTypeNotFound Π΅ΡΠ»ΠΈ ΡΠ°ΠΊΠΎΠΉ ΡΠΈΠΏ Ρ ΡΠ°ΠΊΠΈΠΌ ΠΈΠΌΠ΅Π½Π΅ΠΌ Π½Π΅ Π½Π°ΠΉΠ΄Π΅Π½.
func (*File) GetOptions ΒΆ added in v0.30.1
func (*File) Message ΒΆ
Message ΠΏΠΎΠΈΡΠΊ ΡΡΡΡΠΊΡΡΡΡ ΠΏΠΎ ΠΈΠΌΠ΅Π½ΠΈ. ΠΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΠΎΡΠΈΠ±ΠΊΡ ErrorTypeNotFound Π΅ΡΠ»ΠΈ ΡΠ°ΠΊΠΎΠΉ ΡΠΈΠΏ Ρ ΡΠ°ΠΊΠΈΠΌ ΠΈΠΌΠ΅Π½Π΅ΠΌ Π½Π΅ Π½Π°ΠΉΠ΄Π΅Π½.
type FileManager ΒΆ
type FileManager interface { // Create Π²ΠΎΠ·Π²ΡΠ°ΡΠ°Π΅ΠΌ ΠΏΠ°ΡΡ writer ΠΈ ΡΡΠ½ΠΊΡΠΈΡ Π·Π°ΠΊΡΡΡΠΈΡ ΡΠ°ΠΉΠ»Π° Π²ΠΌΠ΅ΡΡΠΎ ΠΎΠ΄Π½ΠΎΠ³ΠΎ io.WriteClose Π΄Π»Ρ ΡΠ΄ΠΎΠ±ΡΡΠ²Π° Π² ΡΠ΅ΡΡΠ°Ρ // ΠΠ»ΡΡ, ΡΡΠΎΡ ΠΈΠ½ΡΠ΅ΡΡΠ΅ΠΉΡ Π±ΡΠ΄Π΅Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡΡΡ ΡΠΎΠ»ΡΠΊΠΎ Π²Π½ΡΡΡΠΈ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ Create(name string) (writer io.Writer, closer func() error, err error) }
FileManager ΡΠ°Π±ΠΎΡΠ° Ρ Π·Π°ΠΏΠΈΡΡΠ²Π°Π΅ΠΌΡΠΌΠΈ ΡΠ°ΠΉΠ»Π°ΠΌΠΈ
func NewFileManager ΒΆ
func NewFileManager(root string) FileManager
NewFileManager ΡΠ΅Π°Π»ΠΈΠ·Π°ΡΠΈΡ ΡΠΏΡΠ°Π²Π»Π΅Π½ΠΈΡ ΡΠ°ΠΉΠ»Π°ΠΌΠΈ Π½Π° ΡΡΠΎΠ²Π½Π΅ ΡΠ°ΠΉΠ»ΠΎΠ²ΠΎΠΉ ΡΠΈΡΡΠ΅ΠΌΡ
type Fixed32 ΒΆ
type Fixed32 struct {
// contains filtered or unexported fields
}
Fixed32 ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΈΠΏΠ° fixed32
func (*Fixed32) GetFullName ΒΆ added in v0.30.3
type Fixed64 ΒΆ
type Fixed64 struct {
// contains filtered or unexported fields
}
Fixed64 ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΈΠΏΠ° fixed64
func (*Fixed64) GetFullName ΒΆ added in v0.30.3
type Float32 ΒΆ
type Float32 struct {
// contains filtered or unexported fields
}
Float32 ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΈΠΏΠ° float
func (*Float32) GetFullName ΒΆ added in v0.30.3
type Float64 ΒΆ
type Float64 struct {
// contains filtered or unexported fields
}
Float64 ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΈΠΏΠ° double
func (*Float64) GetFullName ΒΆ added in v0.30.3
type FloatOption ΒΆ
type FloatOption struct { Value float64 // contains filtered or unexported fields }
FloatOption branch of OptionValue
func (*FloatOption) GetValue ΒΆ added in v0.30.1
func (o *FloatOption) GetValue() interface{}
func (*FloatOption) String ΒΆ
func (o *FloatOption) String() string
type Hashable ΒΆ
type Hashable interface { ScalarNode // contains filtered or unexported methods }
Hashable ΡΠΈΠΏΡ ΠΌΠΎΠ³ΡΡΠΈΠ΅ ΡΠ²Π»ΡΡΡΡΡ ΠΊΠ»ΡΡΠ°ΠΌΠΈ ΡΠ»ΠΎΠ²Π°ΡΠ΅ΠΉ
type Int32 ΒΆ
type Int32 struct {
// contains filtered or unexported fields
}
Int32 ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΈΠΏΠ° int32
func (*Int32) GetFullName ΒΆ added in v0.30.3
type Int64 ΒΆ
type Int64 struct {
// contains filtered or unexported fields
}
Int64 ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΈΠΏΠ° int64
func (*Int64) GetFullName ΒΆ added in v0.30.3
type IntOption ΒΆ
type IntOption struct { Value int64 // contains filtered or unexported fields }
IntOption branch of OptionValue
type MapOption ΒΆ
type MapOption struct { Value map[string]OptionValue // contains filtered or unexported fields }
MapOption branch of OptionValue
type Message ΒΆ
type Message struct { File *File ParentMsg *Message Name string Comment *Comment Fields []*MessageField Types []Type Options []*Option // contains filtered or unexported fields }
Message ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ message
func (*Message) AllFields ΒΆ
AllFields Π²ΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΠΏΠΎΠ»Ρ ΠΈ Π²Π΅ΡΠ²ΠΈ oneof Π΄Π°Π½Π½ΠΎΠ³ΠΎ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΡ Π΅Π΄ΠΈΠ½ΡΠΌ ΡΠΏΠΈΡΠΊΠΎΠΌ
func (*Message) Enum ΒΆ
Enum ΠΏΠΎΠΈΡΠΊ Π²Π»ΠΎΠΆΠ΅Π½Π½ΠΎΠ³ΠΎ ΠΏΠ΅ΡΠ΅ΡΠΈΡΠ»Π΅Π½ΠΈΡ ΠΏΠΎ ΠΈΠΌΠ΅Π½ΠΈ. ΠΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΠΎΡΠΈΠ±ΠΊΡ ErrorTypeNotFound Π΅ΡΠ»ΠΈ ΡΠ°ΠΊΠΎΠΉ ΡΠΈΠΏ Ρ ΡΠ°ΠΊΠΈΠΌ ΠΈΠΌΠ΅Π½Π΅ΠΌ Π½Π΅ Π½Π°ΠΉΠ΄Π΅Π½.
func (*Message) Field ΒΆ
func (m *Message) Field(name string) *MessageField
Field Π²ΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΠΏΠΎΠ»Π΅ ΠΌΠ΅ΡΡΠ°Π΄ΠΆΠ° ΠΏΠΎ ΠΈΠΌΠ΅Π½ΠΈ. ΠΠ΅ ΠΏΡΠΎΠΈΠ·Π²ΠΎΠ΄ΠΈΡ Π½ΠΎΡΠΌΠ°Π»ΠΈΠ·Π°ΡΠΈΠΈ ΠΏΠΎ oneof-Π°ΠΌ.
func (*Message) FieldOneof ΒΆ
FieldOneof Π²ΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΠΏΠΎΠ»Π΅ ΠΌΠ΅ΡΡΠ°Π΄ΠΆΠ° ΠΏΠΎ ΠΈΠΌΠ΅Π½ΠΈ, ΠΏΡΠΈ ΡΡΠΎΠΌ Π·Π°Π»Π΅Π·Π°Π΅Ρ, Π΅ΡΠ»ΠΈ Π½ΡΠΆΠ½ΠΎ, Π²Π½ΡΡΡΡ oneof-Π°
func (*Message) GetComment ΒΆ added in v0.30.1
func (*Message) GetFullName ΒΆ added in v0.30.3
func (*Message) GetOptions ΒΆ added in v0.30.1
func (*Message) GetParentMsg ΒΆ
func (*Message) Message ΒΆ
Message ΠΏΠΎΠΈΡΠΊ ΠΏΠΎΠ΄ΡΡΡΡΠΊΡΡΡΡ ΠΏΠΎ ΠΈΠΌΠ΅Π½ΠΈ. ΠΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΠΎΡΠΈΠ±ΠΊΡ ErrorTypeNotFound Π΅ΡΠ»ΠΈ ΡΠ°ΠΊΠΎΠΉ ΡΠΈΠΏ Ρ ΡΠ°ΠΊΠΈΠΌ ΠΈΠΌΠ΅Π½Π΅ΠΌ Π½Π΅ Π½Π°ΠΉΠ΄Π΅Π½.
func (*Message) ScanTypes ΒΆ
ScanTypes ΠΏΡΠΎΠ±Π΅ΠΆΠΊΠ° ΠΏΠΎ Π²Π½ΡΡΡΠ΅Π½Π½ΠΈΠΌ ΡΠΈΠΏΠ°ΠΌ Π΄Π°Π½Π½ΠΎΠΉ ΡΡΡΡΠΊΡΡΡΡ
type MessageField ΒΆ
type MessageField struct { Name string Comment *Comment Sequence int Type Type Options []*Option // contains filtered or unexported fields }
MessageField ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΠΏΠΎΠ»Ρ message-Π°
func (*MessageField) GetComment ΒΆ added in v0.30.1
func (m *MessageField) GetComment() *Comment
func (*MessageField) GetFullName ΒΆ added in v0.30.3
func (m *MessageField) GetFullName() string
func (*MessageField) GetName ΒΆ added in v0.30.1
func (m *MessageField) GetName() string
func (*MessageField) GetOptions ΒΆ added in v0.30.1
func (m *MessageField) GetOptions() []*Option
type Method ΒΆ
type Method struct { File *File Service *Service Name string Comment *Comment Input Type Output Type Options []*Option // contains filtered or unexported fields }
Method ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ ΠΌΠ΅ΡΠΎΠ΄Π°
func (*Method) GetComment ΒΆ added in v0.30.1
func (*Method) GetFullName ΒΆ added in v0.30.3
func (*Method) GetMethodType ΒΆ added in v0.30.4
func (m *Method) GetMethodType() MethodType
GetMethodType Π²ΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΡΠΈΠΏ ΠΌΠ΅ΡΠΎΠ΄Π°.
func (*Method) GetOptions ΒΆ added in v0.30.1
func (*Method) InputMessage ΒΆ
InputMessage Π²ΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΡΡΡΡΠΊΡΡΡΡ Π·Π°ΠΏΡΠΎΡΠ° (ΠΌΠΈΠ½ΡΡ ΠΎΠ±ΠΎΡΠ°ΡΠΈΠ²Π°ΡΡΠΈΠΉ Stream, Π΅ΡΠ»ΠΈ Π½ΡΠΆΠ½ΠΎ)
func (*Method) OutputMessage ΒΆ
OutputMessage Π°Π½Π°Π»ΠΎΠ³ΠΈΡΠ½ΠΎ InputMessage, Π²ΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΡΡΡΡΠΊΡΡΡΡ ΠΎΡΠ²Π΅ΡΠ°, ΠΏΡΠΈ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎΡΡΠΈ ΡΠ½ΠΈΠΌΠ°Ρ stream
type MethodType ΒΆ added in v0.30.4
type MethodType byte
MethodType ΡΠΈΠΏ ΠΌΠ΅ΡΠΎΠ΄Π°: ΡΠ½Π°ΡΠ½ΡΠΉ, Π²Ρ ΠΎΠ΄ΡΡΠΈΠΉ/ΠΈΡΡ ΠΎΠ΄ΡΡΠΈΠΉ/Π΄Π²ΡΠ½Π°ΠΏΡΠ°Π²Π»Π΅Π½Π½ΡΠΉ ΠΏΠΎΡΠΎΠΊΠΎΠ²ΡΠΉ.
const ( Unary MethodType InputStream OutputStream BidirectionalStream )
Π’ΠΈΠΏΡ ΠΌΠ΅ΡΠΎΠ΄ΠΎΠ².
type Node ΒΆ
type Node interface { Unique // contains filtered or unexported methods }
Node ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π±Π°Π·ΠΎΠ²ΠΎΠΉ Π½ΠΎΠ΄Ρ
type OneOf ΒΆ
type OneOf struct { ParentMsg *Message Name string Branches []*OneOfBranch // contains filtered or unexported fields }
OneOf ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ oneof ΠΏΠΎΠ»Ρ message-Π°
func (*OneOf) GetFullName ΒΆ added in v0.30.3
func (*OneOf) GetParentMsg ΒΆ
type OneOfBranch ΒΆ
type OneOfBranch struct { Name string Comment *Comment Type Type ParentOO *OneOf Sequence int Options []*Option // contains filtered or unexported fields }
OneOfBranch ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ Π²Π΅ΡΠ²ΠΈ
func (*OneOfBranch) GetComment ΒΆ added in v0.30.1
func (o *OneOfBranch) GetComment() *Comment
func (*OneOfBranch) GetFullName ΒΆ added in v0.30.3
func (o *OneOfBranch) GetFullName() string
func (*OneOfBranch) GetName ΒΆ
func (o *OneOfBranch) GetName() string
func (*OneOfBranch) GetOptions ΒΆ added in v0.30.1
func (o *OneOfBranch) GetOptions() []*Option
type Option ΒΆ
type Option struct { Name string Value OptionValue Extension *Extension // contains filtered or unexported fields }
Option ΠΎΠΏΡΠΈΡ
func FieldOptions ΒΆ
FieldOptions Π²ΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΠΎΠΏΡΠΈΠΈ ΠΏΠΎΠ»Ρ
func (*Option) GetFullName ΒΆ added in v0.30.3
type OptionValue ΒΆ
type OptionValue interface { Unique // contains filtered or unexported methods }
OptionValue Π·Π½Π°ΡΠ΅Π½ΠΈΠ΅ ΠΎΠΏΡΠΈΠΈ
type Optional ΒΆ
type Optional struct { Type Type // contains filtered or unexported fields }
Optional ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ ΠΎΠΏΡΠΈΠΎΠ½Π°Π»ΡΠ½ΡΡ ΠΏΠΎΠ»Π΅ΠΉ
type OptionsBearer ΒΆ added in v0.30.1
type OptionsBearer interface {
GetOptions() []*Option
}
OptionsBearer ΡΠΈΠΏΡ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΌΠΎΠ³ΡΡ ΡΠΎΠ΄Π΅ΡΠΆΠ°ΡΡ proto-ΠΎΠΏΡΠΈΠΈ.
type Package ΒΆ
type Package struct {
// contains filtered or unexported fields
}
Package ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΠΏΠ°ΠΊΠ΅ΡΠ° ΠΏΡΠΎΡΠΎ-ΡΠ°ΠΉΠ»ΠΎΠ². ΠΠ°Π½Π½Π°Ρ ΡΡΡΡΠΊΡΡΡΠ° Π²Π²Π΅Π΄Π΅Π½Π° ΡΠΊΠΎΡΠ΅Π΅ Π΄Π»Ρ ΡΠ΄ΠΎΠ±ΡΡΠ²Π°, Ρ.ΠΊ. ΠΏΠΎΠ½ΡΡΠΈΡ ΠΏΠ°ΠΊΠ΅Ρ Π² ΡΠΌΡΡΠ»Π΅ Π³ΡΡΠΏΠΏΠ° ΡΠ°ΠΉΠ»ΠΎΠ² Ρ ΠΎΠ΄ΠΈΠ½Π°ΠΊΠΎΠ²ΡΠΌ ΠΈΠΌΠ΅Π½Π΅ΠΌ package Π² protobuf Π½Π΅Ρ β ΡΠ°ΠΉΠ»Ρ Π½Π΅ ΠΏΠΎΠΏΠ°Π΄Π°ΡΡ Π½Π° ΡΡΠ°Π½ΡΠ»ΡΡΠΈΡ Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈ, Π° Π΄ΠΎΠ±Π°Π²Π»ΡΡΡΡΡ ΡΡΠ΄Π° Π²ΡΡΡΠ½ΡΡ, ΠΏΡΠΈ ΡΡΠ°Π½ΡΠ»ΡΡΠΈΠΈ ΠΎΠ½ΠΈ ΠΌΠΎΠ³ΡΡ ΠΏΠΎΠΏΠ°ΡΡΡ Π² ΡΠ°Π·Π»ΠΈΡΠ½ΡΠ΅ ΡΠ΅Π»Π΅Π²ΡΠ΅ ΠΊΠ°ΡΠ°Π»ΠΎΠ³ΠΈ ΠΈ Ρ.Π΄.
func NewPackage ΒΆ
NewPackage ΠΊΠΎΠ½ΡΡΡΡΠΊΡΠΎΡ ΠΏΠ°ΠΊΠ΅ΡΠ° ΠΏΡΠΎΡΠΎ-ΡΠ°ΠΉΠ»ΠΎΠ². ΠΡΠ»ΠΈ ΡΠΏΠΈΡΠΎΠΊ files ΠΏΡΡΡ Π²ΠΎΠ·Π²ΡΠ°ΡΠ°Π΅ΡΡΡ ΠΎΡΠΈΠ±ΠΊΠ° ErrorPackageMissingFiles
func (*Package) Enum ΒΆ
Enum ΠΏΠΎΠΈΡΠΊ ΠΏΠ΅ΡΠ΅ΡΠΈΡΠ»Π΅Π½ΠΈΡ ΠΏΠΎ ΠΈΠΌΠ΅Π½ΠΈ ΠΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΠΎΡΠΈΠ±ΠΊΡ ast.ErrorTypeNotFound Π΅ΡΠ»ΠΈ ΡΠ°ΠΊΠΎΠΉ ΡΠΈΠΏ Ρ ΡΠ°ΠΊΠΈΠΌ ΠΈΠΌΠ΅Π½Π΅ΠΌ Π½Π΅ Π½Π°ΠΉΠ΄Π΅Π½.
func (*Package) File ΒΆ
File ΠΎΡΠ΄Π°ΡΡ ΡΠ°ΠΉΠ» Ρ Π΄Π°Π½Π½ΡΠΌ ΠΈΠΌΠ΅Π½Π΅ΠΌ. Π€ΡΠ½ΠΊΡΠΈΡ path.Split Π²ΡΠ·Π²Π°Π½Π½Π°Ρ Π½Π° ΠΈΠΌΠ΅Π½ΠΈ ΡΠ°ΠΉΠ»Π° Π΄ΠΎΠ»ΠΆΠ½Π° Π²ΠΎΠ·Π²ΡΠ°ΡΠ°ΡΡ ΡΠΎΠ»ΡΠΊΠΎ ΠΏΡΡΡΠΎΠ΅ Π·Π½Π°ΡΠ΅Π½ΠΈΠ΅ dir.
ΠΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠ΅ Π½Π°Π·Π²Π°Π½ΠΈΡ ΡΠ°ΠΉΠ»ΠΎΠ² ΠΏΡΠΈ Π²ΡΠ·ΠΎΠ²Π΅: error_codes.proto, marker.proto, atlas ΠΠ΅ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠ΅ Π½Π°Π·Π²Π°Π½ΠΈΡ ΡΠ°ΠΉΠ»ΠΎΠ²: atlas/atlas.proto, /atlas.proto
func (*Package) Message ΒΆ
Message ΠΏΠΎΠΈΡΠΊ ΡΡΡΡΠΊΡΡΡΡ ΠΏΠΎ ΠΈΠΌΠ΅Π½ΠΈ. ΠΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΠΎΡΠΈΠ±ΠΊΡ ast.ErrorTypeNotFound Π΅ΡΠ»ΠΈ ΡΠ°ΠΊΠΎΠΉ ΡΠΈΠΏ Ρ ΡΠ°ΠΊΠΈΠΌ ΠΈΠΌΠ΅Π½Π΅ΠΌ Π½Π΅ Π½Π°ΠΉΠ΄Π΅Π½.
func (*Package) ScanTypes ΒΆ
ScanTypes ΠΏΡΠΎΠ±Π΅ΠΆΠΊΠ° ΠΏΠΎ Π²ΡΠ΅ΠΌ ΡΠΈΠΏΠ°ΠΌ ΠΏΠ°ΠΊΠ΅ΡΠ°, Π²ΠΊΠ»ΡΡΠ°Ρ ΠΈ Π²Π»ΠΎΠΆΠ΅Π½Π½ΡΠ΅
func (*Package) Service ΒΆ
Service ΠΏΠΎΠΈΡΠΊ ΡΠ΅ΡΠ²ΠΈΡΠ° Ρ Π΄Π°Π½Π½ΡΠΌ ΠΈΠΌΠ΅Π½Π΅ΠΌ Π² ΠΏΡΠΎΡΡΡΠ°Π½ΡΡΠ²Π΅ ΠΈΠΌΡΠ½ ΠΏΠ°ΠΊΠ΅ΡΠ°
func (*Package) Services ΒΆ
Services ΠΏΠΎΠ»ΡΡΠΈΡΡ Π²ΡΠ΅ ΡΠ΅ΡΠ²ΠΈΡΡ ΡΠ΅ΠΊΡΡΠ΅Π³ΠΎ ΠΏΠ°ΠΊΠ΅ΡΠ°
type Printer ΒΆ
type Printer struct {
// contains filtered or unexported fields
}
Printer ΠΏΠ΅ΡΠ°ΡΡ ΡΠ°ΠΉΠ»ΠΎΠ²
func NewPrinter ΒΆ
func NewPrinter(fm FileManager) *Printer
NewPrinter ΠΊΠΎΠ½ΡΡΡΡΠΊΡΠΎΡ ΠΏΡΠΈΠ½ΡΠ΅ΡΠ° ΡΠ°ΠΉΠ»ΠΎΠ²
type Repeated ΒΆ
type Repeated struct { Type Type // contains filtered or unexported fields }
Repeated ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ ΠΏΠΎΠ»Π΅ΠΉ Ρ repeeated
type ScalarNode ΒΆ
type ScalarNode interface { Type // contains filtered or unexported methods }
ScalarNode ΡΠΊΠ°Π»ΡΡΠ½ΡΠ΅ ΡΠΈΠΏΡ
type Service ΒΆ
type Service struct { File *File Name string Comment *Comment Methods []*Method Options []*Option // contains filtered or unexported fields }
Service ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ ΡΠ΅ΡΠ²ΠΈΡΠΎΠ²
func (*Service) GetComment ΒΆ added in v0.30.1
func (*Service) GetFullName ΒΆ added in v0.30.3
func (*Service) GetOptions ΒΆ added in v0.30.1
type Sfixed32 ΒΆ
type Sfixed32 struct {
// contains filtered or unexported fields
}
Sfixed32 ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ ΡΠΈΠΏΠ° sfixed32
func (*Sfixed32) GetFullName ΒΆ added in v0.30.3
type Sfixed64 ΒΆ
type Sfixed64 struct {
// contains filtered or unexported fields
}
Sfixed64 ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ ΡΠΈΠΏΠ° sfixed64
func (*Sfixed64) GetFullName ΒΆ added in v0.30.3
type Sint32 ΒΆ
type Sint32 struct {
// contains filtered or unexported fields
}
Sint32 ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ ΡΠΈΠΏΠ° sint32
func (*Sint32) GetFullName ΒΆ added in v0.30.3
type Sint64 ΒΆ
type Sint64 struct {
// contains filtered or unexported fields
}
Sint64 ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΈΠΏΠ° sint64
func (*Sint64) GetFullName ΒΆ added in v0.30.3
type Stream ΒΆ
type Stream struct { Type Type // contains filtered or unexported fields }
Stream ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ stream-Π°ΡΠ³ΡΠΌΠ΅Π½ΡΠΎΠ² ΠΈ Π²ΠΎΠ·Π²ΡΠ°ΡΠ°Π΅ΠΌΡΡ Π·Π½Π°ΡΠ΅Π½ΠΈΠΉ ΠΌΠ΅ΡΠΎΠ΄Π°
type String ΒΆ
type String struct {
// contains filtered or unexported fields
}
String ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ ΡΡΡΠΎΠ²ΠΎΠ³ΠΎ ΡΠΈΠΏΠ°
func (*String) GetFullName ΒΆ added in v0.30.3
type StringOption ΒΆ
type StringOption struct { Value string // contains filtered or unexported fields }
StringOption branch of OptionValue
func (*StringOption) GetValue ΒΆ added in v0.30.1
func (o *StringOption) GetValue() interface{}
func (*StringOption) String ΒΆ
func (o *StringOption) String() string
type Type ΒΆ
type Type interface { Node // contains filtered or unexported methods }
Type ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΠΈΠΏΠ°
type Uint32 ΒΆ
type Uint32 struct {
// contains filtered or unexported fields
}
Uint32 ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ ΡΠΈΠΏΠ° uint32
func (*Uint32) GetFullName ΒΆ added in v0.30.3
type Uint64 ΒΆ
type Uint64 struct {
// contains filtered or unexported fields
}
Uint64 ΠΏΡΠ΅Π΄ΡΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ ΡΠΈΠΏΠ° uint64
func (*Uint64) GetFullName ΒΆ added in v0.30.3
type UintOption ΒΆ
type UintOption struct { Value uint64 // contains filtered or unexported fields }
UintOption branch of OptionValue
func (*UintOption) GetValue ΒΆ added in v0.30.1
func (o *UintOption) GetValue() interface{}
func (*UintOption) String ΒΆ
func (o *UintOption) String() string
type Unique ΒΆ
type Unique interface {
// contains filtered or unexported methods
}
Unique ΠΈΠ½ΡΠ΅ΡΡΠ΅ΠΉΡ Π΄Π»Ρ ΡΠ½ΠΈΠΊΠ°Π»ΠΈΠ·Π°ΡΠΈΠΈ ΠΈΠ½ΡΡΠ°Π½ΡΠΎΠ² Π² AST ΠΏΡΠΈΠ²ΡΠ·ΡΠ²Π°ΡΡΠΈΠΉ ΠΊ Π΄Π°Π½Π½ΠΎΠΌΡ ΠΎΠ±ΡΠ΅ΠΊΡΡ Π½Π΅ΠΊΠΎΠ΅ ΡΠ½ΠΈΠΊΠ°Π»ΡΠ½ΠΎΠ΅ Π΄Π»Ρ ΠΊΠΎΠ½ΡΠ΅ΠΊΡΡΠ½ΠΎΠ³ΠΎ ΠΌΠ½ΠΎΠΆΠ΅ΡΡΠ²Π° Π·Π½Π°ΡΠ΅Π½ΠΈΠ΅
type UniqueContext ΒΆ
type UniqueContext map[string]struct{}
UniqueContext ΠΊΠΎΠ½ΡΠ΅ΠΊΡΡ Π΄Π»Ρ ΡΠΎΠ·Π΄Π°Π½ΠΈΡ ΡΠ½ΠΈΠΊΠ°Π»ΡΠ½ΡΡ Π·Π½Π°ΡΠ΅Π½ΠΈΠΉ
Source Files ΒΆ
- any.go
- ast.go
- bool.go
- bytes.go
- comment.go
- enum.go
- equal.go
- errors.go
- extension.go
- field.go
- file.go
- fixed32.go
- fixed64.go
- float32.go
- float64.go
- import.go
- int32.go
- int64.go
- map.go
- message.go
- method.go
- oneof.go
- option.go
- optional.go
- package.go
- printer.go
- repeated.go
- service.go
- sfixed32.go
- sfixed64.go
- sint32.go
- sint64.go
- stream.go
- string.go
- uint32.go
- uint64.go
- unique.go