Documentation ¶
Index ¶
- Variables
- func NewMiddlewareEndpoints() []*api.Endpoint
- func RegisterMiddlewareHandler(s server.Server, hdlr MiddlewareHandler, opts ...server.HandlerOption) error
- type AllMiddleType
- type AllMiddleware
- type FindAll
- type FindAllByTypeId
- type MiddleConfig
- func (*MiddleConfig) Descriptor() ([]byte, []int)deprecated
- func (x *MiddleConfig) GetMiddleConfigDataBase() string
- func (x *MiddleConfig) GetMiddleConfigPwd() string
- func (x *MiddleConfig) GetMiddleConfigRootPwd() string
- func (x *MiddleConfig) GetMiddleConfigRootUser() string
- func (x *MiddleConfig) GetMiddleConfigUser() string
- func (x *MiddleConfig) GetMiddleId() int64
- func (*MiddleConfig) ProtoMessage()
- func (x *MiddleConfig) ProtoReflect() protoreflect.Message
- func (x *MiddleConfig) Reset()
- func (x *MiddleConfig) String() string
- type MiddleEnv
- func (*MiddleEnv) Descriptor() ([]byte, []int)deprecated
- func (x *MiddleEnv) GetEnvKey() string
- func (x *MiddleEnv) GetEnvValue() string
- func (x *MiddleEnv) GetMiddleId() int64
- func (*MiddleEnv) ProtoMessage()
- func (x *MiddleEnv) ProtoReflect() protoreflect.Message
- func (x *MiddleEnv) Reset()
- func (x *MiddleEnv) String() string
- type MiddlePort
- func (*MiddlePort) Descriptor() ([]byte, []int)deprecated
- func (x *MiddlePort) GetMiddleId() int64
- func (x *MiddlePort) GetMiddlePort() int32
- func (x *MiddlePort) GetMiddleProtocol() string
- func (*MiddlePort) ProtoMessage()
- func (x *MiddlePort) ProtoReflect() protoreflect.Message
- func (x *MiddlePort) Reset()
- func (x *MiddlePort) String() string
- type MiddleStorage
- func (*MiddleStorage) Descriptor() ([]byte, []int)deprecated
- func (x *MiddleStorage) GetMiddleId() int64
- func (x *MiddleStorage) GetMiddleStorageAccessMode() string
- func (x *MiddleStorage) GetMiddleStorageClass() string
- func (x *MiddleStorage) GetMiddleStorageName() string
- func (x *MiddleStorage) GetMiddleStoragePath() string
- func (x *MiddleStorage) GetMiddleStorageSize() float32
- func (*MiddleStorage) ProtoMessage()
- func (x *MiddleStorage) ProtoReflect() protoreflect.Message
- func (x *MiddleStorage) Reset()
- func (x *MiddleStorage) String() string
- type MiddleTypeId
- type MiddleTypeInfo
- func (*MiddleTypeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *MiddleTypeInfo) GetId() int64
- func (x *MiddleTypeInfo) GetMiddleTypeImageSrc() string
- func (x *MiddleTypeInfo) GetMiddleTypeName() string
- func (x *MiddleTypeInfo) GetMiddleVersion() []*MiddleVersion
- func (*MiddleTypeInfo) ProtoMessage()
- func (x *MiddleTypeInfo) ProtoReflect() protoreflect.Message
- func (x *MiddleTypeInfo) Reset()
- func (x *MiddleTypeInfo) String() string
- type MiddleVersion
- func (*MiddleVersion) Descriptor() ([]byte, []int)deprecated
- func (x *MiddleVersion) GetMiddleDockerImage() string
- func (x *MiddleVersion) GetMiddleTypeId() int64
- func (x *MiddleVersion) GetMiddleVs() string
- func (*MiddleVersion) ProtoMessage()
- func (x *MiddleVersion) ProtoReflect() protoreflect.Message
- func (x *MiddleVersion) Reset()
- func (x *MiddleVersion) String() string
- type MiddlewareHandler
- type MiddlewareId
- type MiddlewareInfo
- func (*MiddlewareInfo) Descriptor() ([]byte, []int)deprecated
- func (x *MiddlewareInfo) GetId() int64
- func (x *MiddlewareInfo) GetMiddleConfig() *MiddleConfig
- func (x *MiddlewareInfo) GetMiddleCpu() float32
- func (x *MiddlewareInfo) GetMiddleDockerImageVersion() string
- func (x *MiddlewareInfo) GetMiddleEnv() []*MiddleEnv
- func (x *MiddlewareInfo) GetMiddleMemory() float32
- func (x *MiddlewareInfo) GetMiddleName() string
- func (x *MiddlewareInfo) GetMiddleNamespace() string
- func (x *MiddlewareInfo) GetMiddlePort() []*MiddlePort
- func (x *MiddlewareInfo) GetMiddleReplicas() int32
- func (x *MiddlewareInfo) GetMiddleStorage() []*MiddleStorage
- func (x *MiddlewareInfo) GetMiddleTypeId() int64
- func (x *MiddlewareInfo) GetMiddleVersionId() int64
- func (*MiddlewareInfo) ProtoMessage()
- func (x *MiddlewareInfo) ProtoReflect() protoreflect.Message
- func (x *MiddlewareInfo) Reset()
- func (x *MiddlewareInfo) String() string
- type MiddlewareService
- type Response
Constants ¶
This section is empty.
Variables ¶
var File_proto_middleware_middleware_proto protoreflect.FileDescriptor
Functions ¶
func NewMiddlewareEndpoints ¶
func RegisterMiddlewareHandler ¶
func RegisterMiddlewareHandler(s server.Server, hdlr MiddlewareHandler, opts ...server.HandlerOption) error
Types ¶
type AllMiddleType ¶
type AllMiddleType struct { MiddleTypeInfo []*MiddleTypeInfo `protobuf:"bytes,1,rep,name=middle_type_info,json=middleTypeInfo,proto3" json:"middle_type_info,omitempty"` // contains filtered or unexported fields }
func (*AllMiddleType) Descriptor
deprecated
func (*AllMiddleType) Descriptor() ([]byte, []int)
Deprecated: Use AllMiddleType.ProtoReflect.Descriptor instead.
func (*AllMiddleType) GetMiddleTypeInfo ¶
func (x *AllMiddleType) GetMiddleTypeInfo() []*MiddleTypeInfo
func (*AllMiddleType) ProtoMessage ¶
func (*AllMiddleType) ProtoMessage()
func (*AllMiddleType) ProtoReflect ¶
func (x *AllMiddleType) ProtoReflect() protoreflect.Message
func (*AllMiddleType) Reset ¶
func (x *AllMiddleType) Reset()
func (*AllMiddleType) String ¶
func (x *AllMiddleType) String() string
type AllMiddleware ¶
type AllMiddleware struct { MiddlewareInfo []*MiddlewareInfo `protobuf:"bytes,1,rep,name=middleware_info,json=middlewareInfo,proto3" json:"middleware_info,omitempty"` // contains filtered or unexported fields }
func (*AllMiddleware) Descriptor
deprecated
func (*AllMiddleware) Descriptor() ([]byte, []int)
Deprecated: Use AllMiddleware.ProtoReflect.Descriptor instead.
func (*AllMiddleware) GetMiddlewareInfo ¶
func (x *AllMiddleware) GetMiddlewareInfo() []*MiddlewareInfo
func (*AllMiddleware) ProtoMessage ¶
func (*AllMiddleware) ProtoMessage()
func (*AllMiddleware) ProtoReflect ¶
func (x *AllMiddleware) ProtoReflect() protoreflect.Message
func (*AllMiddleware) Reset ¶
func (x *AllMiddleware) Reset()
func (*AllMiddleware) String ¶
func (x *AllMiddleware) String() string
type FindAll ¶
type FindAll struct {
// contains filtered or unexported fields
}
func (*FindAll) Descriptor
deprecated
func (*FindAll) ProtoMessage ¶
func (*FindAll) ProtoMessage()
func (*FindAll) ProtoReflect ¶
func (x *FindAll) ProtoReflect() protoreflect.Message
type FindAllByTypeId ¶
type FindAllByTypeId struct { TypeId int64 `protobuf:"varint,1,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"` // contains filtered or unexported fields }
func (*FindAllByTypeId) Descriptor
deprecated
func (*FindAllByTypeId) Descriptor() ([]byte, []int)
Deprecated: Use FindAllByTypeId.ProtoReflect.Descriptor instead.
func (*FindAllByTypeId) GetTypeId ¶
func (x *FindAllByTypeId) GetTypeId() int64
func (*FindAllByTypeId) ProtoMessage ¶
func (*FindAllByTypeId) ProtoMessage()
func (*FindAllByTypeId) ProtoReflect ¶
func (x *FindAllByTypeId) ProtoReflect() protoreflect.Message
func (*FindAllByTypeId) Reset ¶
func (x *FindAllByTypeId) Reset()
func (*FindAllByTypeId) String ¶
func (x *FindAllByTypeId) String() string
type MiddleConfig ¶
type MiddleConfig struct { MiddleId int64 `protobuf:"varint,1,opt,name=middle_id,json=middleId,proto3" json:"middle_id,omitempty"` MiddleConfigRootUser string `protobuf:"bytes,2,opt,name=middle_config_root_user,json=middleConfigRootUser,proto3" json:"middle_config_root_user,omitempty"` MiddleConfigRootPwd string `protobuf:"bytes,3,opt,name=middle_config_root_pwd,json=middleConfigRootPwd,proto3" json:"middle_config_root_pwd,omitempty"` MiddleConfigUser string `protobuf:"bytes,4,opt,name=middle_config_user,json=middleConfigUser,proto3" json:"middle_config_user,omitempty"` MiddleConfigPwd string `protobuf:"bytes,5,opt,name=middle_config_pwd,json=middleConfigPwd,proto3" json:"middle_config_pwd,omitempty"` MiddleConfigDataBase string `protobuf:"bytes,6,opt,name=middle_config_data_base,json=middleConfigDataBase,proto3" json:"middle_config_data_base,omitempty"` // contains filtered or unexported fields }
中间的配置
func (*MiddleConfig) Descriptor
deprecated
func (*MiddleConfig) Descriptor() ([]byte, []int)
Deprecated: Use MiddleConfig.ProtoReflect.Descriptor instead.
func (*MiddleConfig) GetMiddleConfigDataBase ¶
func (x *MiddleConfig) GetMiddleConfigDataBase() string
func (*MiddleConfig) GetMiddleConfigPwd ¶
func (x *MiddleConfig) GetMiddleConfigPwd() string
func (*MiddleConfig) GetMiddleConfigRootPwd ¶
func (x *MiddleConfig) GetMiddleConfigRootPwd() string
func (*MiddleConfig) GetMiddleConfigRootUser ¶
func (x *MiddleConfig) GetMiddleConfigRootUser() string
func (*MiddleConfig) GetMiddleConfigUser ¶
func (x *MiddleConfig) GetMiddleConfigUser() string
func (*MiddleConfig) GetMiddleId ¶
func (x *MiddleConfig) GetMiddleId() int64
func (*MiddleConfig) ProtoMessage ¶
func (*MiddleConfig) ProtoMessage()
func (*MiddleConfig) ProtoReflect ¶
func (x *MiddleConfig) ProtoReflect() protoreflect.Message
func (*MiddleConfig) Reset ¶
func (x *MiddleConfig) Reset()
func (*MiddleConfig) String ¶
func (x *MiddleConfig) String() string
type MiddleEnv ¶
type MiddleEnv struct { MiddleId int64 `protobuf:"varint,1,opt,name=middle_id,json=middleId,proto3" json:"middle_id,omitempty"` EnvKey string `protobuf:"bytes,2,opt,name=env_key,json=envKey,proto3" json:"env_key,omitempty"` EnvValue string `protobuf:"bytes,3,opt,name=env_value,json=envValue,proto3" json:"env_value,omitempty"` // contains filtered or unexported fields }
中间件环境变量
func (*MiddleEnv) Descriptor
deprecated
func (*MiddleEnv) GetEnvValue ¶
func (*MiddleEnv) GetMiddleId ¶
func (*MiddleEnv) ProtoMessage ¶
func (*MiddleEnv) ProtoMessage()
func (*MiddleEnv) ProtoReflect ¶
func (x *MiddleEnv) ProtoReflect() protoreflect.Message
type MiddlePort ¶
type MiddlePort struct { MiddleId int64 `protobuf:"varint,1,opt,name=middle_id,json=middleId,proto3" json:"middle_id,omitempty"` MiddlePort int32 `protobuf:"varint,2,opt,name=middle_port,json=middlePort,proto3" json:"middle_port,omitempty"` MiddleProtocol string `protobuf:"bytes,3,opt,name=middle_protocol,json=middleProtocol,proto3" json:"middle_protocol,omitempty"` // contains filtered or unexported fields }
中间件的端口
func (*MiddlePort) Descriptor
deprecated
func (*MiddlePort) Descriptor() ([]byte, []int)
Deprecated: Use MiddlePort.ProtoReflect.Descriptor instead.
func (*MiddlePort) GetMiddleId ¶
func (x *MiddlePort) GetMiddleId() int64
func (*MiddlePort) GetMiddlePort ¶
func (x *MiddlePort) GetMiddlePort() int32
func (*MiddlePort) GetMiddleProtocol ¶
func (x *MiddlePort) GetMiddleProtocol() string
func (*MiddlePort) ProtoMessage ¶
func (*MiddlePort) ProtoMessage()
func (*MiddlePort) ProtoReflect ¶
func (x *MiddlePort) ProtoReflect() protoreflect.Message
func (*MiddlePort) Reset ¶
func (x *MiddlePort) Reset()
func (*MiddlePort) String ¶
func (x *MiddlePort) String() string
type MiddleStorage ¶
type MiddleStorage struct { MiddleId int64 `protobuf:"varint,1,opt,name=middle_id,json=middleId,proto3" json:"middle_id,omitempty"` MiddleStorageName string `protobuf:"bytes,2,opt,name=middle_storage_name,json=middleStorageName,proto3" json:"middle_storage_name,omitempty"` MiddleStorageSize float32 `protobuf:"fixed32,3,opt,name=middle_storage_size,json=middleStorageSize,proto3" json:"middle_storage_size,omitempty"` MiddleStoragePath string `protobuf:"bytes,4,opt,name=middle_storage_path,json=middleStoragePath,proto3" json:"middle_storage_path,omitempty"` MiddleStorageClass string `protobuf:"bytes,5,opt,name=middle_storage_class,json=middleStorageClass,proto3" json:"middle_storage_class,omitempty"` MiddleStorageAccessMode string `` /* 134-byte string literal not displayed */ // contains filtered or unexported fields }
中间件存储
func (*MiddleStorage) Descriptor
deprecated
func (*MiddleStorage) Descriptor() ([]byte, []int)
Deprecated: Use MiddleStorage.ProtoReflect.Descriptor instead.
func (*MiddleStorage) GetMiddleId ¶
func (x *MiddleStorage) GetMiddleId() int64
func (*MiddleStorage) GetMiddleStorageAccessMode ¶
func (x *MiddleStorage) GetMiddleStorageAccessMode() string
func (*MiddleStorage) GetMiddleStorageClass ¶
func (x *MiddleStorage) GetMiddleStorageClass() string
func (*MiddleStorage) GetMiddleStorageName ¶
func (x *MiddleStorage) GetMiddleStorageName() string
func (*MiddleStorage) GetMiddleStoragePath ¶
func (x *MiddleStorage) GetMiddleStoragePath() string
func (*MiddleStorage) GetMiddleStorageSize ¶
func (x *MiddleStorage) GetMiddleStorageSize() float32
func (*MiddleStorage) ProtoMessage ¶
func (*MiddleStorage) ProtoMessage()
func (*MiddleStorage) ProtoReflect ¶
func (x *MiddleStorage) ProtoReflect() protoreflect.Message
func (*MiddleStorage) Reset ¶
func (x *MiddleStorage) Reset()
func (*MiddleStorage) String ¶
func (x *MiddleStorage) String() string
type MiddleTypeId ¶
type MiddleTypeId struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*MiddleTypeId) Descriptor
deprecated
func (*MiddleTypeId) Descriptor() ([]byte, []int)
Deprecated: Use MiddleTypeId.ProtoReflect.Descriptor instead.
func (*MiddleTypeId) GetId ¶
func (x *MiddleTypeId) GetId() int64
func (*MiddleTypeId) ProtoMessage ¶
func (*MiddleTypeId) ProtoMessage()
func (*MiddleTypeId) ProtoReflect ¶
func (x *MiddleTypeId) ProtoReflect() protoreflect.Message
func (*MiddleTypeId) Reset ¶
func (x *MiddleTypeId) Reset()
func (*MiddleTypeId) String ¶
func (x *MiddleTypeId) String() string
type MiddleTypeInfo ¶
type MiddleTypeInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` MiddleTypeName string `protobuf:"bytes,2,opt,name=middle_type_name,json=middleTypeName,proto3" json:"middle_type_name,omitempty"` MiddleTypeImageSrc string `protobuf:"bytes,3,opt,name=middle_type_image_src,json=middleTypeImageSrc,proto3" json:"middle_type_image_src,omitempty"` MiddleVersion []*MiddleVersion `protobuf:"bytes,4,rep,name=middle_version,json=middleVersion,proto3" json:"middle_version,omitempty"` // contains filtered or unexported fields }
func (*MiddleTypeInfo) Descriptor
deprecated
func (*MiddleTypeInfo) Descriptor() ([]byte, []int)
Deprecated: Use MiddleTypeInfo.ProtoReflect.Descriptor instead.
func (*MiddleTypeInfo) GetId ¶
func (x *MiddleTypeInfo) GetId() int64
func (*MiddleTypeInfo) GetMiddleTypeImageSrc ¶
func (x *MiddleTypeInfo) GetMiddleTypeImageSrc() string
func (*MiddleTypeInfo) GetMiddleTypeName ¶
func (x *MiddleTypeInfo) GetMiddleTypeName() string
func (*MiddleTypeInfo) GetMiddleVersion ¶
func (x *MiddleTypeInfo) GetMiddleVersion() []*MiddleVersion
func (*MiddleTypeInfo) ProtoMessage ¶
func (*MiddleTypeInfo) ProtoMessage()
func (*MiddleTypeInfo) ProtoReflect ¶
func (x *MiddleTypeInfo) ProtoReflect() protoreflect.Message
func (*MiddleTypeInfo) Reset ¶
func (x *MiddleTypeInfo) Reset()
func (*MiddleTypeInfo) String ¶
func (x *MiddleTypeInfo) String() string
type MiddleVersion ¶
type MiddleVersion struct { MiddleTypeId int64 `protobuf:"varint,1,opt,name=middle_type_id,json=middleTypeId,proto3" json:"middle_type_id,omitempty"` MiddleDockerImage string `protobuf:"bytes,2,opt,name=middle_docker_image,json=middleDockerImage,proto3" json:"middle_docker_image,omitempty"` MiddleVs string `protobuf:"bytes,3,opt,name=middle_vs,json=middleVs,proto3" json:"middle_vs,omitempty"` // contains filtered or unexported fields }
func (*MiddleVersion) Descriptor
deprecated
func (*MiddleVersion) Descriptor() ([]byte, []int)
Deprecated: Use MiddleVersion.ProtoReflect.Descriptor instead.
func (*MiddleVersion) GetMiddleDockerImage ¶
func (x *MiddleVersion) GetMiddleDockerImage() string
func (*MiddleVersion) GetMiddleTypeId ¶
func (x *MiddleVersion) GetMiddleTypeId() int64
func (*MiddleVersion) GetMiddleVs ¶
func (x *MiddleVersion) GetMiddleVs() string
func (*MiddleVersion) ProtoMessage ¶
func (*MiddleVersion) ProtoMessage()
func (*MiddleVersion) ProtoReflect ¶
func (x *MiddleVersion) ProtoReflect() protoreflect.Message
func (*MiddleVersion) Reset ¶
func (x *MiddleVersion) Reset()
func (*MiddleVersion) String ¶
func (x *MiddleVersion) String() string
type MiddlewareHandler ¶
type MiddlewareHandler interface { //对外提供添加服务 AddMiddleware(context.Context, *MiddlewareInfo, *Response) error DeleteMiddleware(context.Context, *MiddlewareId, *Response) error UpdateMiddleware(context.Context, *MiddlewareInfo, *Response) error FindMiddlewareByID(context.Context, *MiddlewareId, *MiddlewareInfo) error FindAllMiddleware(context.Context, *FindAll, *AllMiddleware) error //根据中间件的类型查找所有中间件 FindAllMiddlewareByTypeID(context.Context, *FindAllByTypeId, *AllMiddleware) error //获取中间件类型 FindMiddleTypeByID(context.Context, *MiddleTypeId, *MiddleTypeInfo) error AddMiddleType(context.Context, *MiddleTypeInfo, *Response) error DeleteMiddleTypeByID(context.Context, *MiddleTypeId, *Response) error UpdateMiddleType(context.Context, *MiddleTypeInfo, *Response) error FindAllMiddleType(context.Context, *FindAll, *AllMiddleType) error }
type MiddlewareId ¶
type MiddlewareId struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*MiddlewareId) Descriptor
deprecated
func (*MiddlewareId) Descriptor() ([]byte, []int)
Deprecated: Use MiddlewareId.ProtoReflect.Descriptor instead.
func (*MiddlewareId) GetId ¶
func (x *MiddlewareId) GetId() int64
func (*MiddlewareId) ProtoMessage ¶
func (*MiddlewareId) ProtoMessage()
func (*MiddlewareId) ProtoReflect ¶
func (x *MiddlewareId) ProtoReflect() protoreflect.Message
func (*MiddlewareId) Reset ¶
func (x *MiddlewareId) Reset()
func (*MiddlewareId) String ¶
func (x *MiddlewareId) String() string
type MiddlewareInfo ¶
type MiddlewareInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` MiddleName string `protobuf:"bytes,2,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"` MiddleNamespace string `protobuf:"bytes,3,opt,name=middle_namespace,json=middleNamespace,proto3" json:"middle_namespace,omitempty"` MiddleTypeId int64 `protobuf:"varint,4,opt,name=middle_type_id,json=middleTypeId,proto3" json:"middle_type_id,omitempty"` MiddleVersionId int64 `protobuf:"varint,5,opt,name=middle_version_id,json=middleVersionId,proto3" json:"middle_version_id,omitempty"` MiddlePort []*MiddlePort `protobuf:"bytes,6,rep,name=middle_port,json=middlePort,proto3" json:"middle_port,omitempty"` MiddleConfig *MiddleConfig `protobuf:"bytes,7,opt,name=middle_config,json=middleConfig,proto3" json:"middle_config,omitempty"` MiddleEnv []*MiddleEnv `protobuf:"bytes,8,rep,name=middle_env,json=middleEnv,proto3" json:"middle_env,omitempty"` MiddleCpu float32 `protobuf:"fixed32,9,opt,name=middle_cpu,json=middleCpu,proto3" json:"middle_cpu,omitempty"` MiddleMemory float32 `protobuf:"fixed32,10,opt,name=middle_memory,json=middleMemory,proto3" json:"middle_memory,omitempty"` MiddleStorage []*MiddleStorage `protobuf:"bytes,11,rep,name=middle_storage,json=middleStorage,proto3" json:"middle_storage,omitempty"` MiddleReplicas int32 `protobuf:"varint,12,opt,name=middle_replicas,json=middleReplicas,proto3" json:"middle_replicas,omitempty"` //添加需要的镜像版本 MiddleDockerImageVersion string `` /* 138-byte string literal not displayed */ // contains filtered or unexported fields }
func (*MiddlewareInfo) Descriptor
deprecated
func (*MiddlewareInfo) Descriptor() ([]byte, []int)
Deprecated: Use MiddlewareInfo.ProtoReflect.Descriptor instead.
func (*MiddlewareInfo) GetId ¶
func (x *MiddlewareInfo) GetId() int64
func (*MiddlewareInfo) GetMiddleConfig ¶
func (x *MiddlewareInfo) GetMiddleConfig() *MiddleConfig
func (*MiddlewareInfo) GetMiddleCpu ¶
func (x *MiddlewareInfo) GetMiddleCpu() float32
func (*MiddlewareInfo) GetMiddleDockerImageVersion ¶
func (x *MiddlewareInfo) GetMiddleDockerImageVersion() string
func (*MiddlewareInfo) GetMiddleEnv ¶
func (x *MiddlewareInfo) GetMiddleEnv() []*MiddleEnv
func (*MiddlewareInfo) GetMiddleMemory ¶
func (x *MiddlewareInfo) GetMiddleMemory() float32
func (*MiddlewareInfo) GetMiddleName ¶
func (x *MiddlewareInfo) GetMiddleName() string
func (*MiddlewareInfo) GetMiddleNamespace ¶
func (x *MiddlewareInfo) GetMiddleNamespace() string
func (*MiddlewareInfo) GetMiddlePort ¶
func (x *MiddlewareInfo) GetMiddlePort() []*MiddlePort
func (*MiddlewareInfo) GetMiddleReplicas ¶
func (x *MiddlewareInfo) GetMiddleReplicas() int32
func (*MiddlewareInfo) GetMiddleStorage ¶
func (x *MiddlewareInfo) GetMiddleStorage() []*MiddleStorage
func (*MiddlewareInfo) GetMiddleTypeId ¶
func (x *MiddlewareInfo) GetMiddleTypeId() int64
func (*MiddlewareInfo) GetMiddleVersionId ¶
func (x *MiddlewareInfo) GetMiddleVersionId() int64
func (*MiddlewareInfo) ProtoMessage ¶
func (*MiddlewareInfo) ProtoMessage()
func (*MiddlewareInfo) ProtoReflect ¶
func (x *MiddlewareInfo) ProtoReflect() protoreflect.Message
func (*MiddlewareInfo) Reset ¶
func (x *MiddlewareInfo) Reset()
func (*MiddlewareInfo) String ¶
func (x *MiddlewareInfo) String() string
type MiddlewareService ¶
type MiddlewareService interface { //对外提供添加服务 AddMiddleware(ctx context.Context, in *MiddlewareInfo, opts ...client.CallOption) (*Response, error) DeleteMiddleware(ctx context.Context, in *MiddlewareId, opts ...client.CallOption) (*Response, error) UpdateMiddleware(ctx context.Context, in *MiddlewareInfo, opts ...client.CallOption) (*Response, error) FindMiddlewareByID(ctx context.Context, in *MiddlewareId, opts ...client.CallOption) (*MiddlewareInfo, error) FindAllMiddleware(ctx context.Context, in *FindAll, opts ...client.CallOption) (*AllMiddleware, error) //根据中间件的类型查找所有中间件 FindAllMiddlewareByTypeID(ctx context.Context, in *FindAllByTypeId, opts ...client.CallOption) (*AllMiddleware, error) //获取中间件类型 FindMiddleTypeByID(ctx context.Context, in *MiddleTypeId, opts ...client.CallOption) (*MiddleTypeInfo, error) AddMiddleType(ctx context.Context, in *MiddleTypeInfo, opts ...client.CallOption) (*Response, error) DeleteMiddleTypeByID(ctx context.Context, in *MiddleTypeId, opts ...client.CallOption) (*Response, error) UpdateMiddleType(ctx context.Context, in *MiddleTypeInfo, opts ...client.CallOption) (*Response, error) FindAllMiddleType(ctx context.Context, in *FindAll, opts ...client.CallOption) (*AllMiddleType, error) }
func NewMiddlewareService ¶
func NewMiddlewareService(name string, c client.Client) MiddlewareService
type Response ¶
type Response struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message