http

package
v0.0.0-...-71fdcac Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: BSD-3-Clause Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HttpErr_name = map[int32]string{
		0: "NoError",
		1: "DispatchError",
		2: "UnmarshalError",
		3: "MarshalError",
	}
	HttpErr_value = map[string]int32{
		"NoError":        0,
		"DispatchError":  1,
		"UnmarshalError": 2,
		"MarshalError":   3,
	}
)

Enum value maps for HttpErr.

View Source
var File_http_v1_http_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConnectRequest

type ConnectRequest struct {
	Request *HttpRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectRequest) Descriptor deprecated

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

Deprecated: Use ConnectRequest.ProtoReflect.Descriptor instead.

func (*ConnectRequest) GetRequest

func (x *ConnectRequest) GetRequest() *HttpRequest

func (*ConnectRequest) ProtoMessage

func (*ConnectRequest) ProtoMessage()

func (*ConnectRequest) ProtoReflect

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

func (*ConnectRequest) Reset

func (x *ConnectRequest) Reset()

func (*ConnectRequest) String

func (x *ConnectRequest) String() string

type ConnectResponse

type ConnectResponse struct {
	Response *HttpResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectResponse) Descriptor deprecated

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

Deprecated: Use ConnectResponse.ProtoReflect.Descriptor instead.

func (*ConnectResponse) GetResponse

func (x *ConnectResponse) GetResponse() *HttpResponse

func (*ConnectResponse) ProtoMessage

func (*ConnectResponse) ProtoMessage()

func (*ConnectResponse) ProtoReflect

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

func (*ConnectResponse) Reset

func (x *ConnectResponse) Reset()

func (*ConnectResponse) String

func (x *ConnectResponse) String() string

type DeleteRequest

type DeleteRequest struct {
	Request *HttpRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetRequest

func (x *DeleteRequest) GetRequest() *HttpRequest

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteResponse

type DeleteResponse struct {
	Response *HttpResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) GetResponse

func (x *DeleteResponse) GetResponse() *HttpResponse

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type GetRequest

type GetRequest struct {
	Request *HttpRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetRequest

func (x *GetRequest) GetRequest() *HttpRequest

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type GetResponse

type GetResponse struct {
	Response *HttpResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetResponse

func (x *GetResponse) GetResponse() *HttpResponse

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

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

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

type HeadRequest

type HeadRequest struct {
	Request *HttpRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*HeadRequest) Descriptor deprecated

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

Deprecated: Use HeadRequest.ProtoReflect.Descriptor instead.

func (*HeadRequest) GetRequest

func (x *HeadRequest) GetRequest() *HttpRequest

func (*HeadRequest) ProtoMessage

func (*HeadRequest) ProtoMessage()

func (*HeadRequest) ProtoReflect

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

func (*HeadRequest) Reset

func (x *HeadRequest) Reset()

func (*HeadRequest) String

func (x *HeadRequest) String() string

type HeadResponse

type HeadResponse struct {
	Response *HttpResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*HeadResponse) Descriptor deprecated

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

Deprecated: Use HeadResponse.ProtoReflect.Descriptor instead.

func (*HeadResponse) GetResponse

func (x *HeadResponse) GetResponse() *HttpResponse

func (*HeadResponse) ProtoMessage

func (*HeadResponse) ProtoMessage()

func (*HeadResponse) ProtoReflect

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

func (*HeadResponse) Reset

func (x *HeadResponse) Reset()

func (*HeadResponse) String

func (x *HeadResponse) String() string

type HttpErr

type HttpErr int32
const (
	HttpErr_NoError        HttpErr = 0 // mandatory
	HttpErr_DispatchError  HttpErr = 1 //mandatory
	HttpErr_UnmarshalError HttpErr = 2 // mandatory
	HttpErr_MarshalError   HttpErr = 3 // mandatory
)

func (HttpErr) Descriptor

func (HttpErr) Descriptor() protoreflect.EnumDescriptor

func (HttpErr) Enum

func (x HttpErr) Enum() *HttpErr

func (HttpErr) EnumDescriptor deprecated

func (HttpErr) EnumDescriptor() ([]byte, []int)

Deprecated: Use HttpErr.Descriptor instead.

func (HttpErr) Number

func (x HttpErr) Number() protoreflect.EnumNumber

func (HttpErr) String

func (x HttpErr) String() string

func (HttpErr) Type

func (HttpErr) Type() protoreflect.EnumType

type HttpRequest

type HttpRequest struct {
	Url     string            `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Header  map[string]string `` /* 153-byte string literal not displayed */
	Body    []byte            `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	Trailer map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

Common message for fields that are used in method requests

func (*HttpRequest) Descriptor deprecated

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

Deprecated: Use HttpRequest.ProtoReflect.Descriptor instead.

func (*HttpRequest) GetBody

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

func (*HttpRequest) GetHeader

func (x *HttpRequest) GetHeader() map[string]string

func (*HttpRequest) GetTrailer

func (x *HttpRequest) GetTrailer() map[string]string

func (*HttpRequest) GetUrl

func (x *HttpRequest) GetUrl() string

func (*HttpRequest) ProtoMessage

func (*HttpRequest) ProtoMessage()

func (*HttpRequest) ProtoReflect

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

func (*HttpRequest) Reset

func (x *HttpRequest) Reset()

func (*HttpRequest) String

func (x *HttpRequest) String() string

type HttpResponse

type HttpResponse struct {
	StatusCode    int32             `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // e.g. 200
	Header        map[string]string ``                                                                                             /* 153-byte string literal not displayed */
	Body          []byte            `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	ContentLength int32             `protobuf:"varint,4,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` // Note: This could also be inferred from 'body' length.
	Trailer       map[string]string ``                                                                                                      /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

Common message for fields that are used in method responses

func (*HttpResponse) Descriptor deprecated

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

Deprecated: Use HttpResponse.ProtoReflect.Descriptor instead.

func (*HttpResponse) GetBody

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

func (*HttpResponse) GetContentLength

func (x *HttpResponse) GetContentLength() int32

func (*HttpResponse) GetHeader

func (x *HttpResponse) GetHeader() map[string]string

func (*HttpResponse) GetStatusCode

func (x *HttpResponse) GetStatusCode() int32

func (*HttpResponse) GetTrailer

func (x *HttpResponse) GetTrailer() map[string]string

func (*HttpResponse) ProtoMessage

func (*HttpResponse) ProtoMessage()

func (*HttpResponse) ProtoReflect

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

func (*HttpResponse) Reset

func (x *HttpResponse) Reset()

func (*HttpResponse) String

func (x *HttpResponse) String() string

type OptionsRequest

type OptionsRequest struct {
	Request *HttpRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*OptionsRequest) Descriptor deprecated

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

Deprecated: Use OptionsRequest.ProtoReflect.Descriptor instead.

func (*OptionsRequest) GetRequest

func (x *OptionsRequest) GetRequest() *HttpRequest

func (*OptionsRequest) ProtoMessage

func (*OptionsRequest) ProtoMessage()

func (*OptionsRequest) ProtoReflect

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

func (*OptionsRequest) Reset

func (x *OptionsRequest) Reset()

func (*OptionsRequest) String

func (x *OptionsRequest) String() string

type OptionsResponse

type OptionsResponse struct {
	Response *HttpResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*OptionsResponse) Descriptor deprecated

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

Deprecated: Use OptionsResponse.ProtoReflect.Descriptor instead.

func (*OptionsResponse) GetResponse

func (x *OptionsResponse) GetResponse() *HttpResponse

func (*OptionsResponse) ProtoMessage

func (*OptionsResponse) ProtoMessage()

func (*OptionsResponse) ProtoReflect

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

func (*OptionsResponse) Reset

func (x *OptionsResponse) Reset()

func (*OptionsResponse) String

func (x *OptionsResponse) String() string

type PatchRequest

type PatchRequest struct {
	Request *HttpRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*PatchRequest) Descriptor deprecated

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

Deprecated: Use PatchRequest.ProtoReflect.Descriptor instead.

func (*PatchRequest) GetRequest

func (x *PatchRequest) GetRequest() *HttpRequest

func (*PatchRequest) ProtoMessage

func (*PatchRequest) ProtoMessage()

func (*PatchRequest) ProtoReflect

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

func (*PatchRequest) Reset

func (x *PatchRequest) Reset()

func (*PatchRequest) String

func (x *PatchRequest) String() string

type PatchResponse

type PatchResponse struct {
	Response *HttpResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*PatchResponse) Descriptor deprecated

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

Deprecated: Use PatchResponse.ProtoReflect.Descriptor instead.

func (*PatchResponse) GetResponse

func (x *PatchResponse) GetResponse() *HttpResponse

func (*PatchResponse) ProtoMessage

func (*PatchResponse) ProtoMessage()

func (*PatchResponse) ProtoReflect

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

func (*PatchResponse) Reset

func (x *PatchResponse) Reset()

func (*PatchResponse) String

func (x *PatchResponse) String() string

type PostRequest

type PostRequest struct {
	Request *HttpRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*PostRequest) Descriptor deprecated

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

Deprecated: Use PostRequest.ProtoReflect.Descriptor instead.

func (*PostRequest) GetRequest

func (x *PostRequest) GetRequest() *HttpRequest

func (*PostRequest) ProtoMessage

func (*PostRequest) ProtoMessage()

func (*PostRequest) ProtoReflect

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

func (*PostRequest) Reset

func (x *PostRequest) Reset()

func (*PostRequest) String

func (x *PostRequest) String() string

type PostResponse

type PostResponse struct {
	Response *HttpResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*PostResponse) Descriptor deprecated

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

Deprecated: Use PostResponse.ProtoReflect.Descriptor instead.

func (*PostResponse) GetResponse

func (x *PostResponse) GetResponse() *HttpResponse

func (*PostResponse) ProtoMessage

func (*PostResponse) ProtoMessage()

func (*PostResponse) ProtoReflect

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

func (*PostResponse) Reset

func (x *PostResponse) Reset()

func (*PostResponse) String

func (x *PostResponse) String() string

type PutRequest

type PutRequest struct {
	Request *HttpRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*PutRequest) Descriptor deprecated

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

Deprecated: Use PutRequest.ProtoReflect.Descriptor instead.

func (*PutRequest) GetRequest

func (x *PutRequest) GetRequest() *HttpRequest

func (*PutRequest) ProtoMessage

func (*PutRequest) ProtoMessage()

func (*PutRequest) ProtoReflect

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

func (*PutRequest) Reset

func (x *PutRequest) Reset()

func (*PutRequest) String

func (x *PutRequest) String() string

type PutResponse

type PutResponse struct {
	Response *HttpResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*PutResponse) Descriptor deprecated

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

Deprecated: Use PutResponse.ProtoReflect.Descriptor instead.

func (*PutResponse) GetResponse

func (x *PutResponse) GetResponse() *HttpResponse

func (*PutResponse) ProtoMessage

func (*PutResponse) ProtoMessage()

func (*PutResponse) ProtoReflect

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

func (*PutResponse) Reset

func (x *PutResponse) Reset()

func (*PutResponse) String

func (x *PutResponse) String() string

type TraceRequest

type TraceRequest struct {
	Request *HttpRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*TraceRequest) Descriptor deprecated

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

Deprecated: Use TraceRequest.ProtoReflect.Descriptor instead.

func (*TraceRequest) GetRequest

func (x *TraceRequest) GetRequest() *HttpRequest

func (*TraceRequest) ProtoMessage

func (*TraceRequest) ProtoMessage()

func (*TraceRequest) ProtoReflect

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

func (*TraceRequest) Reset

func (x *TraceRequest) Reset()

func (*TraceRequest) String

func (x *TraceRequest) String() string

type TraceResponse

type TraceResponse struct {
	Response *HttpResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*TraceResponse) Descriptor deprecated

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

Deprecated: Use TraceResponse.ProtoReflect.Descriptor instead.

func (*TraceResponse) GetResponse

func (x *TraceResponse) GetResponse() *HttpResponse

func (*TraceResponse) ProtoMessage

func (*TraceResponse) ProtoMessage()

func (*TraceResponse) ProtoReflect

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

func (*TraceResponse) Reset

func (x *TraceResponse) Reset()

func (*TraceResponse) String

func (x *TraceResponse) String() string

Jump to

Keyboard shortcuts

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