Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProtoMethodType ¶
type ProtoMethodType int
const ( UnaryType ProtoMethodType = iota ClientSideStreamingType ServerSideStreamingType BidirectionalStreamingType )
func MethodType ¶
func MethodType(isClientSideStream, isServerSideStream bool) ProtoMethodType
func (ProtoMethodType) String ¶
func (t ProtoMethodType) String() string
type SourceFileType ¶
type SourceFileType string
const ( // UnknownFileType represents unknown contracts type. UnknownFileType = "unknown" // ProtoType represents contracts described in .proto files. ProtoType SourceFileType = "proto" // OpenAPIType represents contracts described in .yaml files. OpenAPIType SourceFileType = "yaml" )
func SourceFileTypeFromPath ¶
func SourceFileTypeFromPath(path string) SourceFileType
func (SourceFileType) Is ¶
func (s SourceFileType) Is(that string) bool
type SourceLoadType ¶
type SourceLoadType int
SourceLoadType represents how exactly contracts must be loaded.
const ( // UnknownLoadType represents default value of SourceLoadType. UnknownLoadType SourceLoadType = iota // SourceDirType represents that provided input is directory with the contracts. SourceDirType SourceLoadType = iota // SourceSingleType represents that provided input is single contract file. SourceSingleType )
Click to show internal directories.
Click to hide internal directories.