Documentation ¶
Index ¶
- func FromProtoApi(api *basev1.API) string
- func FromProtoEndpoint(e *basev1.Endpoint) (*configurations.Endpoint, error)
- func Light(e *basev1.Endpoint) *basev1.Endpoint
- func LightApi(api *basev1.API) *basev1.API
- func NewGrpcApi(endpoint *configurations.Endpoint, filename string) (*basev1.Endpoint, error)
- func NewRestApi(endpoint *configurations.Endpoint) (*basev1.Endpoint, error)
- func NewRestApiFromOpenAPI(ctx context.Context, endpoint *configurations.Endpoint, filename string) (*basev1.Endpoint, error)
- func StandardPort(api *basev1.API) (int, error)
- func WhichApi(api *basev1.API) (string, error)
- func WhichApiFromEndpoint(endpoint *basev1.Endpoint) (string, error)
- func WithApi(endpoint *configurations.Endpoint, source ApiSource) (*basev1.Endpoint, error)
- type ApiSource
- type Forwarding
- type GrpcApi
- type NilApiError
- type NilEndpointError
- type RestApi
- type ServiceForwarding
- type Tcp
- type UnknownApiError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromProtoApi ¶
func FromProtoEndpoint ¶
func FromProtoEndpoint(e *basev1.Endpoint) (*configurations.Endpoint, error)
func NewGrpcApi ¶
func NewRestApi ¶
func NewRestApi(endpoint *configurations.Endpoint) (*basev1.Endpoint, error)
func NewRestApiFromOpenAPI ¶
Types ¶
type Forwarding ¶
type Forwarding interface {
Forward(r *configurations.RestRoute) (*configurations.RestRoute, error)
}
type NilApiError ¶
type NilApiError struct {
// contains filtered or unexported fields
}
func (*NilApiError) Error ¶
func (err *NilApiError) Error() string
type NilEndpointError ¶
type NilEndpointError struct{}
func (NilEndpointError) Error ¶
func (n NilEndpointError) Error() string
type ServiceForwarding ¶
type ServiceForwarding struct {
// contains filtered or unexported fields
}
func (ServiceForwarding) Forward ¶
func (s ServiceForwarding) Forward(r *configurations.RestRoute) (*configurations.RestRoute, error)
type UnknownApiError ¶
type UnknownApiError struct {
// contains filtered or unexported fields
}
func (*UnknownApiError) Error ¶
func (err *UnknownApiError) Error() string
Click to show internal directories.
Click to hide internal directories.