Documentation ¶
Index ¶
- Variables
- func RegisterHttpManagerServer(s grpc.ServiceRegistrar, srv HttpManagerServer)
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetAddr() string
- func (x *Device) GetDescription() string
- func (x *Device) GetMac() string
- func (x *Device) GetRunId() string
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type DeviceList
- type HTTPConfig
- func (*HTTPConfig) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPConfig) GetDescription() string
- func (x *HTTPConfig) GetDomain() string
- func (x *HTTPConfig) GetIfHttps() bool
- func (x *HTTPConfig) GetPassword() string
- func (x *HTTPConfig) GetRemoteIP() string
- func (x *HTTPConfig) GetRemotePort() int32
- func (x *HTTPConfig) GetRemotePortStatus() bool
- func (x *HTTPConfig) GetRunId() string
- func (x *HTTPConfig) GetUserName() string
- func (*HTTPConfig) ProtoMessage()
- func (x *HTTPConfig) ProtoReflect() protoreflect.Message
- func (x *HTTPConfig) Reset()
- func (x *HTTPConfig) String() string
- type HTTPList
- type HttpManagerClient
- type HttpManagerServer
- type ServerGoEmpty
- type ServerGoResponseMessage
- func (*ServerGoResponseMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ServerGoResponseMessage) GetCode() string
- func (x *ServerGoResponseMessage) GetMessage() string
- func (*ServerGoResponseMessage) ProtoMessage()
- func (x *ServerGoResponseMessage) ProtoReflect() protoreflect.Message
- func (x *ServerGoResponseMessage) Reset()
- func (x *ServerGoResponseMessage) String() string
- type ServerGoStringValue
- func (*ServerGoStringValue) Descriptor() ([]byte, []int)deprecated
- func (x *ServerGoStringValue) GetValue() string
- func (*ServerGoStringValue) ProtoMessage()
- func (x *ServerGoStringValue) ProtoReflect() protoreflect.Message
- func (x *ServerGoStringValue) Reset()
- func (x *ServerGoStringValue) String() string
- type UnimplementedHttpManagerServer
- func (UnimplementedHttpManagerServer) CreateOneHTTP(context.Context, *HTTPConfig) (*HTTPConfig, error)
- func (UnimplementedHttpManagerServer) DeleteOneHTTP(context.Context, *HTTPConfig) (*ServerGoEmpty, error)
- func (UnimplementedHttpManagerServer) GetAllHTTP(context.Context, *Device) (*HTTPList, error)
- func (UnimplementedHttpManagerServer) GetOneHTTP(context.Context, *HTTPConfig) (*HTTPConfig, error)
- func (UnimplementedHttpManagerServer) UpdateOneHTTP(context.Context, *HTTPConfig) (*HTTPConfig, error)
- type UnsafeHttpManagerServer
Constants ¶
This section is empty.
Variables ¶
var File_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterHttpManagerServer ¶
func RegisterHttpManagerServer(s grpc.ServiceRegistrar, srv HttpManagerServer)
Types ¶
type Device ¶
type Device struct { RunId string `protobuf:"bytes,1,opt,name=RunId,proto3" json:"RunId,omitempty"` Addr string `protobuf:"bytes,2,opt,name=Addr,proto3" json:"Addr,omitempty"` Mac string `protobuf:"bytes,3,opt,name=Mac,proto3" json:"Mac,omitempty"` Description string `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"` // contains filtered or unexported fields }
func (*Device) Descriptor
deprecated
func (*Device) GetDescription ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type DeviceList ¶
type DeviceList struct { Devices []*Device `protobuf:"bytes,1,rep,name=Devices,proto3" json:"Devices,omitempty"` // contains filtered or unexported fields }
func (*DeviceList) Descriptor
deprecated
func (*DeviceList) Descriptor() ([]byte, []int)
Deprecated: Use DeviceList.ProtoReflect.Descriptor instead.
func (*DeviceList) GetDevices ¶
func (x *DeviceList) GetDevices() []*Device
func (*DeviceList) ProtoMessage ¶
func (*DeviceList) ProtoMessage()
func (*DeviceList) ProtoReflect ¶
func (x *DeviceList) ProtoReflect() protoreflect.Message
func (*DeviceList) Reset ¶
func (x *DeviceList) Reset()
func (*DeviceList) String ¶
func (x *DeviceList) String() string
type HTTPConfig ¶
type HTTPConfig struct { RunId string `protobuf:"bytes,1,opt,name=RunId,proto3" json:"RunId,omitempty"` Domain string `protobuf:"bytes,2,opt,name=Domain,proto3" json:"Domain,omitempty"` RemoteIP string `protobuf:"bytes,3,opt,name=RemoteIP,proto3" json:"RemoteIP,omitempty"` RemotePort int32 `protobuf:"varint,4,opt,name=RemotePort,proto3" json:"RemotePort,omitempty"` UserName string `protobuf:"bytes,5,opt,name=UserName,proto3" json:"UserName,omitempty"` Password string `protobuf:"bytes,6,opt,name=Password,proto3" json:"Password,omitempty"` IfHttps bool `protobuf:"varint,7,opt,name=IfHttps,proto3" json:"IfHttps,omitempty"` Description string `protobuf:"bytes,8,opt,name=Description,proto3" json:"Description,omitempty"` RemotePortStatus bool `protobuf:"varint,9,opt,name=RemotePortStatus,proto3" json:"RemotePortStatus,omitempty"` // contains filtered or unexported fields }
func (*HTTPConfig) Descriptor
deprecated
func (*HTTPConfig) Descriptor() ([]byte, []int)
Deprecated: Use HTTPConfig.ProtoReflect.Descriptor instead.
func (*HTTPConfig) GetDescription ¶
func (x *HTTPConfig) GetDescription() string
func (*HTTPConfig) GetDomain ¶
func (x *HTTPConfig) GetDomain() string
func (*HTTPConfig) GetIfHttps ¶
func (x *HTTPConfig) GetIfHttps() bool
func (*HTTPConfig) GetPassword ¶
func (x *HTTPConfig) GetPassword() string
func (*HTTPConfig) GetRemoteIP ¶
func (x *HTTPConfig) GetRemoteIP() string
func (*HTTPConfig) GetRemotePort ¶
func (x *HTTPConfig) GetRemotePort() int32
func (*HTTPConfig) GetRemotePortStatus ¶
func (x *HTTPConfig) GetRemotePortStatus() bool
func (*HTTPConfig) GetRunId ¶
func (x *HTTPConfig) GetRunId() string
func (*HTTPConfig) GetUserName ¶
func (x *HTTPConfig) GetUserName() string
func (*HTTPConfig) ProtoMessage ¶
func (*HTTPConfig) ProtoMessage()
func (*HTTPConfig) ProtoReflect ¶
func (x *HTTPConfig) ProtoReflect() protoreflect.Message
func (*HTTPConfig) Reset ¶
func (x *HTTPConfig) Reset()
func (*HTTPConfig) String ¶
func (x *HTTPConfig) String() string
type HTTPList ¶
type HTTPList struct { HTTPConfigs []*HTTPConfig `protobuf:"bytes,1,rep,name=HTTPConfigs,proto3" json:"HTTPConfigs,omitempty"` // contains filtered or unexported fields }
func (*HTTPList) Descriptor
deprecated
func (*HTTPList) GetHTTPConfigs ¶
func (x *HTTPList) GetHTTPConfigs() []*HTTPConfig
func (*HTTPList) ProtoMessage ¶
func (*HTTPList) ProtoMessage()
func (*HTTPList) ProtoReflect ¶
func (x *HTTPList) ProtoReflect() protoreflect.Message
type HttpManagerClient ¶
type HttpManagerClient interface { CreateOneHTTP(ctx context.Context, in *HTTPConfig, opts ...grpc.CallOption) (*HTTPConfig, error) UpdateOneHTTP(ctx context.Context, in *HTTPConfig, opts ...grpc.CallOption) (*HTTPConfig, error) DeleteOneHTTP(ctx context.Context, in *HTTPConfig, opts ...grpc.CallOption) (*ServerGoEmpty, error) GetOneHTTP(ctx context.Context, in *HTTPConfig, opts ...grpc.CallOption) (*HTTPConfig, error) GetAllHTTP(ctx context.Context, in *Device, opts ...grpc.CallOption) (*HTTPList, error) }
HttpManagerClient is the client API for HttpManager service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHttpManagerClient ¶
func NewHttpManagerClient(cc grpc.ClientConnInterface) HttpManagerClient
type HttpManagerServer ¶
type HttpManagerServer interface { CreateOneHTTP(context.Context, *HTTPConfig) (*HTTPConfig, error) UpdateOneHTTP(context.Context, *HTTPConfig) (*HTTPConfig, error) DeleteOneHTTP(context.Context, *HTTPConfig) (*ServerGoEmpty, error) GetOneHTTP(context.Context, *HTTPConfig) (*HTTPConfig, error) GetAllHTTP(context.Context, *Device) (*HTTPList, error) // contains filtered or unexported methods }
HttpManagerServer is the server API for HttpManager service. All implementations must embed UnimplementedHttpManagerServer for forward compatibility
type ServerGoEmpty ¶
type ServerGoEmpty struct {
// contains filtered or unexported fields
}
小米网关设备
func (*ServerGoEmpty) Descriptor
deprecated
func (*ServerGoEmpty) Descriptor() ([]byte, []int)
Deprecated: Use ServerGoEmpty.ProtoReflect.Descriptor instead.
func (*ServerGoEmpty) ProtoMessage ¶
func (*ServerGoEmpty) ProtoMessage()
func (*ServerGoEmpty) ProtoReflect ¶
func (x *ServerGoEmpty) ProtoReflect() protoreflect.Message
func (*ServerGoEmpty) Reset ¶
func (x *ServerGoEmpty) Reset()
func (*ServerGoEmpty) String ¶
func (x *ServerGoEmpty) String() string
type ServerGoResponseMessage ¶
type ServerGoResponseMessage struct { Code string `protobuf:"bytes,1,opt,name=Code,proto3" json:"Code,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*ServerGoResponseMessage) Descriptor
deprecated
func (*ServerGoResponseMessage) Descriptor() ([]byte, []int)
Deprecated: Use ServerGoResponseMessage.ProtoReflect.Descriptor instead.
func (*ServerGoResponseMessage) GetCode ¶
func (x *ServerGoResponseMessage) GetCode() string
func (*ServerGoResponseMessage) GetMessage ¶
func (x *ServerGoResponseMessage) GetMessage() string
func (*ServerGoResponseMessage) ProtoMessage ¶
func (*ServerGoResponseMessage) ProtoMessage()
func (*ServerGoResponseMessage) ProtoReflect ¶
func (x *ServerGoResponseMessage) ProtoReflect() protoreflect.Message
func (*ServerGoResponseMessage) Reset ¶
func (x *ServerGoResponseMessage) Reset()
func (*ServerGoResponseMessage) String ¶
func (x *ServerGoResponseMessage) String() string
type ServerGoStringValue ¶
type ServerGoStringValue struct { Value string `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*ServerGoStringValue) Descriptor
deprecated
func (*ServerGoStringValue) Descriptor() ([]byte, []int)
Deprecated: Use ServerGoStringValue.ProtoReflect.Descriptor instead.
func (*ServerGoStringValue) GetValue ¶
func (x *ServerGoStringValue) GetValue() string
func (*ServerGoStringValue) ProtoMessage ¶
func (*ServerGoStringValue) ProtoMessage()
func (*ServerGoStringValue) ProtoReflect ¶
func (x *ServerGoStringValue) ProtoReflect() protoreflect.Message
func (*ServerGoStringValue) Reset ¶
func (x *ServerGoStringValue) Reset()
func (*ServerGoStringValue) String ¶
func (x *ServerGoStringValue) String() string
type UnimplementedHttpManagerServer ¶
type UnimplementedHttpManagerServer struct { }
UnimplementedHttpManagerServer must be embedded to have forward compatible implementations.
func (UnimplementedHttpManagerServer) CreateOneHTTP ¶
func (UnimplementedHttpManagerServer) CreateOneHTTP(context.Context, *HTTPConfig) (*HTTPConfig, error)
func (UnimplementedHttpManagerServer) DeleteOneHTTP ¶
func (UnimplementedHttpManagerServer) DeleteOneHTTP(context.Context, *HTTPConfig) (*ServerGoEmpty, error)
func (UnimplementedHttpManagerServer) GetAllHTTP ¶
func (UnimplementedHttpManagerServer) GetOneHTTP ¶
func (UnimplementedHttpManagerServer) GetOneHTTP(context.Context, *HTTPConfig) (*HTTPConfig, error)
func (UnimplementedHttpManagerServer) UpdateOneHTTP ¶
func (UnimplementedHttpManagerServer) UpdateOneHTTP(context.Context, *HTTPConfig) (*HTTPConfig, error)
type UnsafeHttpManagerServer ¶
type UnsafeHttpManagerServer interface {
// contains filtered or unexported methods
}
UnsafeHttpManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HttpManagerServer will result in compilation errors.