endpoints

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromProtoApi

func FromProtoApi(api *basev1.API) string

func FromProtoEndpoint

func FromProtoEndpoint(e *basev1.Endpoint) (*configurations.Endpoint, error)

func Light

func Light(e *basev1.Endpoint) *basev1.Endpoint

func LightApi

func LightApi(api *basev1.API) *basev1.API

func NewGrpcApi

func NewGrpcApi(endpoint *configurations.Endpoint, filename string) (*basev1.Endpoint, error)

func NewRestApi

func NewRestApi(endpoint *configurations.Endpoint) (*basev1.Endpoint, error)

func NewRestApiFromOpenAPI

func NewRestApiFromOpenAPI(ctx context.Context, endpoint *configurations.Endpoint, filename string) (*basev1.Endpoint, error)

func StandardPort

func StandardPort(api *basev1.API) (int, error)

func WhichApi

func WhichApi(api *basev1.API) (string, error)

func WhichApiFromEndpoint

func WhichApiFromEndpoint(endpoint *basev1.Endpoint) (string, error)

func WithApi

func WithApi(endpoint *configurations.Endpoint, source ApiSource) (*basev1.Endpoint, error)

Types

type ApiSource

type ApiSource interface {
	Proto() (*basev1.API, error)
}

type Forwarding

type Forwarding interface {
	Forward(r *configurations.RestRoute) (*configurations.RestRoute, error)
}

type GrpcApi

type GrpcApi struct {
	// contains filtered or unexported fields
}

func (*GrpcApi) Proto

func (grpc *GrpcApi) Proto() (*basev1.API, 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 RestApi

type RestApi struct {
}

func (*RestApi) Proto

func (http *RestApi) Proto() (*basev1.API, error)

type ServiceForwarding

type ServiceForwarding struct {
	// contains filtered or unexported fields
}

func (ServiceForwarding) Forward

type Tcp

type Tcp struct{}

func NewTcp

func NewTcp() (*Tcp, error)

func (*Tcp) Proto

func (*Tcp) Proto() (*basev1.API, error)

type UnknownApiError

type UnknownApiError struct {
	// contains filtered or unexported fields
}

func (*UnknownApiError) Error

func (err *UnknownApiError) Error() string

Jump to

Keyboard shortcuts

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