Documentation ¶
Overview ¶
Package api is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterHellomicroHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterHellomicroHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HellomicroClient) error
- func RegisterHellomicroHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterHellomicroHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HellomicroServer) error
- func RegisterHellomicroServer(s *grpc.Server, srv HellomicroServer)
- type Cookie
- func (*Cookie) Descriptor() ([]byte, []int)
- func (m *Cookie) GetDomain() string
- func (m *Cookie) GetExpires() *types.Timestamp
- func (m *Cookie) GetHttpOnly() bool
- func (m *Cookie) GetMaxAge() int32
- func (m *Cookie) GetName() string
- func (m *Cookie) GetPath() string
- func (m *Cookie) GetRaw() string
- func (m *Cookie) GetRawExpires() string
- func (m *Cookie) GetSameSite() Cookie_SameSite
- func (m *Cookie) GetSecure() bool
- func (m *Cookie) GetUnparsed() []string
- func (m *Cookie) GetValue() string
- func (m *Cookie) Marshal() (dAtA []byte, err error)
- func (m *Cookie) MarshalTo(dAtA []byte) (int, error)
- func (*Cookie) ProtoMessage()
- func (m *Cookie) Reset()
- func (m *Cookie) Size() (n int)
- func (m *Cookie) String() string
- func (m *Cookie) Unmarshal(dAtA []byte) error
- func (m *Cookie) XXX_DiscardUnknown()
- func (m *Cookie) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cookie) XXX_Merge(src proto.Message)
- func (*Cookie) XXX_MessageName() string
- func (m *Cookie) XXX_Size() int
- func (m *Cookie) XXX_Unmarshal(b []byte) error
- type Cookie_SameSite
- type DeleteFileReq
- func (*DeleteFileReq) Descriptor() ([]byte, []int)
- func (m *DeleteFileReq) Marshal() (dAtA []byte, err error)
- func (m *DeleteFileReq) MarshalTo(dAtA []byte) (int, error)
- func (*DeleteFileReq) ProtoMessage()
- func (m *DeleteFileReq) Reset()
- func (m *DeleteFileReq) Size() (n int)
- func (m *DeleteFileReq) String() string
- func (m *DeleteFileReq) Unmarshal(dAtA []byte) error
- func (m *DeleteFileReq) XXX_DiscardUnknown()
- func (m *DeleteFileReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteFileReq) XXX_Merge(src proto.Message)
- func (*DeleteFileReq) XXX_MessageName() string
- func (m *DeleteFileReq) XXX_Size() int
- func (m *DeleteFileReq) XXX_Unmarshal(b []byte) error
- type DeleteFileRes
- func (*DeleteFileRes) Descriptor() ([]byte, []int)
- func (m *DeleteFileRes) Marshal() (dAtA []byte, err error)
- func (m *DeleteFileRes) MarshalTo(dAtA []byte) (int, error)
- func (*DeleteFileRes) ProtoMessage()
- func (m *DeleteFileRes) Reset()
- func (m *DeleteFileRes) Size() (n int)
- func (m *DeleteFileRes) String() string
- func (m *DeleteFileRes) Unmarshal(dAtA []byte) error
- func (m *DeleteFileRes) XXX_DiscardUnknown()
- func (m *DeleteFileRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteFileRes) XXX_Merge(src proto.Message)
- func (*DeleteFileRes) XXX_MessageName() string
- func (m *DeleteFileRes) XXX_Size() int
- func (m *DeleteFileRes) XXX_Unmarshal(b []byte) error
- type EchoRes
- func (*EchoRes) Descriptor() ([]byte, []int)
- func (m *EchoRes) GetBody() string
- func (m *EchoRes) GetContentLength() int64
- func (m *EchoRes) GetCookies() []*Cookie
- func (m *EchoRes) GetHeaders() map[string]*StringArray
- func (m *EchoRes) GetHost() string
- func (m *EchoRes) GetMethod() string
- func (m *EchoRes) GetParams() map[string]*StringArray
- func (m *EchoRes) GetProto() string
- func (m *EchoRes) GetRemoteAddr() string
- func (m *EchoRes) GetRequestUri() string
- func (m *EchoRes) GetUrl() *URL
- func (m *EchoRes) GetUserAgent() string
- func (m *EchoRes) Marshal() (dAtA []byte, err error)
- func (m *EchoRes) MarshalTo(dAtA []byte) (int, error)
- func (*EchoRes) ProtoMessage()
- func (m *EchoRes) Reset()
- func (m *EchoRes) Size() (n int)
- func (m *EchoRes) String() string
- func (m *EchoRes) Unmarshal(dAtA []byte) error
- func (m *EchoRes) XXX_DiscardUnknown()
- func (m *EchoRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EchoRes) XXX_Merge(src proto.Message)
- func (*EchoRes) XXX_MessageName() string
- func (m *EchoRes) XXX_Size() int
- func (m *EchoRes) XXX_Unmarshal(b []byte) error
- type EnvironmentsRes
- func (*EnvironmentsRes) Descriptor() ([]byte, []int)
- func (m *EnvironmentsRes) GetEnvironments() map[string]string
- func (m *EnvironmentsRes) Marshal() (dAtA []byte, err error)
- func (m *EnvironmentsRes) MarshalTo(dAtA []byte) (int, error)
- func (*EnvironmentsRes) ProtoMessage()
- func (m *EnvironmentsRes) Reset()
- func (m *EnvironmentsRes) Size() (n int)
- func (m *EnvironmentsRes) String() string
- func (m *EnvironmentsRes) Unmarshal(dAtA []byte) error
- func (m *EnvironmentsRes) XXX_DiscardUnknown()
- func (m *EnvironmentsRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EnvironmentsRes) XXX_Merge(src proto.Message)
- func (*EnvironmentsRes) XXX_MessageName() string
- func (m *EnvironmentsRes) XXX_Size() int
- func (m *EnvironmentsRes) XXX_Unmarshal(b []byte) error
- type ExitReq
- func (*ExitReq) Descriptor() ([]byte, []int)
- func (m *ExitReq) GetCode() int32
- func (m *ExitReq) Marshal() (dAtA []byte, err error)
- func (m *ExitReq) MarshalTo(dAtA []byte) (int, error)
- func (*ExitReq) ProtoMessage()
- func (m *ExitReq) Reset()
- func (m *ExitReq) Size() (n int)
- func (m *ExitReq) String() string
- func (m *ExitReq) Unmarshal(dAtA []byte) error
- func (m *ExitReq) XXX_DiscardUnknown()
- func (m *ExitReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExitReq) XXX_Merge(src proto.Message)
- func (*ExitReq) XXX_MessageName() string
- func (m *ExitReq) XXX_Size() int
- func (m *ExitReq) XXX_Unmarshal(b []byte) error
- type FileInfo
- func (*FileInfo) Descriptor() ([]byte, []int)
- func (m *FileInfo) GetModTime() *types.Timestamp
- func (m *FileInfo) GetMode() string
- func (m *FileInfo) GetPath() string
- func (m *FileInfo) GetSize_() int64
- func (m *FileInfo) Marshal() (dAtA []byte, err error)
- func (m *FileInfo) MarshalTo(dAtA []byte) (int, error)
- func (*FileInfo) ProtoMessage()
- func (m *FileInfo) Reset()
- func (m *FileInfo) Size() (n int)
- func (m *FileInfo) String() string
- func (m *FileInfo) Unmarshal(dAtA []byte) error
- func (m *FileInfo) XXX_DiscardUnknown()
- func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FileInfo) XXX_Merge(src proto.Message)
- func (*FileInfo) XXX_MessageName() string
- func (m *FileInfo) XXX_Size() int
- func (m *FileInfo) XXX_Unmarshal(b []byte) error
- type HellomicroClient
- type HellomicroServer
- type InfoRes
- func (*InfoRes) Descriptor() ([]byte, []int)
- func (m *InfoRes) GetMemory() *InfoRes_Memory
- func (m *InfoRes) GetNumCgoCall() int64
- func (m *InfoRes) GetNumCpu() int32
- func (m *InfoRes) GetNumGoRoutine() int32
- func (m *InfoRes) GetOs() string
- func (m *InfoRes) GetVersion() string
- func (m *InfoRes) Marshal() (dAtA []byte, err error)
- func (m *InfoRes) MarshalTo(dAtA []byte) (int, error)
- func (*InfoRes) ProtoMessage()
- func (m *InfoRes) Reset()
- func (m *InfoRes) Size() (n int)
- func (m *InfoRes) String() string
- func (m *InfoRes) Unmarshal(dAtA []byte) error
- func (m *InfoRes) XXX_DiscardUnknown()
- func (m *InfoRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InfoRes) XXX_Merge(src proto.Message)
- func (*InfoRes) XXX_MessageName() string
- func (m *InfoRes) XXX_Size() int
- func (m *InfoRes) XXX_Unmarshal(b []byte) error
- type InfoRes_Memory
- func (*InfoRes_Memory) Descriptor() ([]byte, []int)
- func (m *InfoRes_Memory) GetAlloc() uint64
- func (m *InfoRes_Memory) GetNumGc() uint32
- func (m *InfoRes_Memory) GetSys() uint64
- func (m *InfoRes_Memory) GetTotalAlloc() uint64
- func (m *InfoRes_Memory) Marshal() (dAtA []byte, err error)
- func (m *InfoRes_Memory) MarshalTo(dAtA []byte) (int, error)
- func (*InfoRes_Memory) ProtoMessage()
- func (m *InfoRes_Memory) Reset()
- func (m *InfoRes_Memory) Size() (n int)
- func (m *InfoRes_Memory) String() string
- func (m *InfoRes_Memory) Unmarshal(dAtA []byte) error
- func (m *InfoRes_Memory) XXX_DiscardUnknown()
- func (m *InfoRes_Memory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InfoRes_Memory) XXX_Merge(src proto.Message)
- func (*InfoRes_Memory) XXX_MessageName() string
- func (m *InfoRes_Memory) XXX_Size() int
- func (m *InfoRes_Memory) XXX_Unmarshal(b []byte) error
- type LatencyReq
- func (*LatencyReq) Descriptor() ([]byte, []int)
- func (m *LatencyReq) GetDuration() int32
- func (m *LatencyReq) Marshal() (dAtA []byte, err error)
- func (m *LatencyReq) MarshalTo(dAtA []byte) (int, error)
- func (*LatencyReq) ProtoMessage()
- func (m *LatencyReq) Reset()
- func (m *LatencyReq) Size() (n int)
- func (m *LatencyReq) String() string
- func (m *LatencyReq) Unmarshal(dAtA []byte) error
- func (m *LatencyReq) XXX_DiscardUnknown()
- func (m *LatencyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LatencyReq) XXX_Merge(src proto.Message)
- func (*LatencyReq) XXX_MessageName() string
- func (m *LatencyReq) XXX_Size() int
- func (m *LatencyReq) XXX_Unmarshal(b []byte) error
- type ListFilesReq
- func (*ListFilesReq) Descriptor() ([]byte, []int)
- func (m *ListFilesReq) GetPath() string
- func (m *ListFilesReq) Marshal() (dAtA []byte, err error)
- func (m *ListFilesReq) MarshalTo(dAtA []byte) (int, error)
- func (*ListFilesReq) ProtoMessage()
- func (m *ListFilesReq) Reset()
- func (m *ListFilesReq) Size() (n int)
- func (m *ListFilesReq) String() string
- func (m *ListFilesReq) Unmarshal(dAtA []byte) error
- func (m *ListFilesReq) XXX_DiscardUnknown()
- func (m *ListFilesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListFilesReq) XXX_Merge(src proto.Message)
- func (*ListFilesReq) XXX_MessageName() string
- func (m *ListFilesReq) XXX_Size() int
- func (m *ListFilesReq) XXX_Unmarshal(b []byte) error
- type ListFilesRes
- func (*ListFilesRes) Descriptor() ([]byte, []int)
- func (m *ListFilesRes) GetFileInfos() []*FileInfo
- func (m *ListFilesRes) Marshal() (dAtA []byte, err error)
- func (m *ListFilesRes) MarshalTo(dAtA []byte) (int, error)
- func (*ListFilesRes) ProtoMessage()
- func (m *ListFilesRes) Reset()
- func (m *ListFilesRes) Size() (n int)
- func (m *ListFilesRes) String() string
- func (m *ListFilesRes) Unmarshal(dAtA []byte) error
- func (m *ListFilesRes) XXX_DiscardUnknown()
- func (m *ListFilesRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListFilesRes) XXX_Merge(src proto.Message)
- func (*ListFilesRes) XXX_MessageName() string
- func (m *ListFilesRes) XXX_Size() int
- func (m *ListFilesRes) XXX_Unmarshal(b []byte) error
- type LogReq
- func (*LogReq) Descriptor() ([]byte, []int)
- func (m *LogReq) GetCount() int32
- func (m *LogReq) Marshal() (dAtA []byte, err error)
- func (m *LogReq) MarshalTo(dAtA []byte) (int, error)
- func (*LogReq) ProtoMessage()
- func (m *LogReq) Reset()
- func (m *LogReq) Size() (n int)
- func (m *LogReq) String() string
- func (m *LogReq) Unmarshal(dAtA []byte) error
- func (m *LogReq) XXX_DiscardUnknown()
- func (m *LogReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogReq) XXX_Merge(src proto.Message)
- func (*LogReq) XXX_MessageName() string
- func (m *LogReq) XXX_Size() int
- func (m *LogReq) XXX_Unmarshal(b []byte) error
- type ReadFileReq
- func (*ReadFileReq) Descriptor() ([]byte, []int)
- func (m *ReadFileReq) Marshal() (dAtA []byte, err error)
- func (m *ReadFileReq) MarshalTo(dAtA []byte) (int, error)
- func (*ReadFileReq) ProtoMessage()
- func (m *ReadFileReq) Reset()
- func (m *ReadFileReq) Size() (n int)
- func (m *ReadFileReq) String() string
- func (m *ReadFileReq) Unmarshal(dAtA []byte) error
- func (m *ReadFileReq) XXX_DiscardUnknown()
- func (m *ReadFileReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadFileReq) XXX_Merge(src proto.Message)
- func (*ReadFileReq) XXX_MessageName() string
- func (m *ReadFileReq) XXX_Size() int
- func (m *ReadFileReq) XXX_Unmarshal(b []byte) error
- type ReadFileRes
- func (*ReadFileRes) Descriptor() ([]byte, []int)
- func (m *ReadFileRes) Marshal() (dAtA []byte, err error)
- func (m *ReadFileRes) MarshalTo(dAtA []byte) (int, error)
- func (*ReadFileRes) ProtoMessage()
- func (m *ReadFileRes) Reset()
- func (m *ReadFileRes) Size() (n int)
- func (m *ReadFileRes) String() string
- func (m *ReadFileRes) Unmarshal(dAtA []byte) error
- func (m *ReadFileRes) XXX_DiscardUnknown()
- func (m *ReadFileRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadFileRes) XXX_Merge(src proto.Message)
- func (*ReadFileRes) XXX_MessageName() string
- func (m *ReadFileRes) XXX_Size() int
- func (m *ReadFileRes) XXX_Unmarshal(b []byte) error
- type RequestReq
- func (*RequestReq) Descriptor() ([]byte, []int)
- func (m *RequestReq) GetBody() string
- func (m *RequestReq) GetMethod() string
- func (m *RequestReq) GetUrl() string
- func (m *RequestReq) Marshal() (dAtA []byte, err error)
- func (m *RequestReq) MarshalTo(dAtA []byte) (int, error)
- func (*RequestReq) ProtoMessage()
- func (m *RequestReq) Reset()
- func (m *RequestReq) Size() (n int)
- func (m *RequestReq) String() string
- func (m *RequestReq) Unmarshal(dAtA []byte) error
- func (m *RequestReq) XXX_DiscardUnknown()
- func (m *RequestReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestReq) XXX_Merge(src proto.Message)
- func (*RequestReq) XXX_MessageName() string
- func (m *RequestReq) XXX_Size() int
- func (m *RequestReq) XXX_Unmarshal(b []byte) error
- type RequestRes
- func (*RequestRes) Descriptor() ([]byte, []int)
- func (m *RequestRes) GetBody() string
- func (m *RequestRes) GetHeaders() map[string]*StringArray
- func (m *RequestRes) GetStatusCode() int32
- func (m *RequestRes) Marshal() (dAtA []byte, err error)
- func (m *RequestRes) MarshalTo(dAtA []byte) (int, error)
- func (*RequestRes) ProtoMessage()
- func (m *RequestRes) Reset()
- func (m *RequestRes) Size() (n int)
- func (m *RequestRes) String() string
- func (m *RequestRes) Unmarshal(dAtA []byte) error
- func (m *RequestRes) XXX_DiscardUnknown()
- func (m *RequestRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestRes) XXX_Merge(src proto.Message)
- func (*RequestRes) XXX_MessageName() string
- func (m *RequestRes) XXX_Size() int
- func (m *RequestRes) XXX_Unmarshal(b []byte) error
- type StringArray
- func (*StringArray) Descriptor() ([]byte, []int)
- func (m *StringArray) GetValues() []string
- func (m *StringArray) Marshal() (dAtA []byte, err error)
- func (m *StringArray) MarshalTo(dAtA []byte) (int, error)
- func (*StringArray) ProtoMessage()
- func (m *StringArray) Reset()
- func (m *StringArray) Size() (n int)
- func (m *StringArray) String() string
- func (m *StringArray) Unmarshal(dAtA []byte) error
- func (m *StringArray) XXX_DiscardUnknown()
- func (m *StringArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StringArray) XXX_Merge(src proto.Message)
- func (*StringArray) XXX_MessageName() string
- func (m *StringArray) XXX_Size() int
- func (m *StringArray) XXX_Unmarshal(b []byte) error
- type URL
- func (*URL) Descriptor() ([]byte, []int)
- func (m *URL) GetForceQuery() bool
- func (m *URL) GetFragment() string
- func (m *URL) GetHost() string
- func (m *URL) GetOpaque() string
- func (m *URL) GetPassword() string
- func (m *URL) GetPasswordSet() bool
- func (m *URL) GetPath() string
- func (m *URL) GetRawFragment() string
- func (m *URL) GetRawPath() string
- func (m *URL) GetRawQuery() string
- func (m *URL) GetScheme() string
- func (m *URL) GetUsername() string
- func (m *URL) Marshal() (dAtA []byte, err error)
- func (m *URL) MarshalTo(dAtA []byte) (int, error)
- func (*URL) ProtoMessage()
- func (m *URL) Reset()
- func (m *URL) Size() (n int)
- func (m *URL) String() string
- func (m *URL) Unmarshal(dAtA []byte) error
- func (m *URL) XXX_DiscardUnknown()
- func (m *URL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *URL) XXX_Merge(src proto.Message)
- func (*URL) XXX_MessageName() string
- func (m *URL) XXX_Size() int
- func (m *URL) XXX_Unmarshal(b []byte) error
- type WriteFileReq
- func (*WriteFileReq) Descriptor() ([]byte, []int)
- func (m *WriteFileReq) GetContent() []byte
- func (m *WriteFileReq) GetMode() string
- func (m *WriteFileReq) GetPath() string
- func (m *WriteFileReq) Marshal() (dAtA []byte, err error)
- func (m *WriteFileReq) MarshalTo(dAtA []byte) (int, error)
- func (*WriteFileReq) ProtoMessage()
- func (m *WriteFileReq) Reset()
- func (m *WriteFileReq) Size() (n int)
- func (m *WriteFileReq) String() string
- func (m *WriteFileReq) Unmarshal(dAtA []byte) error
- func (m *WriteFileReq) XXX_DiscardUnknown()
- func (m *WriteFileReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WriteFileReq) XXX_Merge(src proto.Message)
- func (*WriteFileReq) XXX_MessageName() string
- func (m *WriteFileReq) XXX_Size() int
- func (m *WriteFileReq) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthService = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowService = fmt.Errorf("proto: integer overflow") )
var Cookie_SameSite_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "DEFAULT_MODE",
2: "LAX_MODE",
3: "STRICT_MODE",
4: "NONE_MODE",
}
var Cookie_SameSite_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"DEFAULT_MODE": 1,
"LAX_MODE": 2,
"STRICT_MODE": 3,
"NONE_MODE": 4,
}
Functions ¶
func RegisterHellomicroHandler ¶
func RegisterHellomicroHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterHellomicroHandler registers the http handlers for service Hellomicro to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterHellomicroHandlerClient ¶
func RegisterHellomicroHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HellomicroClient) error
RegisterHellomicroHandlerClient registers the http handlers for service Hellomicro to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "HellomicroClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "HellomicroClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "HellomicroClient" to call the correct interceptors.
func RegisterHellomicroHandlerFromEndpoint ¶
func RegisterHellomicroHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterHellomicroHandlerFromEndpoint is same as RegisterHellomicroHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterHellomicroHandlerServer ¶
func RegisterHellomicroHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HellomicroServer) error
RegisterHellomicroHandlerServer registers the http handlers for service Hellomicro to "mux". UnaryRPC :call HellomicroServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterHellomicroHandlerFromEndpoint instead.
func RegisterHellomicroServer ¶
func RegisterHellomicroServer(s *grpc.Server, srv HellomicroServer)
Types ¶
type Cookie ¶
type Cookie 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"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` Domain string `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain,omitempty"` Expires *types.Timestamp `protobuf:"bytes,5,opt,name=expires,proto3" json:"expires,omitempty"` RawExpires string `protobuf:"bytes,6,opt,name=raw_expires,json=rawExpires,proto3" json:"raw_expires,omitempty"` MaxAge int32 `protobuf:"varint,7,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"` Secure bool `protobuf:"varint,8,opt,name=secure,proto3" json:"secure,omitempty"` HttpOnly bool `protobuf:"varint,9,opt,name=http_only,json=httpOnly,proto3" json:"http_only,omitempty"` SameSite Cookie_SameSite `` /* 126-byte string literal not displayed */ Raw string `protobuf:"bytes,11,opt,name=raw,proto3" json:"raw,omitempty"` Unparsed []string `protobuf:"bytes,12,rep,name=unparsed,proto3" json:"unparsed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*Cookie) Descriptor ¶
func (*Cookie) GetExpires ¶
func (*Cookie) GetHttpOnly ¶
func (*Cookie) GetRawExpires ¶
func (*Cookie) GetSameSite ¶
func (m *Cookie) GetSameSite() Cookie_SameSite
func (*Cookie) GetUnparsed ¶
func (*Cookie) ProtoMessage ¶
func (*Cookie) ProtoMessage()
func (*Cookie) XXX_DiscardUnknown ¶
func (m *Cookie) XXX_DiscardUnknown()
func (*Cookie) XXX_Marshal ¶
func (*Cookie) XXX_MessageName ¶
func (*Cookie) XXX_Unmarshal ¶
type Cookie_SameSite ¶
type Cookie_SameSite int32
const ( Cookie_TYPE_UNSPECIFIED Cookie_SameSite = 0 Cookie_DEFAULT_MODE Cookie_SameSite = 1 Cookie_LAX_MODE Cookie_SameSite = 2 Cookie_STRICT_MODE Cookie_SameSite = 3 Cookie_NONE_MODE Cookie_SameSite = 4 )
func (Cookie_SameSite) EnumDescriptor ¶
func (Cookie_SameSite) EnumDescriptor() ([]byte, []int)
func (Cookie_SameSite) String ¶
func (x Cookie_SameSite) String() string
type DeleteFileReq ¶
type DeleteFileReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*DeleteFileReq) Descriptor ¶
func (*DeleteFileReq) Descriptor() ([]byte, []int)
func (*DeleteFileReq) Marshal ¶
func (m *DeleteFileReq) Marshal() (dAtA []byte, err error)
func (*DeleteFileReq) ProtoMessage ¶
func (*DeleteFileReq) ProtoMessage()
func (*DeleteFileReq) Reset ¶
func (m *DeleteFileReq) Reset()
func (*DeleteFileReq) Size ¶
func (m *DeleteFileReq) Size() (n int)
func (*DeleteFileReq) String ¶
func (m *DeleteFileReq) String() string
func (*DeleteFileReq) Unmarshal ¶
func (m *DeleteFileReq) Unmarshal(dAtA []byte) error
func (*DeleteFileReq) XXX_DiscardUnknown ¶
func (m *DeleteFileReq) XXX_DiscardUnknown()
func (*DeleteFileReq) XXX_Marshal ¶
func (m *DeleteFileReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteFileReq) XXX_Merge ¶
func (m *DeleteFileReq) XXX_Merge(src proto.Message)
func (*DeleteFileReq) XXX_MessageName ¶
func (*DeleteFileReq) XXX_MessageName() string
func (*DeleteFileReq) XXX_Size ¶
func (m *DeleteFileReq) XXX_Size() int
func (*DeleteFileReq) XXX_Unmarshal ¶
func (m *DeleteFileReq) XXX_Unmarshal(b []byte) error
type DeleteFileRes ¶
type DeleteFileRes struct { XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*DeleteFileRes) Descriptor ¶
func (*DeleteFileRes) Descriptor() ([]byte, []int)
func (*DeleteFileRes) Marshal ¶
func (m *DeleteFileRes) Marshal() (dAtA []byte, err error)
func (*DeleteFileRes) ProtoMessage ¶
func (*DeleteFileRes) ProtoMessage()
func (*DeleteFileRes) Reset ¶
func (m *DeleteFileRes) Reset()
func (*DeleteFileRes) Size ¶
func (m *DeleteFileRes) Size() (n int)
func (*DeleteFileRes) String ¶
func (m *DeleteFileRes) String() string
func (*DeleteFileRes) Unmarshal ¶
func (m *DeleteFileRes) Unmarshal(dAtA []byte) error
func (*DeleteFileRes) XXX_DiscardUnknown ¶
func (m *DeleteFileRes) XXX_DiscardUnknown()
func (*DeleteFileRes) XXX_Marshal ¶
func (m *DeleteFileRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteFileRes) XXX_Merge ¶
func (m *DeleteFileRes) XXX_Merge(src proto.Message)
func (*DeleteFileRes) XXX_MessageName ¶
func (*DeleteFileRes) XXX_MessageName() string
func (*DeleteFileRes) XXX_Size ¶
func (m *DeleteFileRes) XXX_Size() int
func (*DeleteFileRes) XXX_Unmarshal ¶
func (m *DeleteFileRes) XXX_Unmarshal(b []byte) error
type EchoRes ¶
type EchoRes struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Proto string `protobuf:"bytes,2,opt,name=proto,proto3" json:"proto,omitempty"` ContentLength int64 `protobuf:"varint,3,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` RemoteAddr string `protobuf:"bytes,4,opt,name=remote_addr,json=remoteAddr,proto3" json:"remote_addr,omitempty"` RequestUri string `protobuf:"bytes,5,opt,name=request_uri,json=requestUri,proto3" json:"request_uri,omitempty"` Host string `protobuf:"bytes,6,opt,name=host,proto3" json:"host,omitempty"` UserAgent string `protobuf:"bytes,7,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` Body string `protobuf:"bytes,8,opt,name=body,proto3" json:"body,omitempty"` Headers map[string]*StringArray `` /* 155-byte string literal not displayed */ Params map[string]*StringArray `` /* 154-byte string literal not displayed */ Url *URL `protobuf:"bytes,11,opt,name=url,proto3" json:"url,omitempty"` Cookies []*Cookie `protobuf:"bytes,12,rep,name=cookies,proto3" json:"cookies,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*EchoRes) Descriptor ¶
func (*EchoRes) GetContentLength ¶
func (*EchoRes) GetCookies ¶
func (*EchoRes) GetHeaders ¶
func (m *EchoRes) GetHeaders() map[string]*StringArray
func (*EchoRes) GetParams ¶
func (m *EchoRes) GetParams() map[string]*StringArray
func (*EchoRes) GetRemoteAddr ¶
func (*EchoRes) GetRequestUri ¶
func (*EchoRes) GetUserAgent ¶
func (*EchoRes) ProtoMessage ¶
func (*EchoRes) ProtoMessage()
func (*EchoRes) XXX_DiscardUnknown ¶
func (m *EchoRes) XXX_DiscardUnknown()
func (*EchoRes) XXX_Marshal ¶
func (*EchoRes) XXX_MessageName ¶
func (*EchoRes) XXX_Unmarshal ¶
type EnvironmentsRes ¶
type EnvironmentsRes struct { Environments map[string]string `` /* 165-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*EnvironmentsRes) Descriptor ¶
func (*EnvironmentsRes) Descriptor() ([]byte, []int)
func (*EnvironmentsRes) GetEnvironments ¶
func (m *EnvironmentsRes) GetEnvironments() map[string]string
func (*EnvironmentsRes) Marshal ¶
func (m *EnvironmentsRes) Marshal() (dAtA []byte, err error)
func (*EnvironmentsRes) ProtoMessage ¶
func (*EnvironmentsRes) ProtoMessage()
func (*EnvironmentsRes) Reset ¶
func (m *EnvironmentsRes) Reset()
func (*EnvironmentsRes) Size ¶
func (m *EnvironmentsRes) Size() (n int)
func (*EnvironmentsRes) String ¶
func (m *EnvironmentsRes) String() string
func (*EnvironmentsRes) Unmarshal ¶
func (m *EnvironmentsRes) Unmarshal(dAtA []byte) error
func (*EnvironmentsRes) XXX_DiscardUnknown ¶
func (m *EnvironmentsRes) XXX_DiscardUnknown()
func (*EnvironmentsRes) XXX_Marshal ¶
func (m *EnvironmentsRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EnvironmentsRes) XXX_Merge ¶
func (m *EnvironmentsRes) XXX_Merge(src proto.Message)
func (*EnvironmentsRes) XXX_MessageName ¶
func (*EnvironmentsRes) XXX_MessageName() string
func (*EnvironmentsRes) XXX_Size ¶
func (m *EnvironmentsRes) XXX_Size() int
func (*EnvironmentsRes) XXX_Unmarshal ¶
func (m *EnvironmentsRes) XXX_Unmarshal(b []byte) error
type ExitReq ¶
type ExitReq struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
* Requests
func (*ExitReq) Descriptor ¶
func (*ExitReq) ProtoMessage ¶
func (*ExitReq) ProtoMessage()
func (*ExitReq) XXX_DiscardUnknown ¶
func (m *ExitReq) XXX_DiscardUnknown()
func (*ExitReq) XXX_Marshal ¶
func (*ExitReq) XXX_MessageName ¶
func (*ExitReq) XXX_Unmarshal ¶
type FileInfo ¶
type FileInfo struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Size_ int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"` ModTime *types.Timestamp `protobuf:"bytes,4,opt,name=modTime,proto3" json:"modTime,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*FileInfo) Descriptor ¶
func (*FileInfo) GetModTime ¶
func (*FileInfo) ProtoMessage ¶
func (*FileInfo) ProtoMessage()
func (*FileInfo) XXX_DiscardUnknown ¶
func (m *FileInfo) XXX_DiscardUnknown()
func (*FileInfo) XXX_Marshal ¶
func (*FileInfo) XXX_MessageName ¶
func (*FileInfo) XXX_Unmarshal ¶
type HellomicroClient ¶
type HellomicroClient interface { Ping(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) Crash(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) Panic(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) Exit(ctx context.Context, in *ExitReq, opts ...grpc.CallOption) (*empty.Empty, error) Log(ctx context.Context, in *LogReq, opts ...grpc.CallOption) (*empty.Empty, error) Latency(ctx context.Context, in *LatencyReq, opts ...grpc.CallOption) (*empty.Empty, error) Info(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*InfoRes, error) Environments(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*EnvironmentsRes, error) Echo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*EchoRes, error) Request(ctx context.Context, in *RequestReq, opts ...grpc.CallOption) (*RequestRes, error) ListFiles(ctx context.Context, in *ListFilesReq, opts ...grpc.CallOption) (*ListFilesRes, error) ReadFile(ctx context.Context, in *ReadFileReq, opts ...grpc.CallOption) (*ReadFileRes, error) WriteFile(ctx context.Context, in *WriteFileReq, opts ...grpc.CallOption) (*empty.Empty, error) DeleteFile(ctx context.Context, in *DeleteFileReq, opts ...grpc.CallOption) (*DeleteFileRes, error) }
HellomicroClient is the client API for Hellomicro service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHellomicroClient ¶
func NewHellomicroClient(cc *grpc.ClientConn) HellomicroClient
type HellomicroServer ¶
type HellomicroServer interface { Ping(context.Context, *empty.Empty) (*empty.Empty, error) Crash(context.Context, *empty.Empty) (*empty.Empty, error) Panic(context.Context, *empty.Empty) (*empty.Empty, error) Exit(context.Context, *ExitReq) (*empty.Empty, error) Log(context.Context, *LogReq) (*empty.Empty, error) Latency(context.Context, *LatencyReq) (*empty.Empty, error) Info(context.Context, *empty.Empty) (*InfoRes, error) Environments(context.Context, *empty.Empty) (*EnvironmentsRes, error) Echo(context.Context, *empty.Empty) (*EchoRes, error) Request(context.Context, *RequestReq) (*RequestRes, error) ListFiles(context.Context, *ListFilesReq) (*ListFilesRes, error) ReadFile(context.Context, *ReadFileReq) (*ReadFileRes, error) WriteFile(context.Context, *WriteFileReq) (*empty.Empty, error) DeleteFile(context.Context, *DeleteFileReq) (*DeleteFileRes, error) }
HellomicroServer is the server API for Hellomicro service.
type InfoRes ¶
type InfoRes struct { Os string `protobuf:"bytes,1,opt,name=os,proto3" json:"os,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` NumCpu int32 `protobuf:"varint,3,opt,name=num_cpu,json=numCpu,proto3" json:"num_cpu,omitempty"` NumGoRoutine int32 `protobuf:"varint,4,opt,name=num_go_routine,json=numGoRoutine,proto3" json:"num_go_routine,omitempty"` NumCgoCall int64 `protobuf:"varint,5,opt,name=num_cgo_call,json=numCgoCall,proto3" json:"num_cgo_call,omitempty"` Memory *InfoRes_Memory `protobuf:"bytes,6,opt,name=memory,proto3" json:"memory,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*InfoRes) Descriptor ¶
func (*InfoRes) GetMemory ¶
func (m *InfoRes) GetMemory() *InfoRes_Memory
func (*InfoRes) GetNumCgoCall ¶
func (*InfoRes) GetNumGoRoutine ¶
func (*InfoRes) GetVersion ¶
func (*InfoRes) ProtoMessage ¶
func (*InfoRes) ProtoMessage()
func (*InfoRes) XXX_DiscardUnknown ¶
func (m *InfoRes) XXX_DiscardUnknown()
func (*InfoRes) XXX_Marshal ¶
func (*InfoRes) XXX_MessageName ¶
func (*InfoRes) XXX_Unmarshal ¶
type InfoRes_Memory ¶
type InfoRes_Memory struct { Alloc uint64 `protobuf:"varint,1,opt,name=alloc,proto3" json:"alloc,omitempty"` TotalAlloc uint64 `protobuf:"varint,2,opt,name=total_alloc,json=totalAlloc,proto3" json:"total_alloc,omitempty"` Sys uint64 `protobuf:"varint,3,opt,name=sys,proto3" json:"sys,omitempty"` NumGc uint32 `protobuf:"varint,4,opt,name=num_gc,json=numGc,proto3" json:"num_gc,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*InfoRes_Memory) Descriptor ¶
func (*InfoRes_Memory) Descriptor() ([]byte, []int)
func (*InfoRes_Memory) GetAlloc ¶
func (m *InfoRes_Memory) GetAlloc() uint64
func (*InfoRes_Memory) GetNumGc ¶
func (m *InfoRes_Memory) GetNumGc() uint32
func (*InfoRes_Memory) GetSys ¶
func (m *InfoRes_Memory) GetSys() uint64
func (*InfoRes_Memory) GetTotalAlloc ¶
func (m *InfoRes_Memory) GetTotalAlloc() uint64
func (*InfoRes_Memory) Marshal ¶
func (m *InfoRes_Memory) Marshal() (dAtA []byte, err error)
func (*InfoRes_Memory) ProtoMessage ¶
func (*InfoRes_Memory) ProtoMessage()
func (*InfoRes_Memory) Reset ¶
func (m *InfoRes_Memory) Reset()
func (*InfoRes_Memory) Size ¶
func (m *InfoRes_Memory) Size() (n int)
func (*InfoRes_Memory) String ¶
func (m *InfoRes_Memory) String() string
func (*InfoRes_Memory) Unmarshal ¶
func (m *InfoRes_Memory) Unmarshal(dAtA []byte) error
func (*InfoRes_Memory) XXX_DiscardUnknown ¶
func (m *InfoRes_Memory) XXX_DiscardUnknown()
func (*InfoRes_Memory) XXX_Marshal ¶
func (m *InfoRes_Memory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InfoRes_Memory) XXX_Merge ¶
func (m *InfoRes_Memory) XXX_Merge(src proto.Message)
func (*InfoRes_Memory) XXX_MessageName ¶
func (*InfoRes_Memory) XXX_MessageName() string
func (*InfoRes_Memory) XXX_Size ¶
func (m *InfoRes_Memory) XXX_Size() int
func (*InfoRes_Memory) XXX_Unmarshal ¶
func (m *InfoRes_Memory) XXX_Unmarshal(b []byte) error
type LatencyReq ¶
type LatencyReq struct { Duration int32 `protobuf:"varint,1,opt,name=duration,proto3" json:"duration,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*LatencyReq) Descriptor ¶
func (*LatencyReq) Descriptor() ([]byte, []int)
func (*LatencyReq) GetDuration ¶
func (m *LatencyReq) GetDuration() int32
func (*LatencyReq) Marshal ¶
func (m *LatencyReq) Marshal() (dAtA []byte, err error)
func (*LatencyReq) ProtoMessage ¶
func (*LatencyReq) ProtoMessage()
func (*LatencyReq) Reset ¶
func (m *LatencyReq) Reset()
func (*LatencyReq) Size ¶
func (m *LatencyReq) Size() (n int)
func (*LatencyReq) String ¶
func (m *LatencyReq) String() string
func (*LatencyReq) Unmarshal ¶
func (m *LatencyReq) Unmarshal(dAtA []byte) error
func (*LatencyReq) XXX_DiscardUnknown ¶
func (m *LatencyReq) XXX_DiscardUnknown()
func (*LatencyReq) XXX_Marshal ¶
func (m *LatencyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LatencyReq) XXX_Merge ¶
func (m *LatencyReq) XXX_Merge(src proto.Message)
func (*LatencyReq) XXX_MessageName ¶
func (*LatencyReq) XXX_MessageName() string
func (*LatencyReq) XXX_Size ¶
func (m *LatencyReq) XXX_Size() int
func (*LatencyReq) XXX_Unmarshal ¶
func (m *LatencyReq) XXX_Unmarshal(b []byte) error
type ListFilesReq ¶
type ListFilesReq struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*ListFilesReq) Descriptor ¶
func (*ListFilesReq) Descriptor() ([]byte, []int)
func (*ListFilesReq) GetPath ¶
func (m *ListFilesReq) GetPath() string
func (*ListFilesReq) Marshal ¶
func (m *ListFilesReq) Marshal() (dAtA []byte, err error)
func (*ListFilesReq) ProtoMessage ¶
func (*ListFilesReq) ProtoMessage()
func (*ListFilesReq) Reset ¶
func (m *ListFilesReq) Reset()
func (*ListFilesReq) Size ¶
func (m *ListFilesReq) Size() (n int)
func (*ListFilesReq) String ¶
func (m *ListFilesReq) String() string
func (*ListFilesReq) Unmarshal ¶
func (m *ListFilesReq) Unmarshal(dAtA []byte) error
func (*ListFilesReq) XXX_DiscardUnknown ¶
func (m *ListFilesReq) XXX_DiscardUnknown()
func (*ListFilesReq) XXX_Marshal ¶
func (m *ListFilesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListFilesReq) XXX_Merge ¶
func (m *ListFilesReq) XXX_Merge(src proto.Message)
func (*ListFilesReq) XXX_MessageName ¶
func (*ListFilesReq) XXX_MessageName() string
func (*ListFilesReq) XXX_Size ¶
func (m *ListFilesReq) XXX_Size() int
func (*ListFilesReq) XXX_Unmarshal ¶
func (m *ListFilesReq) XXX_Unmarshal(b []byte) error
type ListFilesRes ¶
type ListFilesRes struct { FileInfos []*FileInfo `protobuf:"bytes,1,rep,name=file_infos,json=fileInfos,proto3" json:"file_infos,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*ListFilesRes) Descriptor ¶
func (*ListFilesRes) Descriptor() ([]byte, []int)
func (*ListFilesRes) GetFileInfos ¶
func (m *ListFilesRes) GetFileInfos() []*FileInfo
func (*ListFilesRes) Marshal ¶
func (m *ListFilesRes) Marshal() (dAtA []byte, err error)
func (*ListFilesRes) ProtoMessage ¶
func (*ListFilesRes) ProtoMessage()
func (*ListFilesRes) Reset ¶
func (m *ListFilesRes) Reset()
func (*ListFilesRes) Size ¶
func (m *ListFilesRes) Size() (n int)
func (*ListFilesRes) String ¶
func (m *ListFilesRes) String() string
func (*ListFilesRes) Unmarshal ¶
func (m *ListFilesRes) Unmarshal(dAtA []byte) error
func (*ListFilesRes) XXX_DiscardUnknown ¶
func (m *ListFilesRes) XXX_DiscardUnknown()
func (*ListFilesRes) XXX_Marshal ¶
func (m *ListFilesRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListFilesRes) XXX_Merge ¶
func (m *ListFilesRes) XXX_Merge(src proto.Message)
func (*ListFilesRes) XXX_MessageName ¶
func (*ListFilesRes) XXX_MessageName() string
func (*ListFilesRes) XXX_Size ¶
func (m *ListFilesRes) XXX_Size() int
func (*ListFilesRes) XXX_Unmarshal ¶
func (m *ListFilesRes) XXX_Unmarshal(b []byte) error
type LogReq ¶
type LogReq struct { Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*LogReq) Descriptor ¶
func (*LogReq) ProtoMessage ¶
func (*LogReq) ProtoMessage()
func (*LogReq) XXX_DiscardUnknown ¶
func (m *LogReq) XXX_DiscardUnknown()
func (*LogReq) XXX_Marshal ¶
func (*LogReq) XXX_MessageName ¶
func (*LogReq) XXX_Unmarshal ¶
type ReadFileReq ¶
type ReadFileReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*ReadFileReq) Descriptor ¶
func (*ReadFileReq) Descriptor() ([]byte, []int)
func (*ReadFileReq) Marshal ¶
func (m *ReadFileReq) Marshal() (dAtA []byte, err error)
func (*ReadFileReq) ProtoMessage ¶
func (*ReadFileReq) ProtoMessage()
func (*ReadFileReq) Reset ¶
func (m *ReadFileReq) Reset()
func (*ReadFileReq) Size ¶
func (m *ReadFileReq) Size() (n int)
func (*ReadFileReq) String ¶
func (m *ReadFileReq) String() string
func (*ReadFileReq) Unmarshal ¶
func (m *ReadFileReq) Unmarshal(dAtA []byte) error
func (*ReadFileReq) XXX_DiscardUnknown ¶
func (m *ReadFileReq) XXX_DiscardUnknown()
func (*ReadFileReq) XXX_Marshal ¶
func (m *ReadFileReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadFileReq) XXX_Merge ¶
func (m *ReadFileReq) XXX_Merge(src proto.Message)
func (*ReadFileReq) XXX_MessageName ¶
func (*ReadFileReq) XXX_MessageName() string
func (*ReadFileReq) XXX_Size ¶
func (m *ReadFileReq) XXX_Size() int
func (*ReadFileReq) XXX_Unmarshal ¶
func (m *ReadFileReq) XXX_Unmarshal(b []byte) error
type ReadFileRes ¶
type ReadFileRes struct { XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*ReadFileRes) Descriptor ¶
func (*ReadFileRes) Descriptor() ([]byte, []int)
func (*ReadFileRes) Marshal ¶
func (m *ReadFileRes) Marshal() (dAtA []byte, err error)
func (*ReadFileRes) ProtoMessage ¶
func (*ReadFileRes) ProtoMessage()
func (*ReadFileRes) Reset ¶
func (m *ReadFileRes) Reset()
func (*ReadFileRes) Size ¶
func (m *ReadFileRes) Size() (n int)
func (*ReadFileRes) String ¶
func (m *ReadFileRes) String() string
func (*ReadFileRes) Unmarshal ¶
func (m *ReadFileRes) Unmarshal(dAtA []byte) error
func (*ReadFileRes) XXX_DiscardUnknown ¶
func (m *ReadFileRes) XXX_DiscardUnknown()
func (*ReadFileRes) XXX_Marshal ¶
func (m *ReadFileRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadFileRes) XXX_Merge ¶
func (m *ReadFileRes) XXX_Merge(src proto.Message)
func (*ReadFileRes) XXX_MessageName ¶
func (*ReadFileRes) XXX_MessageName() string
func (*ReadFileRes) XXX_Size ¶
func (m *ReadFileRes) XXX_Size() int
func (*ReadFileRes) XXX_Unmarshal ¶
func (m *ReadFileRes) XXX_Unmarshal(b []byte) error
type RequestReq ¶
type RequestReq struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*RequestReq) Descriptor ¶
func (*RequestReq) Descriptor() ([]byte, []int)
func (*RequestReq) GetBody ¶
func (m *RequestReq) GetBody() string
func (*RequestReq) GetMethod ¶
func (m *RequestReq) GetMethod() string
func (*RequestReq) GetUrl ¶
func (m *RequestReq) GetUrl() string
func (*RequestReq) Marshal ¶
func (m *RequestReq) Marshal() (dAtA []byte, err error)
func (*RequestReq) ProtoMessage ¶
func (*RequestReq) ProtoMessage()
func (*RequestReq) Reset ¶
func (m *RequestReq) Reset()
func (*RequestReq) Size ¶
func (m *RequestReq) Size() (n int)
func (*RequestReq) String ¶
func (m *RequestReq) String() string
func (*RequestReq) Unmarshal ¶
func (m *RequestReq) Unmarshal(dAtA []byte) error
func (*RequestReq) XXX_DiscardUnknown ¶
func (m *RequestReq) XXX_DiscardUnknown()
func (*RequestReq) XXX_Marshal ¶
func (m *RequestReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestReq) XXX_Merge ¶
func (m *RequestReq) XXX_Merge(src proto.Message)
func (*RequestReq) XXX_MessageName ¶
func (*RequestReq) XXX_MessageName() string
func (*RequestReq) XXX_Size ¶
func (m *RequestReq) XXX_Size() int
func (*RequestReq) XXX_Unmarshal ¶
func (m *RequestReq) XXX_Unmarshal(b []byte) error
type RequestRes ¶
type RequestRes struct { Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` StatusCode int32 `protobuf:"varint,2,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` Headers map[string]*StringArray `` /* 155-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*RequestRes) Descriptor ¶
func (*RequestRes) Descriptor() ([]byte, []int)
func (*RequestRes) GetBody ¶
func (m *RequestRes) GetBody() string
func (*RequestRes) GetHeaders ¶
func (m *RequestRes) GetHeaders() map[string]*StringArray
func (*RequestRes) GetStatusCode ¶
func (m *RequestRes) GetStatusCode() int32
func (*RequestRes) Marshal ¶
func (m *RequestRes) Marshal() (dAtA []byte, err error)
func (*RequestRes) ProtoMessage ¶
func (*RequestRes) ProtoMessage()
func (*RequestRes) Reset ¶
func (m *RequestRes) Reset()
func (*RequestRes) Size ¶
func (m *RequestRes) Size() (n int)
func (*RequestRes) String ¶
func (m *RequestRes) String() string
func (*RequestRes) Unmarshal ¶
func (m *RequestRes) Unmarshal(dAtA []byte) error
func (*RequestRes) XXX_DiscardUnknown ¶
func (m *RequestRes) XXX_DiscardUnknown()
func (*RequestRes) XXX_Marshal ¶
func (m *RequestRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestRes) XXX_Merge ¶
func (m *RequestRes) XXX_Merge(src proto.Message)
func (*RequestRes) XXX_MessageName ¶
func (*RequestRes) XXX_MessageName() string
func (*RequestRes) XXX_Size ¶
func (m *RequestRes) XXX_Size() int
func (*RequestRes) XXX_Unmarshal ¶
func (m *RequestRes) XXX_Unmarshal(b []byte) error
type StringArray ¶
type StringArray struct { Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*StringArray) Descriptor ¶
func (*StringArray) Descriptor() ([]byte, []int)
func (*StringArray) GetValues ¶
func (m *StringArray) GetValues() []string
func (*StringArray) Marshal ¶
func (m *StringArray) Marshal() (dAtA []byte, err error)
func (*StringArray) ProtoMessage ¶
func (*StringArray) ProtoMessage()
func (*StringArray) Reset ¶
func (m *StringArray) Reset()
func (*StringArray) Size ¶
func (m *StringArray) Size() (n int)
func (*StringArray) String ¶
func (m *StringArray) String() string
func (*StringArray) Unmarshal ¶
func (m *StringArray) Unmarshal(dAtA []byte) error
func (*StringArray) XXX_DiscardUnknown ¶
func (m *StringArray) XXX_DiscardUnknown()
func (*StringArray) XXX_Marshal ¶
func (m *StringArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StringArray) XXX_Merge ¶
func (m *StringArray) XXX_Merge(src proto.Message)
func (*StringArray) XXX_MessageName ¶
func (*StringArray) XXX_MessageName() string
func (*StringArray) XXX_Size ¶
func (m *StringArray) XXX_Size() int
func (*StringArray) XXX_Unmarshal ¶
func (m *StringArray) XXX_Unmarshal(b []byte) error
type URL ¶
type URL struct { Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"` Opaque string `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"` Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"` RawPath string `protobuf:"bytes,7,opt,name=raw_path,json=rawPath,proto3" json:"raw_path,omitempty"` RawQuery string `protobuf:"bytes,8,opt,name=raw_query,json=rawQuery,proto3" json:"raw_query,omitempty"` Fragment string `protobuf:"bytes,9,opt,name=fragment,proto3" json:"fragment,omitempty"` RawFragment string `protobuf:"bytes,10,opt,name=raw_fragment,json=rawFragment,proto3" json:"raw_fragment,omitempty"` ForceQuery bool `protobuf:"varint,11,opt,name=force_query,json=forceQuery,proto3" json:"force_query,omitempty"` PasswordSet bool `protobuf:"varint,12,opt,name=password_set,json=passwordSet,proto3" json:"password_set,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*URL) Descriptor ¶
func (*URL) GetForceQuery ¶
func (*URL) GetFragment ¶
func (*URL) GetPassword ¶
func (*URL) GetPasswordSet ¶
func (*URL) GetRawFragment ¶
func (*URL) GetRawPath ¶
func (*URL) GetRawQuery ¶
func (*URL) GetUsername ¶
func (*URL) ProtoMessage ¶
func (*URL) ProtoMessage()
func (*URL) XXX_DiscardUnknown ¶
func (m *URL) XXX_DiscardUnknown()
func (*URL) XXX_MessageName ¶
func (*URL) XXX_Unmarshal ¶
type WriteFileReq ¶
type WriteFileReq struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_unrecognized []byte `json:"-" yaml:"-" xml:"-" bson:"-"` XXX_sizecache int32 `json:"-" yaml:"-" xml:"-" bson:"-"` }
func (*WriteFileReq) Descriptor ¶
func (*WriteFileReq) Descriptor() ([]byte, []int)
func (*WriteFileReq) GetContent ¶
func (m *WriteFileReq) GetContent() []byte
func (*WriteFileReq) GetMode ¶
func (m *WriteFileReq) GetMode() string
func (*WriteFileReq) GetPath ¶
func (m *WriteFileReq) GetPath() string
func (*WriteFileReq) Marshal ¶
func (m *WriteFileReq) Marshal() (dAtA []byte, err error)
func (*WriteFileReq) ProtoMessage ¶
func (*WriteFileReq) ProtoMessage()
func (*WriteFileReq) Reset ¶
func (m *WriteFileReq) Reset()
func (*WriteFileReq) Size ¶
func (m *WriteFileReq) Size() (n int)
func (*WriteFileReq) String ¶
func (m *WriteFileReq) String() string
func (*WriteFileReq) Unmarshal ¶
func (m *WriteFileReq) Unmarshal(dAtA []byte) error
func (*WriteFileReq) XXX_DiscardUnknown ¶
func (m *WriteFileReq) XXX_DiscardUnknown()
func (*WriteFileReq) XXX_Marshal ¶
func (m *WriteFileReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WriteFileReq) XXX_Merge ¶
func (m *WriteFileReq) XXX_Merge(src proto.Message)
func (*WriteFileReq) XXX_MessageName ¶
func (*WriteFileReq) XXX_MessageName() string
func (*WriteFileReq) XXX_Size ¶
func (m *WriteFileReq) XXX_Size() int
func (*WriteFileReq) XXX_Unmarshal ¶
func (m *WriteFileReq) XXX_Unmarshal(b []byte) error