types

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL