httpconnector

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: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HttpConnectorErr_name = map[int32]string{
		0: "NoError",
		1: "DispatchError",
		2: "UnmarshalError",
		3: "MarshalError",
		4: "InternalError",
		5: "NoReceiver",
		6: "ReceiverFailed",
	}
	HttpConnectorErr_value = map[string]int32{
		"NoError":        0,
		"DispatchError":  1,
		"UnmarshalError": 2,
		"MarshalError":   3,
		"InternalError":  4,
		"NoReceiver":     5,
		"ReceiverFailed": 6,
	}
)

Enum value maps for HttpConnectorErr.

View Source
var File_httpconnector_v1_httpconnector_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CheckRequest

type CheckRequest struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckRequest) Descriptor deprecated

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

Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.

func (*CheckRequest) GetSuccess

func (x *CheckRequest) GetSuccess() bool

func (*CheckRequest) ProtoMessage

func (*CheckRequest) ProtoMessage()

func (*CheckRequest) ProtoReflect

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

func (*CheckRequest) Reset

func (x *CheckRequest) Reset()

func (*CheckRequest) String

func (x *CheckRequest) String() string

type CheckResponse

type CheckResponse struct {

	// Whether receive a http request from outside
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckResponse) Descriptor deprecated

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

Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.

func (*CheckResponse) GetSuccess

func (x *CheckResponse) GetSuccess() bool

func (*CheckResponse) ProtoMessage

func (*CheckResponse) ProtoMessage()

func (*CheckResponse) ProtoReflect

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

func (*CheckResponse) Reset

func (x *CheckResponse) Reset()

func (*CheckResponse) String

func (x *CheckResponse) String() string

type HandleRequest

type HandleRequest struct {
	HttpMethod string     `protobuf:"bytes,1,opt,name=http_method,json=httpMethod,proto3" json:"http_method,omitempty"`
	Url        string     `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	ServiceId  *v1.IdRaw  `protobuf:"bytes,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	MethodId   *v1.IdRaw  `protobuf:"bytes,4,opt,name=method_id,json=methodId,proto3" json:"method_id,omitempty"`
	ReqAny     *anypb.Any `protobuf:"bytes,5,opt,name=req_any,json=reqAny,proto3" json:"req_any,omitempty"`
	// contains filtered or unexported fields
}

func (*HandleRequest) Descriptor deprecated

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

Deprecated: Use HandleRequest.ProtoReflect.Descriptor instead.

func (*HandleRequest) GetHttpMethod

func (x *HandleRequest) GetHttpMethod() string

func (*HandleRequest) GetMethodId

func (x *HandleRequest) GetMethodId() *v1.IdRaw

func (*HandleRequest) GetReqAny

func (x *HandleRequest) GetReqAny() *anypb.Any

func (*HandleRequest) GetServiceId

func (x *HandleRequest) GetServiceId() *v1.IdRaw

func (*HandleRequest) GetUrl

func (x *HandleRequest) GetUrl() string

func (*HandleRequest) ProtoMessage

func (*HandleRequest) ProtoMessage()

func (*HandleRequest) ProtoReflect

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

func (*HandleRequest) Reset

func (x *HandleRequest) Reset()

func (*HandleRequest) String

func (x *HandleRequest) String() string

type HandleResponse

type HandleResponse struct {
	HttpStatus   int32             `protobuf:"varint,1,opt,name=http_status,json=httpStatus,proto3" json:"http_status,omitempty"`
	HttpResponse []byte            `protobuf:"bytes,2,opt,name=http_response,json=httpResponse,proto3" json:"http_response,omitempty"`
	Header       map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*HandleResponse) Descriptor deprecated

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

Deprecated: Use HandleResponse.ProtoReflect.Descriptor instead.

func (*HandleResponse) GetHeader

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

func (*HandleResponse) GetHttpResponse

func (x *HandleResponse) GetHttpResponse() []byte

func (*HandleResponse) GetHttpStatus

func (x *HandleResponse) GetHttpStatus() int32

func (*HandleResponse) ProtoMessage

func (*HandleResponse) ProtoMessage()

func (*HandleResponse) ProtoReflect

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

func (*HandleResponse) Reset

func (x *HandleResponse) Reset()

func (*HandleResponse) String

func (x *HandleResponse) String() string

type HttpConnectorErr

type HttpConnectorErr int32
const (
	HttpConnectorErr_NoError        HttpConnectorErr = 0 // mandatory
	HttpConnectorErr_DispatchError  HttpConnectorErr = 1 //mandatory
	HttpConnectorErr_UnmarshalError HttpConnectorErr = 2 // mandatory
	HttpConnectorErr_MarshalError   HttpConnectorErr = 3 // mandatory
	HttpConnectorErr_InternalError  HttpConnectorErr = 4 // There are internal issues with the httpconnector service
	HttpConnectorErr_NoReceiver     HttpConnectorErr = 5 // We could not find any service that implements HttpConnector
	HttpConnectorErr_ReceiverFailed HttpConnectorErr = 6 // We attempted to call the receiver, but got a failure back
)

func (HttpConnectorErr) Descriptor

func (HttpConnectorErr) Enum

func (HttpConnectorErr) EnumDescriptor deprecated

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

Deprecated: Use HttpConnectorErr.Descriptor instead.

func (HttpConnectorErr) Number

func (HttpConnectorErr) String

func (x HttpConnectorErr) String() string

func (HttpConnectorErr) Type

Jump to

Keyboard shortcuts

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