Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtoFromAny ¶
func ProtoFromAny(contract Contract) (*desc.FileDescriptor, error)
Types ¶
type Contract ¶
type Contract struct { HeaderPath string ImportsPaths []string ContractHasMethods bool // contains filtered or unexported fields }
func FromOpenAPIDescriptor ¶
func FromProtoDescriptor ¶
func FromProtoDescriptor(descriptor *desc.FileDescriptor, protoPath string) (Contract, error)
FromProtoDescriptor converts proto descriptor into Contract model.
func (Contract) Descriptor ¶
func (Contract) HasMethods ¶
func (Contract) IsOpenAPIContract ¶
func (Contract) IsProtoContract ¶
type SetOfContracts ¶
type SetOfContracts []Contract
SetOfContracts is just alias for several contracts.
func (SetOfContracts) FileType ¶
func (set SetOfContracts) FileType() types.SourceFileType
func (SetOfContracts) HasContractsWithMethods ¶
func (set SetOfContracts) HasContractsWithMethods() bool
func (SetOfContracts) WithMethodsOnly ¶
func (set SetOfContracts) WithMethodsOnly() SetOfContracts
WithMethodsOnly returns only contracts with methods.
Click to show internal directories.
Click to hide internal directories.