http

package
v0.0.0-...-da789b0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_http_http_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HTTP

type HTTP struct {

	// Types that are assignable to Type:
	//
	//	*HTTP_Route
	//	*HTTP_Template
	//	*HTTP_TemplateFs
	//	*HTTP_Router
	//	*HTTP_Response
	Type isHTTP_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*HTTP) Descriptor deprecated

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

Deprecated: Use HTTP.ProtoReflect.Descriptor instead.

func (*HTTP) GetResponse

func (x *HTTP) GetResponse() *Response

func (*HTTP) GetRoute

func (x *HTTP) GetRoute() *Route

func (*HTTP) GetRouter

func (x *HTTP) GetRouter() *Router

func (*HTTP) GetTemplate

func (x *HTTP) GetTemplate() *Template

func (*HTTP) GetTemplateFs

func (x *HTTP) GetTemplateFs() *TemplateFS

func (*HTTP) GetType

func (m *HTTP) GetType() isHTTP_Type

func (*HTTP) ProtoMessage

func (*HTTP) ProtoMessage()

func (*HTTP) ProtoReflect

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

func (*HTTP) Reset

func (x *HTTP) Reset()

func (*HTTP) String

func (x *HTTP) String() string

type HTTP_Response

type HTTP_Response struct {
	Response *Response `protobuf:"bytes,13,opt,name=response,proto3,oneof"`
}

type HTTP_Route

type HTTP_Route struct {
	Route *Route `protobuf:"bytes,9,opt,name=route,proto3,oneof"`
}

type HTTP_Router

type HTTP_Router struct {
	Router *Router `protobuf:"bytes,12,opt,name=router,proto3,oneof"`
}

type HTTP_Template

type HTTP_Template struct {
	Template *Template `protobuf:"bytes,10,opt,name=template,proto3,oneof"`
}

type HTTP_TemplateFs

type HTTP_TemplateFs struct {
	TemplateFs *TemplateFS `protobuf:"bytes,11,opt,name=template_fs,json=templateFs,proto3,oneof"`
}
type Header struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetName

func (x *Header) GetName() string

func (*Header) GetValue

func (x *Header) GetValue() string

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type Request

type Request struct {
	Id      string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Method  string    `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	Url     string    `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	Headers []*Header `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty"`
	Body    []byte    `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
	// 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) GetHeaders

func (x *Request) GetHeaders() []*Header

func (*Request) GetId

func (x *Request) GetId() string

func (*Request) GetMethod

func (x *Request) GetMethod() string

func (*Request) GetUrl

func (x *Request) GetUrl() string

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 {
	Id      string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Headers []*Header `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
	Body    []byte    `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// 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() []*Header

func (*Response) GetId

func (x *Response) GetId() string

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 Route

type Route struct {
	Path   string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	// contains filtered or unexported fields
}

func (*Route) Descriptor deprecated

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

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetMethod

func (x *Route) GetMethod() string

func (*Route) GetPath

func (x *Route) GetPath() string

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect

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

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

type Router

type Router struct {
	Root string `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"`
	// contains filtered or unexported fields
}

func (*Router) Descriptor deprecated

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

Deprecated: Use Router.ProtoReflect.Descriptor instead.

func (*Router) GetRoot

func (x *Router) GetRoot() string

func (*Router) ProtoMessage

func (*Router) ProtoMessage()

func (*Router) ProtoReflect

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

func (*Router) Reset

func (x *Router) Reset()

func (*Router) String

func (x *Router) String() string

type Template

type Template struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Template) Descriptor deprecated

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

Deprecated: Use Template.ProtoReflect.Descriptor instead.

func (*Template) GetName

func (x *Template) GetName() string

func (*Template) ProtoMessage

func (*Template) ProtoMessage()

func (*Template) ProtoReflect

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

func (*Template) Reset

func (x *Template) Reset()

func (*Template) String

func (x *Template) String() string

type TemplateFS

type TemplateFS struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*TemplateFS) Descriptor deprecated

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

Deprecated: Use TemplateFS.ProtoReflect.Descriptor instead.

func (*TemplateFS) GetPath

func (x *TemplateFS) GetPath() string

func (*TemplateFS) ProtoMessage

func (*TemplateFS) ProtoMessage()

func (*TemplateFS) ProtoReflect

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

func (*TemplateFS) Reset

func (x *TemplateFS) Reset()

func (*TemplateFS) String

func (x *TemplateFS) String() string

Jump to

Keyboard shortcuts

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