Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct {
Base
Desc *desc.FileDescriptor
}
Contract represents contract files with scope.
`HeaderPath` stores main contract path. `[]ImportsPaths` stores paths of contracts which was imported in the main contract file.
func FromProtoDescriptor ¶
func FromProtoDescriptor(descriptor *desc.FileDescriptor, protoPath string) (Contract, error)
FromProtoDescriptor converts proto descriptor into Contract model.
func (Contract) HasMethods ¶
func (Contract) IsProtoContract ¶
type MessageType ¶
type Method ¶
type Method struct {
Name string
Package string
InType MessageType
OutType MessageType
MethodType types.ProtoMethodType
}
type SetOfContracts ¶
type SetOfContracts []Contract
SetOfContracts is just alias for several contracts.
func (SetOfContracts) HasContractsWithMethods ¶
func (set SetOfContracts) HasContractsWithMethods() bool
func (SetOfContracts) HasContractsWithProto ¶
func (set SetOfContracts) HasContractsWithProto() 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.