Documentation ¶
Index ¶
- func GetIsClientExtension(m proto.Message) bool
- func GetIsEndpointExtension(m proto.Message) bool
- func GetIsRASServiceExtension(m proto.Message) bool
- func GetIsRequestServiceExtension(m proto.Message) bool
- func IsWellKnownType(fullname string) bool
- type ClientMessageOptions
- type ClientMethodOptions
- type EnumExtension
- type Fields
- type FileImplOptions
- type Generator
- func (gen *Generator) AddImpl(name string, path protogen.GoImportPath)
- func (gen *Generator) EnumNamed(typeName string) *protogen.EnumValue
- func (gen *Generator) Error(err error, msgs ...string)
- func (gen *Generator) Fail(msgs ...string)
- func (gen *Generator) Generate()
- func (gen *Generator) GenerateOnce()
- func (gen *Generator) GetImpl(name string) protogen.GoIdent
- func (gen *Generator) ObjectNamed(typeName string) Object
- type KnownTypes
- type KnownTypesOptions
- type MessageExtension
- type MessageFieldExtension
- type Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIsClientExtension ¶
func GetIsEndpointExtension ¶
func IsWellKnownType ¶
Types ¶
type ClientMessageOptions ¶
type ClientMessageOptions struct {
IsImpl bool
}
func GetClientMessageExtension ¶
func GetClientMessageExtension(m proto.Message) ClientMessageOptions
type ClientMethodOptions ¶
type ClientMethodOptions struct { MethodParams map[string]string IgnoreEmpty bool NoPacketPack bool NewEndpointFunc bool ProxyName string }
func GetClientMethodExtension ¶
func GetClientMethodExtension(m proto.Message) ClientMethodOptions
type EnumExtension ¶
type EnumExtension struct {
MessageOption string
}
func GetEnumExtension ¶
func GetEnumExtension(m proto.Message) *EnumExtension
type FileImplOptions ¶
type FileImplOptions struct {
// contains filtered or unexported fields
}
func GetFileImplExtension ¶
func GetFileImplExtension(m proto.Message) FileImplOptions
type Generator ¶
type Generator struct { KnownTypes KnownTypes // contains filtered or unexported fields }
func NewGenerator ¶
func (*Generator) GenerateOnce ¶
func (gen *Generator) GenerateOnce()
func (*Generator) ObjectNamed ¶
type KnownTypes ¶
type KnownTypes struct { EnumPacketType *protogen.Enum EnumEndpointDataType *protogen.Enum EnumMessageType *protogen.Enum PacketEndpointMessageType *protogen.Message EndpointType *protogen.Message EndpointImplSuffix string EndpointDataMessageType *protogen.Message EndpointVoidMessageType *protogen.Message EndpointFailureMessageType *protogen.Message }
func (KnownTypes) EndpointImpl ¶
func (t KnownTypes) EndpointImpl() protogen.GoIdent
type KnownTypesOptions ¶
type KnownTypesOptions struct { EnumPacketTypeName string EnumEndpointDataTypeName string EnumMessageTypeName string EndpointMessagePacketTypeName string FormatterImplSuffix string ParseImplSuffix string EndpointImplSuffix string EndpointDataMessageTypeName string EndpointVoidMessageTypeName string EndpointFailureMessageTypeName string }
type MessageExtension ¶
type MessageExtension struct { GenerateEmpty bool GeneratePacketHelpers bool GenerateEndpointMessageHelpers bool GenerateMessageHelpers bool PacketType string EndpointDataType string MessageType string GenerateErrorFn bool GenerateEndpointHelpers bool GenerateIoWriteTo bool IsNegotiate bool }
func GetMessageExtension ¶
func GetMessageExtension(m proto.Message) MessageExtension
func (*MessageExtension) GetTypeOption ¶
func (e *MessageExtension) GetTypeOption(gen *Generator) *protogen.EnumValue
type MessageFieldExtension ¶
type MessageFieldExtension struct {
*encoding.EncodingFieldOptions
}
func GetMessageFieldExtensionFor ¶
func GetMessageFieldExtensionFor(m proto.Message) *MessageFieldExtension
type Object ¶
type Object struct { protogen.GoIdent Desc protoreflect.Descriptor TypeIdent protogen.GoIdent }
Object is an interface abstracting the abilities shared by enums, messages, extensions and imported objects.
Click to show internal directories.
Click to hide internal directories.