pb

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ingress_proto protoreflect.FileDescriptor
View Source
var FoldIngress_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ingress.FoldIngress",
	HandlerType: (*FoldIngressServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetManifest",
			Handler:    _FoldIngress_GetManifest_Handler,
		},
		{
			MethodName: "DoRequest",
			Handler:    _FoldIngress_DoRequest_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ingress.proto",
}

FoldIngress_ServiceDesc is the grpc.ServiceDesc for FoldIngress service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterFoldIngressServer

func RegisterFoldIngressServer(s grpc.ServiceRegistrar, srv FoldIngressServer)

Types

type FoldIngressClient

type FoldIngressClient interface {
	// Retrieve the manifest from the service.
	GetManifest(ctx context.Context, in *ManifestReq, opts ...grpc.CallOption) (*manifest.Manifest, error)
	// Ask the service to process an HTTP request.
	DoRequest(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

FoldIngressClient is the client API for FoldIngress service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type FoldIngressServer

type FoldIngressServer interface {
	// Retrieve the manifest from the service.
	GetManifest(context.Context, *ManifestReq) (*manifest.Manifest, error)
	// Ask the service to process an HTTP request.
	DoRequest(context.Context, *Request) (*Response, error)
	// contains filtered or unexported methods
}

FoldIngressServer is the server API for FoldIngress service. All implementations must embed UnimplementedFoldIngressServer for forward compatibility

type ManifestReq

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

func (*ManifestReq) Descriptor deprecated

func (*ManifestReq) Descriptor() ([]byte, []int)

Deprecated: Use ManifestReq.ProtoReflect.Descriptor instead.

func (*ManifestReq) ProtoMessage

func (*ManifestReq) ProtoMessage()

func (*ManifestReq) ProtoReflect

func (x *ManifestReq) ProtoReflect() protoreflect.Message

func (*ManifestReq) Reset

func (x *ManifestReq) Reset()

func (*ManifestReq) String

func (x *ManifestReq) String() string

type Request

type Request struct {

	// The HTTP Method for the request.
	HttpMethod manifest.HttpMethod `protobuf:"varint,1,opt,name=http_method,json=httpMethod,proto3,enum=manifest.HttpMethod" json:"http_method,omitempty"`
	// A unique identifier for the handler within the service.
	// This could be produced by a combination of the namespace and
	// function name, or some other means, such as a UUID.
	Handler string `protobuf:"bytes,2,opt,name=handler,proto3" json:"handler,omitempty"`
	// The path of the HTTP request.
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// The body of the HTTP request. This will often be a JSON string
	// but could be anything if the appropriate content type is set
	// in the headers.
	Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	// The HTTP headers.
	Headers map[string]*StringArray `` /* 155-byte string literal not displayed */
	// The parsed path params.
	PathParams map[string]string `` /* 179-byte string literal not displayed */
	// The parsed query params.
	QueryParams map[string]*StringArray `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

func (*Request) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetBody

func (x *Request) GetBody() []byte

func (*Request) GetHandler

func (x *Request) GetHandler() string

func (*Request) GetHeaders

func (x *Request) GetHeaders() map[string]*StringArray

func (*Request) GetHttpMethod

func (x *Request) GetHttpMethod() manifest.HttpMethod

func (*Request) GetPath

func (x *Request) GetPath() string

func (*Request) GetPathParams

func (x *Request) GetPathParams() map[string]string

func (*Request) GetQueryParams

func (x *Request) GetQueryParams() map[string]*StringArray

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {

	// The HTTP status code for the response.
	Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	// The body of the HTTP response. As with the Request, it will
	// most often be a JSON string but the headers say what it really is.
	Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// The HTTP headers for the response.
	Headers map[string]*StringArray `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetBody

func (x *Response) GetBody() []byte

func (*Response) GetHeaders

func (x *Response) GetHeaders() map[string]*StringArray

func (*Response) GetStatus

func (x *Response) GetStatus() int32

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type StringArray

type StringArray struct {
	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*StringArray) Descriptor deprecated

func (*StringArray) Descriptor() ([]byte, []int)

Deprecated: Use StringArray.ProtoReflect.Descriptor instead.

func (*StringArray) GetValues

func (x *StringArray) GetValues() []string

func (*StringArray) ProtoMessage

func (*StringArray) ProtoMessage()

func (*StringArray) ProtoReflect

func (x *StringArray) ProtoReflect() protoreflect.Message

func (*StringArray) Reset

func (x *StringArray) Reset()

func (*StringArray) String

func (x *StringArray) String() string

type UnimplementedFoldIngressServer

type UnimplementedFoldIngressServer struct {
}

UnimplementedFoldIngressServer must be embedded to have forward compatible implementations.

func (UnimplementedFoldIngressServer) DoRequest

func (UnimplementedFoldIngressServer) GetManifest

type UnsafeFoldIngressServer

type UnsafeFoldIngressServer interface {
	// contains filtered or unexported methods
}

UnsafeFoldIngressServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FoldIngressServer will result in compilation errors.

Jump to

Keyboard shortcuts

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