Versions in this module Expand all Collapse all v0 v0.1.2 Jun 22, 2022 v0.1.1 Jun 22, 2022 v0.1.0 Jun 22, 2022 Changes in this version + var File_http_http_proto protoreflect.FileDescriptor + var HTTP_ServiceDesc = grpc.ServiceDesc + func RegisterHTTPServer(s grpc.ServiceRegistrar, srv HTTPServer) + type Certificates struct + Cert [][]byte + func (*Certificates) Descriptor() ([]byte, []int) + func (*Certificates) ProtoMessage() + func (x *Certificates) GetCert() [][]byte + func (x *Certificates) ProtoReflect() protoreflect.Message + func (x *Certificates) Reset() + func (x *Certificates) String() string + type ConnectionState struct + CipherSuite uint32 + DidResume bool + HandshakeComplete bool + NegotiatedProtocol string + OcspResponse []byte + PeerCertificates *Certificates + ServerName string + SignedCertificateTimestamps [][]byte + VerifiedChains []*Certificates + Version uint32 + func (*ConnectionState) Descriptor() ([]byte, []int) + func (*ConnectionState) ProtoMessage() + func (x *ConnectionState) GetCipherSuite() uint32 + func (x *ConnectionState) GetDidResume() bool + func (x *ConnectionState) GetHandshakeComplete() bool + func (x *ConnectionState) GetNegotiatedProtocol() string + func (x *ConnectionState) GetOcspResponse() []byte + func (x *ConnectionState) GetPeerCertificates() *Certificates + func (x *ConnectionState) GetServerName() string + func (x *ConnectionState) GetSignedCertificateTimestamps() [][]byte + func (x *ConnectionState) GetVerifiedChains() []*Certificates + func (x *ConnectionState) GetVersion() uint32 + func (x *ConnectionState) ProtoReflect() protoreflect.Message + func (x *ConnectionState) Reset() + func (x *ConnectionState) String() string + type Element struct + Key string + Values []string + func (*Element) Descriptor() ([]byte, []int) + func (*Element) ProtoMessage() + func (x *Element) GetKey() string + func (x *Element) GetValues() []string + func (x *Element) ProtoReflect() protoreflect.Message + func (x *Element) Reset() + func (x *Element) String() string + type HTTPClient interface + Handle func(ctx context.Context, in *HTTPRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + HandleSimple func(ctx context.Context, in *HandleSimpleHTTPRequest, opts ...grpc.CallOption) (*HandleSimpleHTTPResponse, error) + func NewHTTPClient(cc grpc.ClientConnInterface) HTTPClient + type HTTPRequest struct + Request *Request + ResponseWriter *ResponseWriter + func (*HTTPRequest) Descriptor() ([]byte, []int) + func (*HTTPRequest) ProtoMessage() + func (x *HTTPRequest) GetRequest() *Request + func (x *HTTPRequest) GetResponseWriter() *ResponseWriter + func (x *HTTPRequest) ProtoReflect() protoreflect.Message + func (x *HTTPRequest) Reset() + func (x *HTTPRequest) String() string + type HTTPServer interface + Handle func(context.Context, *HTTPRequest) (*emptypb.Empty, error) + HandleSimple func(context.Context, *HandleSimpleHTTPRequest) (*HandleSimpleHTTPResponse, error) + type HandleSimpleHTTPRequest struct + Body []byte + Headers []*Element + Method string + Url string + func (*HandleSimpleHTTPRequest) Descriptor() ([]byte, []int) + func (*HandleSimpleHTTPRequest) ProtoMessage() + func (x *HandleSimpleHTTPRequest) GetBody() []byte + func (x *HandleSimpleHTTPRequest) GetHeaders() []*Element + func (x *HandleSimpleHTTPRequest) GetMethod() string + func (x *HandleSimpleHTTPRequest) GetUrl() string + func (x *HandleSimpleHTTPRequest) ProtoReflect() protoreflect.Message + func (x *HandleSimpleHTTPRequest) Reset() + func (x *HandleSimpleHTTPRequest) String() string + type HandleSimpleHTTPResponse struct + Body []byte + Code int32 + Headers []*Element + func (*HandleSimpleHTTPResponse) Descriptor() ([]byte, []int) + func (*HandleSimpleHTTPResponse) ProtoMessage() + func (x *HandleSimpleHTTPResponse) GetBody() []byte + func (x *HandleSimpleHTTPResponse) GetCode() int32 + func (x *HandleSimpleHTTPResponse) GetHeaders() []*Element + func (x *HandleSimpleHTTPResponse) ProtoReflect() protoreflect.Message + func (x *HandleSimpleHTTPResponse) Reset() + func (x *HandleSimpleHTTPResponse) String() string + type Request struct + Body []byte + ContentLength int64 + Form []*Element + Header []*Element + Host string + Method string + PostForm []*Element + Proto string + ProtoMajor int32 + ProtoMinor int32 + RemoteAddr string + RequestUri string + Tls *ConnectionState + TrailerKeys []string + TransferEncoding []string + Url *URL + func (*Request) Descriptor() ([]byte, []int) + func (*Request) ProtoMessage() + func (x *Request) GetBody() []byte + func (x *Request) GetContentLength() int64 + func (x *Request) GetForm() []*Element + func (x *Request) GetHeader() []*Element + func (x *Request) GetHost() string + func (x *Request) GetMethod() string + func (x *Request) GetPostForm() []*Element + func (x *Request) GetProto() string + func (x *Request) GetProtoMajor() int32 + func (x *Request) GetProtoMinor() int32 + func (x *Request) GetRemoteAddr() string + func (x *Request) GetRequestUri() string + func (x *Request) GetTls() *ConnectionState + func (x *Request) GetTrailerKeys() []string + func (x *Request) GetTransferEncoding() []string + func (x *Request) GetUrl() *URL + func (x *Request) ProtoReflect() protoreflect.Message + func (x *Request) Reset() + func (x *Request) String() string + type ResponseWriter struct + Header []*Element + ServerAddr string + func (*ResponseWriter) Descriptor() ([]byte, []int) + func (*ResponseWriter) ProtoMessage() + func (x *ResponseWriter) GetHeader() []*Element + func (x *ResponseWriter) GetServerAddr() string + func (x *ResponseWriter) ProtoReflect() protoreflect.Message + func (x *ResponseWriter) Reset() + func (x *ResponseWriter) String() string + type URL struct + ForceQuery bool + Fragment string + Host string + Opaque string + Path string + RawPath string + RawQuery string + Scheme string + User *Userinfo + func (*URL) Descriptor() ([]byte, []int) + func (*URL) ProtoMessage() + func (x *URL) GetForceQuery() bool + func (x *URL) GetFragment() string + func (x *URL) GetHost() string + func (x *URL) GetOpaque() string + func (x *URL) GetPath() string + func (x *URL) GetRawPath() string + func (x *URL) GetRawQuery() string + func (x *URL) GetScheme() string + func (x *URL) GetUser() *Userinfo + func (x *URL) ProtoReflect() protoreflect.Message + func (x *URL) Reset() + func (x *URL) String() string + type UnimplementedHTTPServer struct + func (UnimplementedHTTPServer) Handle(context.Context, *HTTPRequest) (*emptypb.Empty, error) + func (UnimplementedHTTPServer) HandleSimple(context.Context, *HandleSimpleHTTPRequest) (*HandleSimpleHTTPResponse, error) + type UnsafeHTTPServer interface + type Userinfo struct + Password string + PasswordSet bool + Username string + func (*Userinfo) Descriptor() ([]byte, []int) + func (*Userinfo) ProtoMessage() + func (x *Userinfo) GetPassword() string + func (x *Userinfo) GetPasswordSet() bool + func (x *Userinfo) GetUsername() string + func (x *Userinfo) ProtoReflect() protoreflect.Message + func (x *Userinfo) Reset() + func (x *Userinfo) String() string