Documentation ¶
Index ¶
- Variables
- type HTTP
- func (*HTTP) Descriptor() ([]byte, []int)deprecated
- func (x *HTTP) GetResponse() *Response
- func (x *HTTP) GetRoute() *Route
- func (x *HTTP) GetRouter() *Router
- func (x *HTTP) GetTemplate() *Template
- func (x *HTTP) GetTemplateFs() *TemplateFS
- func (m *HTTP) GetType() isHTTP_Type
- func (*HTTP) ProtoMessage()
- func (x *HTTP) ProtoReflect() protoreflect.Message
- func (x *HTTP) Reset()
- func (x *HTTP) String() string
- type HTTP_Response
- type HTTP_Route
- type HTTP_Router
- type HTTP_Template
- type HTTP_TemplateFs
- type Header
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetBody() []byte
- func (x *Request) GetHeaders() []*Header
- func (x *Request) GetId() string
- func (x *Request) GetMethod() string
- func (x *Request) GetUrl() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetBody() []byte
- func (x *Response) GetHeaders() []*Header
- func (x *Response) GetId() string
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type Route
- type Router
- type Template
- type TemplateFS
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) GetResponse ¶
func (*HTTP) GetTemplate ¶
func (*HTTP) GetTemplateFs ¶
func (x *HTTP) GetTemplateFs() *TemplateFS
func (*HTTP) ProtoMessage ¶
func (*HTTP) ProtoMessage()
func (*HTTP) ProtoReflect ¶
func (x *HTTP) ProtoReflect() protoreflect.Message
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 ¶
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) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
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) GetHeaders ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
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) GetHeaders ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) ProtoReflect ¶
func (x *Route) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Router) ProtoMessage()
func (*Router) ProtoReflect ¶
func (x *Router) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Template) ProtoMessage()
func (*Template) ProtoReflect ¶
func (x *Template) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.