Documentation ¶
Index ¶
- Constants
- Variables
- func CompressErrorJson(serviceResponceBase ServiceResponce, err *mft.Error) (body []byte)
- func GenerateError(key int, a ...interface{}) *mft.Error
- func GenerateErrorE(key int, err error, a ...interface{}) *mft.Error
- func GenerateErrorForClusterUser(user cn.CapUser, key int, a ...interface{}) *mft.Error
- func GenerateErrorForClusterUserE(user cn.CapUser, key int, err error, a ...interface{}) *mft.Error
- func GetUserName(user cn.CapUser) string
- func LoadClusterData(timeout time.Duration, storageGenerator *storage.Generator, mountName string, ...) (data []byte, err *mft.Error)
- func OnChangeFuncGenerate(timeout time.Duration, storageGenerator *storage.Generator, mountName string, ...) (f func(sc *SimpleCluster) (err *mft.Error), err *mft.Error)
- func SimppleQueueLoadGenerator(ctx context.Context, storageGenerator *storage.Generator, ...) (queue.Queue, *mft.Error)
- func UnmarshalInnerObjectAndFindHandler(ctx context.Context, cluster Cluster, request *RequestBody, v interface{}) (handler Handler, responce *ResponceBody, ok bool)
- type AdditionalCallFuncInClusterFunc
- type BlockDeleteHandler
- func (rsh *BlockDeleteHandler) GetName() string
- func (rsh *BlockDeleteHandler) IsStarted(ctx context.Context) (isStarted bool, err *mft.Error)
- func (rsh *BlockDeleteHandler) LastComplete(ctx context.Context) (time.Time, *mft.Error)
- func (rsh *BlockDeleteHandler) LastError(ctx context.Context) (err *mft.Error)
- func (rsh *BlockDeleteHandler) Start(ctx context.Context) (err *mft.Error)
- func (rsh *BlockDeleteHandler) Stop(ctx context.Context) (err *mft.Error)
- type BlockDeleteHandlerParams
- type BlockMarkHandler
- func (rsh *BlockMarkHandler) GetName() string
- func (rsh *BlockMarkHandler) IsStarted(ctx context.Context) (isStarted bool, err *mft.Error)
- func (rsh *BlockMarkHandler) LastComplete(ctx context.Context) (time.Time, *mft.Error)
- func (rsh *BlockMarkHandler) LastError(ctx context.Context) (err *mft.Error)
- func (rsh *BlockMarkHandler) Start(ctx context.Context) (err *mft.Error)
- func (rsh *BlockMarkHandler) Stop(ctx context.Context) (err *mft.Error)
- type BlockMarkHandlerParams
- type BlockUnloadHandler
- func (rsh *BlockUnloadHandler) GetName() string
- func (rsh *BlockUnloadHandler) IsStarted(ctx context.Context) (isStarted bool, err *mft.Error)
- func (rsh *BlockUnloadHandler) LastComplete(ctx context.Context) (time.Time, *mft.Error)
- func (rsh *BlockUnloadHandler) LastError(ctx context.Context) (err *mft.Error)
- func (rsh *BlockUnloadHandler) Start(ctx context.Context) (err *mft.Error)
- func (rsh *BlockUnloadHandler) Stop(ctx context.Context) (err *mft.Error)
- type BlockUnloadHandlerParams
- type CheckAuthFunc
- type CheckPermissionRequest
- type Cluster
- type ClusterService
- type CopyUniqueHandler
- func (rsh *CopyUniqueHandler) GetName() string
- func (rsh *CopyUniqueHandler) IsStarted(ctx context.Context) (isStarted bool, err *mft.Error)
- func (rsh *CopyUniqueHandler) LastComplete(ctx context.Context) (time.Time, *mft.Error)
- func (rsh *CopyUniqueHandler) LastError(ctx context.Context) (err *mft.Error)
- func (rsh *CopyUniqueHandler) Start(ctx context.Context) (err *mft.Error)
- func (rsh *CopyUniqueHandler) Stop(ctx context.Context) (err *mft.Error)
- type CopyUniqueHandlerParams
- type EcLoadGenerator
- type EcNewGenerator
- type EncryptData
- type ExternalAbstractCluster
- func (eac *ExternalAbstractCluster) AddExternalCluster(ctx context.Context, user cn.CapUser, clusterParams ExternalClusterDescription) (err *mft.Error)
- func (eac *ExternalAbstractCluster) AddHandler(ctx context.Context, user cn.CapUser, handlerParams HandlerDescription) (err *mft.Error)
- func (eac *ExternalAbstractCluster) AddQueue(ctx context.Context, user cn.CapUser, queueDescription QueueDescription) (err *mft.Error)
- func (eac *ExternalAbstractCluster) Call(request *RequestBody) (responce *ResponceBody)
- func (eac *ExternalAbstractCluster) CheckPermission(ctx context.Context, user cn.CapUser, objectType string, action string, ...) (allowed bool, err *mft.Error)
- func (eac *ExternalAbstractCluster) DropExternalCluster(ctx context.Context, user cn.CapUser, name string) (err *mft.Error)
- func (eac *ExternalAbstractCluster) DropHandler(ctx context.Context, user cn.CapUser, name string) (err *mft.Error)
- func (eac *ExternalAbstractCluster) DropQueue(ctx context.Context, user cn.CapUser, name string) (err *mft.Error)
- func (eac *ExternalAbstractCluster) GetExternalCluster(ctx context.Context, user cn.CapUser, name string) (cluster Cluster, exists bool, err *mft.Error)
- func (eac *ExternalAbstractCluster) GetExternalClusterDescription(ctx context.Context, user cn.CapUser, name string) (clusterParams ExternalClusterDescription, err *mft.Error)
- func (eac *ExternalAbstractCluster) GetExternalClustersList(ctx context.Context, user cn.CapUser) (names []string, err *mft.Error)
- func (eac *ExternalAbstractCluster) GetFullStruct(ctx context.Context, user cn.CapUser) (data json.RawMessage, err *mft.Error)
- func (eac *ExternalAbstractCluster) GetHandler(ctx context.Context, user cn.CapUser, name string) (handler Handler, exists bool, err *mft.Error)
- func (eac *ExternalAbstractCluster) GetHandlerDescription(ctx context.Context, user cn.CapUser, name string) (handlerParams HandlerDescription, err *mft.Error)
- func (eac *ExternalAbstractCluster) GetHandlersList(ctx context.Context, user cn.CapUser) (names []string, err *mft.Error)
- func (eac *ExternalAbstractCluster) GetName(ctx context.Context, user cn.CapUser) (name string, err *mft.Error)
- func (eac *ExternalAbstractCluster) GetNextId(ctx context.Context, user cn.CapUser) (id int64, err *mft.Error)
- func (eac *ExternalAbstractCluster) GetNextIds(ctx context.Context, user cn.CapUser, cnt int) (ids []int64, err *mft.Error)
- func (eac *ExternalAbstractCluster) GetQueue(ctx context.Context, user cn.CapUser, name string) (queue queue.Queue, exists bool, err *mft.Error)
- func (eac *ExternalAbstractCluster) GetQueueDescription(ctx context.Context, user cn.CapUser, name string) (queueDescription QueueDescription, err *mft.Error)
- func (eac *ExternalAbstractCluster) GetQueuesList(ctx context.Context, user cn.CapUser) (names []string, err *mft.Error)
- func (eac *ExternalAbstractCluster) GetValueInternal(string) (string, bool)
- func (eac *ExternalAbstractCluster) LoadFullStruct(ctx context.Context, user cn.CapUser, data json.RawMessage) (err *mft.Error)
- func (eac *ExternalAbstractCluster) OnChange() (err *mft.Error)
- func (eac *ExternalAbstractCluster) Ping(ctx context.Context, user cn.CapUser) (err *mft.Error)
- func (eac *ExternalAbstractCluster) SetName(ctx context.Context, user cn.CapUser, name string) (err *mft.Error)
- func (eac *ExternalAbstractCluster) SetValueInternal(string, string) (err *mft.Error)
- func (eac *ExternalAbstractCluster) ThrowError(err *mft.Error) bool
- type ExternalAbstractHandler
- func (eah *ExternalAbstractHandler) IsStarted(ctx context.Context) (isStarted bool, err *mft.Error)
- func (eah *ExternalAbstractHandler) LastComplete(ctx context.Context) (lastComplete time.Time, err *mft.Error)
- func (eah *ExternalAbstractHandler) LastError(ctx context.Context) (err *mft.Error)
- func (eah *ExternalAbstractHandler) MarshalRequestMust(action string, v interface{}) *RequestBody
- func (eah *ExternalAbstractHandler) Start(ctx context.Context) (err *mft.Error)
- func (eah *ExternalAbstractHandler) Stop(ctx context.Context) (err *mft.Error)
- type ExternalAbstractQueue
- func (eac *ExternalAbstractQueue) Add(ctx context.Context, user cn.CapUser, message []byte, externalID int64, ...) (id int64, err *mft.Error)
- func (eac *ExternalAbstractQueue) AddList(ctx context.Context, user cn.CapUser, messages []queue.Message, ...) (ids []int64, err *mft.Error)
- func (eac *ExternalAbstractQueue) AddUnique(ctx context.Context, user cn.CapUser, message []byte, externalID int64, ...) (id int64, err *mft.Error)
- func (eac *ExternalAbstractQueue) AddUniqueList(ctx context.Context, user cn.CapUser, messages []queue.Message, ...) (ids []int64, err *mft.Error)
- func (eac *ExternalAbstractQueue) Get(ctx context.Context, user cn.CapUser, idStart int64, cntLimit int) (messages []*queue.MessageWithMeta, err *mft.Error)
- func (eac *ExternalAbstractQueue) GetSegment(ctx context.Context, user cn.CapUser, idStart int64, cntLimit int, ...) (messages []*queue.MessageWithMeta, lastId int64, err *mft.Error)
- func (eac *ExternalAbstractQueue) MarshalRequestMust(user cn.CapUser, action string, v interface{}) *RequestBody
- func (eac *ExternalAbstractQueue) SaveAll(ctx context.Context, user cn.CapUser) (err *mft.Error)
- func (eac *ExternalAbstractQueue) SubscriberAddReplicaMember(ctx context.Context, user cn.CapUser, subscriber string) (err *mft.Error)
- func (eac *ExternalAbstractQueue) SubscriberGetLastRead(ctx context.Context, user cn.CapUser, subscriber string) (id int64, err *mft.Error)
- func (eac *ExternalAbstractQueue) SubscriberGetReplicaCount(ctx context.Context, user cn.CapUser, id int64) (cnt int, err *mft.Error)
- func (eac *ExternalAbstractQueue) SubscriberRemoveReplicaMember(ctx context.Context, user cn.CapUser, subscriber string) (err *mft.Error)
- func (eac *ExternalAbstractQueue) SubscriberSetLastRead(ctx context.Context, user cn.CapUser, subscriber string, id int64, ...) (err *mft.Error)
- type ExternalClusterDescription
- type ExternalClusterGenerator
- type ExternalClusterLoadDescription
- type HLoadGenerator
- type HNewGenerator
- type Handler
- func BlockDeleteLoadGenerator(ctx context.Context, cluster Cluster, hDescription *HandlerLoadDescription, ...) (Handler, *mft.Error)
- func BlockMarkLoadGenerator(ctx context.Context, cluster Cluster, hDescription *HandlerLoadDescription, ...) (Handler, *mft.Error)
- func BlockUnloadLoadGenerator(ctx context.Context, cluster Cluster, hDescription *HandlerLoadDescription, ...) (Handler, *mft.Error)
- func CopyUniqueLoadGenerator(ctx context.Context, cluster Cluster, hDescription *HandlerLoadDescription, ...) (Handler, *mft.Error)
- func RegularlySaveLoadGenerator(ctx context.Context, cluster Cluster, hDescription *HandlerLoadDescription, ...) (Handler, *mft.Error)
- type HandlerDescription
- type HandlerGenerator
- type HandlerLoadDescription
- func BlockDeleteNewGenerator(ctx context.Context, cluster Cluster, hDescription HandlerDescription, ...) (*HandlerLoadDescription, *mft.Error)
- func BlockMarkNewGenerator(ctx context.Context, cluster Cluster, hDescription HandlerDescription, ...) (*HandlerLoadDescription, *mft.Error)
- func BlockUnloadNewGenerator(ctx context.Context, cluster Cluster, hDescription HandlerDescription, ...) (*HandlerLoadDescription, *mft.Error)
- func CopyUniqueNewGenerator(ctx context.Context, cluster Cluster, hDescription HandlerDescription, ...) (*HandlerLoadDescription, *mft.Error)
- func RegularlySaveNewGenerator(ctx context.Context, cluster Cluster, hDescription HandlerDescription, ...) (*HandlerLoadDescription, *mft.Error)
- type MarkCondition
- type MarshalFunc
- type QueueAddListRequest
- type QueueAddRequest
- type QueueDescription
- type QueueGenerator
- type QueueGetRequest
- type QueueGetSegmentRequest
- type QueueGetSegmentResponce
- type QueueLoadDescription
- type QueueSubscriberSetLastReadRequest
- type RegularlySaveHandler
- func (rsh *RegularlySaveHandler) GetName() string
- func (rsh *RegularlySaveHandler) IsStarted(ctx context.Context) (isStarted bool, err *mft.Error)
- func (rsh *RegularlySaveHandler) LastComplete(ctx context.Context) (time.Time, *mft.Error)
- func (rsh *RegularlySaveHandler) LastError(ctx context.Context) (err *mft.Error)
- func (rsh *RegularlySaveHandler) Start(ctx context.Context) (err *mft.Error)
- func (rsh *RegularlySaveHandler) Stop(ctx context.Context) (err *mft.Error)
- type RegularlySaveHandlerParams
- type RequestBody
- type ResponceBody
- func CallFuncInCluster(ctx context.Context, cluster Cluster, request *RequestBody, ...) (responce *ResponceBody)
- func CheckAuthFuncEmpty(ctx context.Context, serviceRequest *ServiceRequest) (ok bool, failResponce ResponceBody)
- func MarshalResponceMust(v interface{}, err *mft.Error) *ResponceBody
- func UnmarshalInnerObjectAndFindQueue(ctx context.Context, cluster Cluster, request *RequestBody, v interface{}) (queue queue.Queue, responce *ResponceBody, ok bool)
- type ServiceRequest
- type ServiceResponce
- type SimpleCluster
- func (sc *SimpleCluster) AddExternalCluster(ctx context.Context, user cn.CapUser, clusterParams ExternalClusterDescription) (err *mft.Error)
- func (sc *SimpleCluster) AddHandler(ctx context.Context, user cn.CapUser, handlerParams HandlerDescription) (err *mft.Error)
- func (sc *SimpleCluster) AddQueue(ctx context.Context, user cn.CapUser, queueDescription QueueDescription) (err *mft.Error)
- func (sc *SimpleCluster) CheckPermission(ctx context.Context, user cn.CapUser, objectType string, action string, ...) (allowed bool, err *mft.Error)
- func (sc *SimpleCluster) DropExternalCluster(ctx context.Context, user cn.CapUser, name string) (err *mft.Error)
- func (sc *SimpleCluster) DropHandler(ctx context.Context, user cn.CapUser, name string) (err *mft.Error)
- func (sc *SimpleCluster) DropQueue(ctx context.Context, user cn.CapUser, name string) (err *mft.Error)
- func (sc *SimpleCluster) GetExternalCluster(ctx context.Context, user cn.CapUser, name string) (cluster Cluster, exists bool, err *mft.Error)
- func (sc *SimpleCluster) GetExternalClusterDescription(ctx context.Context, user cn.CapUser, name string) (clusterParams ExternalClusterDescription, err *mft.Error)
- func (sc *SimpleCluster) GetExternalClustersList(ctx context.Context, user cn.CapUser) (names []string, err *mft.Error)
- func (sc *SimpleCluster) GetFullStruct(ctx context.Context, user cn.CapUser) (data json.RawMessage, err *mft.Error)
- func (sc *SimpleCluster) GetFullStructRaw() (data json.RawMessage, err *mft.Error)
- func (sc *SimpleCluster) GetHandler(ctx context.Context, user cn.CapUser, name string) (handler Handler, exists bool, err *mft.Error)
- func (sc *SimpleCluster) GetHandlerDescription(ctx context.Context, user cn.CapUser, name string) (handlerParams HandlerDescription, err *mft.Error)
- func (sc *SimpleCluster) GetHandlersList(ctx context.Context, user cn.CapUser) (names []string, err *mft.Error)
- func (sc *SimpleCluster) GetName(ctx context.Context, user cn.CapUser) (name string, err *mft.Error)
- func (sc *SimpleCluster) GetNextId(ctx context.Context, user cn.CapUser) (id int64, err *mft.Error)
- func (sc *SimpleCluster) GetNextIds(ctx context.Context, user cn.CapUser, cnt int) (ids []int64, err *mft.Error)
- func (sc *SimpleCluster) GetQueue(ctx context.Context, user cn.CapUser, name string) (queue queue.Queue, exists bool, err *mft.Error)
- func (sc *SimpleCluster) GetQueueDescription(ctx context.Context, user cn.CapUser, name string) (queueDescription QueueDescription, err *mft.Error)
- func (sc *SimpleCluster) GetQueuesList(ctx context.Context, user cn.CapUser) (names []string, err *mft.Error)
- func (sc *SimpleCluster) GetValueInternal(name string) (value string, ok bool)
- func (sc *SimpleCluster) LoadFullStruct(ctx context.Context, user cn.CapUser, data json.RawMessage) (err *mft.Error)
- func (sc *SimpleCluster) LoadFullStructRaw(data json.RawMessage) (err *mft.Error)
- func (sc *SimpleCluster) OnChange() (err *mft.Error)
- func (sc *SimpleCluster) Ping(ctx context.Context, user cn.CapUser) (err *mft.Error)
- func (sc *SimpleCluster) SetName(ctx context.Context, user cn.CapUser, name string) (err *mft.Error)
- func (sc *SimpleCluster) SetValueInternal(name string, value string) (err *mft.Error)
- func (sc *SimpleCluster) ThrowError(err *mft.Error) bool
- type SimpleQueueParams
- type UnmarshalFunc
Constants ¶
const ( RegularlySaveHandlerType = "regularly_save" CopyUniqueHandlerType = "copy_unique" BlockDeleteHandlerType = "block_delete" BlockUnloadHandlerType = "block_unload" BlockMarkHandlerType = "block_mark" )
const (
ClusterFileName = "cluster.json"
)
const (
CtxStopTimeName = "ctx_stop_time"
)
const HtmlCodeInternalError = 500
const HtmlCodeOk = 200
const SimpleClusterObjectCreateDuration = time.Second * 10
Variables ¶
var ClusterNameSplitter = "/"
var DefaultEcLoadGenerator map[string]EcLoadGenerator
var DefaultEcNewGenerator map[string]EcNewGenerator
var Errors map[int]string = map[int]string{}/* 159 elements not displayed */
Errors codes and description
var SimpleQueueType = "simple_queue"
SimpleQueueType - simple queue type
Functions ¶
func CompressErrorJson ¶
func CompressErrorJson(serviceResponceBase ServiceResponce, err *mft.Error) (body []byte)
func GenerateErrorE ¶
GenerateErrorE -
func GenerateErrorForClusterUser ¶
GenerateError -
func GenerateErrorForClusterUserE ¶
GenerateError -
func GetUserName ¶
func LoadClusterData ¶
func OnChangeFuncGenerate ¶
func UnmarshalInnerObjectAndFindHandler ¶
func UnmarshalInnerObjectAndFindHandler(ctx context.Context, cluster Cluster, request *RequestBody, v interface{}) (handler Handler, responce *ResponceBody, ok bool)
Types ¶
type AdditionalCallFuncInClusterFunc ¶
type AdditionalCallFuncInClusterFunc func(ctx context.Context, cluster Cluster, request *RequestBody) (responce *ResponceBody, ok bool)
type BlockDeleteHandler ¶
type BlockDeleteHandler struct { Cluster Cluster QueueName string Interval time.Duration WaitMark time.Duration WaitDelete time.Duration UserName string HDescription *HandlerLoadDescription StorageTime time.Duration LimitDelete int // contains filtered or unexported fields }
func (*BlockDeleteHandler) GetName ¶
func (rsh *BlockDeleteHandler) GetName() string
func (*BlockDeleteHandler) LastComplete ¶
func (*BlockDeleteHandler) LastError ¶
func (rsh *BlockDeleteHandler) LastError(ctx context.Context) (err *mft.Error)
type BlockDeleteHandlerParams ¶
type BlockDeleteHandlerParams struct { // Interval - interval between call Interval time.Duration `json:"interval"` // WaitMark - wait to mark as deleted block timeout WaitMark time.Duration `json:"wait_mark"` // WaitDelete - wait to delete block timeout WaitDelete time.Duration `json:"wait_delete"` // StorageTime - time to storage data in queue. For example 3*24*time.Hour StorageTime time.Duration `json:"storage_time"` // Limit to delete block for one iteration LimitDelete int `json:"limit_delete"` }
func (BlockDeleteHandlerParams) ToJson ¶
func (hp BlockDeleteHandlerParams) ToJson() json.RawMessage
type BlockMarkHandler ¶
type BlockMarkHandler struct { Cluster Cluster QueueName string Interval time.Duration WaitMark time.Duration WaitUpdate time.Duration UserName string HDescription *HandlerLoadDescription Conditions []MarkCondition LimitUpdateBlocks int // contains filtered or unexported fields }
func (*BlockMarkHandler) GetName ¶
func (rsh *BlockMarkHandler) GetName() string
func (*BlockMarkHandler) LastComplete ¶
func (*BlockMarkHandler) LastError ¶
func (rsh *BlockMarkHandler) LastError(ctx context.Context) (err *mft.Error)
type BlockMarkHandlerParams ¶
type BlockMarkHandlerParams struct { // Interval - interval between call Interval time.Duration `json:"interval"` // WaitMark - wait set new mark for block timeout WaitMark time.Duration `json:"wait_mark"` // WaitUpdate - wait update mark (move block betweeen marks) timeout WaitUpdate time.Duration `json:"wait_update_mark"` // Conditions - list of condition to set mark Conditions []MarkCondition `json:"conditions"` // LimitUpdateBlocks - limit of updates block LimitUpdateBlocks int `json:"limit_update_block"` }
func (BlockMarkHandlerParams) ToJson ¶
func (hp BlockMarkHandlerParams) ToJson() json.RawMessage
type BlockUnloadHandler ¶
type BlockUnloadHandler struct { Cluster Cluster QueueName string Interval time.Duration Wait time.Duration UserName string HDescription *HandlerLoadDescription StorageMemoryTime time.Duration StorageLastLoadTime time.Duration // contains filtered or unexported fields }
func (*BlockUnloadHandler) GetName ¶
func (rsh *BlockUnloadHandler) GetName() string
func (*BlockUnloadHandler) LastComplete ¶
func (*BlockUnloadHandler) LastError ¶
func (rsh *BlockUnloadHandler) LastError(ctx context.Context) (err *mft.Error)
type BlockUnloadHandlerParams ¶
type BlockUnloadHandlerParams struct { // Interval - interval between call Interval time.Duration `json:"interval"` // Wait - wait save timeout Wait time.Duration `json:"wait"` // StorageMemoryTime - wait timeout to remove block from memory from create StorageMemoryTime time.Duration `json:"storage_memory_time"` // StorageLastLoadTime - wait tiomeou to remove block from last use StorageLastLoadTime time.Duration `json:"storage_last_load_time"` }
func (BlockUnloadHandlerParams) ToJson ¶
func (hp BlockUnloadHandlerParams) ToJson() json.RawMessage
type CheckAuthFunc ¶
type CheckAuthFunc func(ctx context.Context, serviceRequest *ServiceRequest) (ok bool, failResponce ResponceBody)
type CheckPermissionRequest ¶
type Cluster ¶
type Cluster interface { GetName(ctx context.Context, user cn.CapUser) (name string, err *mft.Error) SetName(ctx context.Context, user cn.CapUser, name string) (err *mft.Error) ThrowError(err *mft.Error) bool AddQueue(ctx context.Context, user cn.CapUser, queueDescription QueueDescription) (err *mft.Error) DropQueue(ctx context.Context, user cn.CapUser, name string) (err *mft.Error) GetQueueDescription(ctx context.Context, user cn.CapUser, name string) (queueDescription QueueDescription, err *mft.Error) GetQueuesList(ctx context.Context, user cn.CapUser) (names []string, err *mft.Error) GetQueue(ctx context.Context, user cn.CapUser, name string) (queue queue.Queue, exists bool, err *mft.Error) AddExternalCluster(ctx context.Context, user cn.CapUser, clusterParams ExternalClusterDescription) (err *mft.Error) DropExternalCluster(ctx context.Context, user cn.CapUser, name string) (err *mft.Error) GetExternalClusterDescription(ctx context.Context, user cn.CapUser, name string) (clusterParams ExternalClusterDescription, err *mft.Error) GetExternalClustersList(ctx context.Context, user cn.CapUser) (names []string, err *mft.Error) // GetExternalCluster - gets cluster. Use '/' for separate names. GetExternalCluster(ctx context.Context, user cn.CapUser, name string) (cluster Cluster, exists bool, err *mft.Error) AddHandler(ctx context.Context, user cn.CapUser, handlerParams HandlerDescription) (err *mft.Error) DropHandler(ctx context.Context, user cn.CapUser, name string) (err *mft.Error) GetHandlerDescription(ctx context.Context, user cn.CapUser, name string) (handlerParams HandlerDescription, err *mft.Error) GetHandlersList(ctx context.Context, user cn.CapUser) (names []string, err *mft.Error) GetHandler(ctx context.Context, user cn.CapUser, name string) (handler Handler, exists bool, err *mft.Error) CheckPermission(ctx context.Context, user cn.CapUser, objectType string, action string, objectName string) (allowed bool, err *mft.Error) GetFullStruct(ctx context.Context, user cn.CapUser) (data json.RawMessage, err *mft.Error) LoadFullStruct(ctx context.Context, user cn.CapUser, data json.RawMessage) (err *mft.Error) SetValueInternal(string, string) (err *mft.Error) GetValueInternal(string) (string, bool) OnChange() (err *mft.Error) Ping(ctx context.Context, user cn.CapUser) (err *mft.Error) GetNextId(ctx context.Context, user cn.CapUser) (id int64, err *mft.Error) GetNextIds(ctx context.Context, user cn.CapUser, cnt int) (ids []int64, err *mft.Error) }
Cluster - cluser for queue
type ClusterService ¶
type ClusterService struct { Unmarshal UnmarshalFunc Marshal MarshalFunc CheckAuth CheckAuthFunc Cluster Cluster // ResponceDuration - Actual duration = ServiceRequest.WaitDuration - ResponceDuration ResponceDuration time.Duration }
func ClusterServiceJsonCreate ¶
func ClusterServiceJsonCreate(checkAuth CheckAuthFunc, cluster Cluster, compressor *compress.Generator) (sc *ClusterService)
type CopyUniqueHandler ¶
type CopyUniqueHandler struct { Cluster Cluster SrcQueueName string DstQueueName string Interval time.Duration ActiveInterval time.Duration Wait time.Duration UserName string HDescription *HandlerLoadDescription SaveModeSrc cn.SaveMode SaveModeDst cn.SaveMode SubscriberName string CntLimit int DoSaveDst bool Segments *segment.Segments // contains filtered or unexported fields }
func (*CopyUniqueHandler) GetName ¶
func (rsh *CopyUniqueHandler) GetName() string
func (*CopyUniqueHandler) LastComplete ¶
func (*CopyUniqueHandler) LastError ¶
func (rsh *CopyUniqueHandler) LastError(ctx context.Context) (err *mft.Error)
type CopyUniqueHandlerParams ¶
type CopyUniqueHandlerParams struct { // Interval - interval between call Interval time.Duration `json:"interval"` // Wait - wait save timeout Wait time.Duration `json:"wait"` SaveModeSrc cn.SaveMode `json:"src_save_mode"` SaveModeDst cn.SaveMode `json:"dst_save_mode"` SubscriberName string `json:"subscribe_name"` CntLimit int `json:"cnt_limit"` DoSaveDst bool `json:"do_save_dst"` Segments *segment.Segments `json:"segments"` }
func (CopyUniqueHandlerParams) ToJson ¶
func (hp CopyUniqueHandlerParams) ToJson() json.RawMessage
type EcLoadGenerator ¶
type EcNewGenerator ¶
type EcNewGenerator func( ctx context.Context, compressor *compress.Generator, ecDescription ExternalClusterDescription, idGenerator *mft.G, encryptData *EncryptData, ) (*ExternalClusterLoadDescription, *mft.Error)
type EncryptData ¶
type EncryptData struct { EncryptAlg string `json:"enc_alg"` EncryptKey []byte `json:"enc_key"` DecryptAlg string `json:"dec_alg"` DecryptKey []byte `json:"dec_key"` }
EncryptData - info for encrypt and decrypt data
type ExternalAbstractCluster ¶
type ExternalAbstractCluster struct { CallTimeout time.Duration CallFunc func(ctx context.Context, request *RequestBody) (responce *ResponceBody) // case nil then panic ThrowErrorFunc func(err *mft.Error) bool }
func (*ExternalAbstractCluster) AddExternalCluster ¶
func (eac *ExternalAbstractCluster) AddExternalCluster(ctx context.Context, user cn.CapUser, clusterParams ExternalClusterDescription) (err *mft.Error)
func (*ExternalAbstractCluster) AddHandler ¶
func (eac *ExternalAbstractCluster) AddHandler(ctx context.Context, user cn.CapUser, handlerParams HandlerDescription) (err *mft.Error)
func (*ExternalAbstractCluster) AddQueue ¶
func (eac *ExternalAbstractCluster) AddQueue(ctx context.Context, user cn.CapUser, queueDescription QueueDescription) (err *mft.Error)
func (*ExternalAbstractCluster) Call ¶
func (eac *ExternalAbstractCluster) Call(request *RequestBody) (responce *ResponceBody)
func (*ExternalAbstractCluster) CheckPermission ¶
func (*ExternalAbstractCluster) DropExternalCluster ¶
func (*ExternalAbstractCluster) DropHandler ¶
func (*ExternalAbstractCluster) GetExternalCluster ¶
func (*ExternalAbstractCluster) GetExternalClusterDescription ¶
func (eac *ExternalAbstractCluster) GetExternalClusterDescription(ctx context.Context, user cn.CapUser, name string) (clusterParams ExternalClusterDescription, err *mft.Error)
func (*ExternalAbstractCluster) GetExternalClustersList ¶
func (*ExternalAbstractCluster) GetFullStruct ¶
func (eac *ExternalAbstractCluster) GetFullStruct(ctx context.Context, user cn.CapUser) (data json.RawMessage, err *mft.Error)
func (*ExternalAbstractCluster) GetHandler ¶
func (*ExternalAbstractCluster) GetHandlerDescription ¶
func (eac *ExternalAbstractCluster) GetHandlerDescription(ctx context.Context, user cn.CapUser, name string) (handlerParams HandlerDescription, err *mft.Error)
func (*ExternalAbstractCluster) GetHandlersList ¶
func (*ExternalAbstractCluster) GetNextIds ¶
func (*ExternalAbstractCluster) GetQueueDescription ¶
func (eac *ExternalAbstractCluster) GetQueueDescription(ctx context.Context, user cn.CapUser, name string) (queueDescription QueueDescription, err *mft.Error)
func (*ExternalAbstractCluster) GetQueuesList ¶
func (*ExternalAbstractCluster) GetValueInternal ¶
func (eac *ExternalAbstractCluster) GetValueInternal(string) (string, bool)
func (*ExternalAbstractCluster) LoadFullStruct ¶
func (eac *ExternalAbstractCluster) LoadFullStruct(ctx context.Context, user cn.CapUser, data json.RawMessage) (err *mft.Error)
func (*ExternalAbstractCluster) OnChange ¶
func (eac *ExternalAbstractCluster) OnChange() (err *mft.Error)
func (*ExternalAbstractCluster) SetValueInternal ¶
func (eac *ExternalAbstractCluster) SetValueInternal(string, string) (err *mft.Error)
func (*ExternalAbstractCluster) ThrowError ¶
func (eac *ExternalAbstractCluster) ThrowError(err *mft.Error) bool
type ExternalAbstractHandler ¶
type ExternalAbstractHandler struct { HandlerName string User cn.CapUser CallFunc func(ctx context.Context, request *RequestBody) (responce *ResponceBody) }
func (*ExternalAbstractHandler) LastComplete ¶
func (*ExternalAbstractHandler) LastError ¶
func (eah *ExternalAbstractHandler) LastError(ctx context.Context) (err *mft.Error)
func (*ExternalAbstractHandler) MarshalRequestMust ¶
func (eah *ExternalAbstractHandler) MarshalRequestMust(action string, v interface{}) *RequestBody
type ExternalAbstractQueue ¶
type ExternalAbstractQueue struct { QueueName string User cn.CapUser CallFunc func(ctx context.Context, request *RequestBody) (responce *ResponceBody) }
func (*ExternalAbstractQueue) AddUniqueList ¶
func (*ExternalAbstractQueue) GetSegment ¶
func (*ExternalAbstractQueue) MarshalRequestMust ¶
func (eac *ExternalAbstractQueue) MarshalRequestMust(user cn.CapUser, action string, v interface{}) *RequestBody
func (*ExternalAbstractQueue) SubscriberAddReplicaMember ¶
func (*ExternalAbstractQueue) SubscriberGetLastRead ¶
func (*ExternalAbstractQueue) SubscriberGetReplicaCount ¶
func (*ExternalAbstractQueue) SubscriberRemoveReplicaMember ¶
type ExternalClusterDescription ¶
type ExternalClusterDescription struct { Name string `json:"name"` Type string `json:"type"` Params json.RawMessage `json:"params"` }
ExternalClusterDescription description of external cluster
type ExternalClusterGenerator ¶
type ExternalClusterGenerator struct {
// contains filtered or unexported fields
}
func ExternalClusterGeneratorCreate ¶
func ExternalClusterGeneratorCreate() *ExternalClusterGenerator
func (*ExternalClusterGenerator) AddGenerator ¶
func (ecg *ExternalClusterGenerator) AddGenerator( name string, ecNewGenerator EcNewGenerator, ecLoadGenerator EcLoadGenerator, )
func (*ExternalClusterGenerator) GetGenerator ¶
func (ecg *ExternalClusterGenerator) GetGenerator( name string) ( ecNewGenerator EcNewGenerator, ecLoadGenerator EcLoadGenerator, ok bool, )
type ExternalClusterLoadDescription ¶
type ExternalClusterLoadDescription struct { Name string `json:"name"` Type string `json:"type"` Params json.RawMessage `json:"params"` Cluster Cluster `json:"-"` }
ExternalClusterLoadDescription description of external cluster for load
func (*ExternalClusterLoadDescription) ExternalClusterDescription ¶
func (qld *ExternalClusterLoadDescription) ExternalClusterDescription() ExternalClusterDescription
type HLoadGenerator ¶
type HNewGenerator ¶
type HNewGenerator func( ctx context.Context, cluster Cluster, hDescription HandlerDescription, idGenerator *mft.G, ) (*HandlerLoadDescription, *mft.Error)
type Handler ¶
type Handler interface { Start(ctx context.Context) (err *mft.Error) Stop(ctx context.Context) (err *mft.Error) LastComplete(ctx context.Context) (lastComplete time.Time, err *mft.Error) LastError(ctx context.Context) (err *mft.Error) IsStarted(ctx context.Context) (isStarted bool, err *mft.Error) }
Handler - handler
func BlockMarkLoadGenerator ¶
func CopyUniqueLoadGenerator ¶
type HandlerDescription ¶
type HandlerDescription struct { Name string `json:"name"` UserName string `json:"user_name"` Type string `json:"type"` QueueNames []string `json:"queue_names"` Params json.RawMessage `json:"params"` }
HandlerDescription description of handler
type HandlerGenerator ¶
type HandlerGenerator struct {
// contains filtered or unexported fields
}
func HandlerGeneratorCreate ¶
func HandlerGeneratorCreate() *HandlerGenerator
func (*HandlerGenerator) AddGenerator ¶
func (ecg *HandlerGenerator) AddGenerator( name string, hNewGenerator HNewGenerator, hLoadGenerator HLoadGenerator, )
func (*HandlerGenerator) GetGenerator ¶
func (ecg *HandlerGenerator) GetGenerator( name string) ( hNewGenerator HNewGenerator, hLoadGenerator HLoadGenerator, ok bool, )
type HandlerLoadDescription ¶
type HandlerLoadDescription struct { Name string `json:"name"` UserName string `json:"user_name"` Type string `json:"type"` Params json.RawMessage `json:"params"` QueueNames []string `json:"queue_names"` Start bool `json:"start"` Handler Handler `json:"-"` }
HandlerLoadDescription description of handler for load
func BlockDeleteNewGenerator ¶
func BlockDeleteNewGenerator( ctx context.Context, cluster Cluster, hDescription HandlerDescription, idGenerator *mft.G, ) (*HandlerLoadDescription, *mft.Error)
func BlockMarkNewGenerator ¶
func BlockMarkNewGenerator( ctx context.Context, cluster Cluster, hDescription HandlerDescription, idGenerator *mft.G, ) (*HandlerLoadDescription, *mft.Error)
func BlockUnloadNewGenerator ¶
func BlockUnloadNewGenerator( ctx context.Context, cluster Cluster, hDescription HandlerDescription, idGenerator *mft.G, ) (*HandlerLoadDescription, *mft.Error)
func CopyUniqueNewGenerator ¶
func CopyUniqueNewGenerator( ctx context.Context, cluster Cluster, hDescription HandlerDescription, idGenerator *mft.G, ) (*HandlerLoadDescription, *mft.Error)
func RegularlySaveNewGenerator ¶
func RegularlySaveNewGenerator( ctx context.Context, cluster Cluster, hDescription HandlerDescription, idGenerator *mft.G, ) (*HandlerLoadDescription, *mft.Error)
func (*HandlerLoadDescription) HandlerDescription ¶
func (qld *HandlerLoadDescription) HandlerDescription() HandlerDescription
type MarkCondition ¶
type MarshalFunc ¶
type QueueAddListRequest ¶
type QueueAddRequest ¶
type QueueDescription ¶
type QueueDescription struct { Name string `json:"name"` Type string `json:"type"` CreateOnLoad bool `json:"create_on_load"` Owner string `json:"owner"` Params json.RawMessage `json:"params"` }
QueueDescription description of queue
func (QueueDescription) GetName ¶
func (qd QueueDescription) GetName() string
type QueueGenerator ¶
type QueueGenerator struct {
// contains filtered or unexported fields
}
QueueGenerator - queue generator
func QueueGeneratorCreate ¶
func QueueGeneratorCreate() *QueueGenerator
func (*QueueGenerator) AddGenerator ¶
func (qg *QueueGenerator) AddGenerator( name string, qNewGenerator func(ctx context.Context, storageGenerator *storage.Generator, queueDescription QueueDescription, idGenerator *mft.G) (*QueueLoadDescription, *mft.Error), qLoadGenerator func(ctx context.Context, storageGenerator *storage.Generator, queueDescription *QueueLoadDescription, idGenerator *mft.G) (queue.Queue, *mft.Error), )
func (*QueueGenerator) GetGenerator ¶
func (qg *QueueGenerator) GetGenerator( name string) ( qNewGenerator func(ctx context.Context, storageGenerator *storage.Generator, queueDescription QueueDescription, idGenerator *mft.G) (*QueueLoadDescription, *mft.Error), qLoadGenerator func(ctx context.Context, storageGenerator *storage.Generator, queueDescription *QueueLoadDescription, idGenerator *mft.G) (queue.Queue, *mft.Error), ok bool, )
type QueueGetRequest ¶
type QueueGetSegmentRequest ¶
type QueueGetSegmentResponce ¶
type QueueGetSegmentResponce struct { Messages []*queue.MessageWithMeta `json:"msgs"` LastId int64 `json:"last_id"` }
type QueueLoadDescription ¶
type QueueLoadDescription struct { Name string `json:"name"` Type string `json:"type"` CreateOnLoad bool `json:"create_on_load"` RelativePath string `json:"relative_path"` Params json.RawMessage `json:"params"` Queue queue.Queue `json:"-"` Owner string `json:"owner"` }
QueueLoadDescription description of queue for load
func SimppleQueueNewGenerator ¶
func SimppleQueueNewGenerator(ctx context.Context, storageGenerator *storage.Generator, queueDescription QueueDescription, idGenerator *mft.G) (qd *QueueLoadDescription, err *mft.Error)
func (*QueueLoadDescription) GetName ¶
func (qld *QueueLoadDescription) GetName() string
func (*QueueLoadDescription) QueueDescription ¶
func (qld *QueueLoadDescription) QueueDescription() QueueDescription
type RegularlySaveHandler ¶
type RegularlySaveHandler struct { Cluster Cluster QueueName string Interval time.Duration Wait time.Duration UserName string HDescription *HandlerLoadDescription // contains filtered or unexported fields }
func (*RegularlySaveHandler) GetName ¶
func (rsh *RegularlySaveHandler) GetName() string
func (*RegularlySaveHandler) LastComplete ¶
func (*RegularlySaveHandler) LastError ¶
func (rsh *RegularlySaveHandler) LastError(ctx context.Context) (err *mft.Error)
type RegularlySaveHandlerParams ¶
type RegularlySaveHandlerParams struct { // Interval - interval between call Interval time.Duration `json:"interval"` // Wait - wait save timeout Wait time.Duration `json:"wait"` }
func (RegularlySaveHandlerParams) ToJson ¶
func (hp RegularlySaveHandlerParams) ToJson() json.RawMessage
type RequestBody ¶
type RequestBody struct { Name string `json:"name"` User string `json:"user"` Action string `json:"action"` Body json.RawMessage `json:"body,omitempty"` ObjectName string `json:"object_name,omitempty"` }
RequestBody request
func MarshalRequestMust ¶
func MarshalRequestMust(user cn.CapUser, action string, v interface{}) *RequestBody
func (*RequestBody) GetName ¶
func (rb *RequestBody) GetName() string
func (*RequestBody) UnmarshalInnerObject ¶
func (request *RequestBody) UnmarshalInnerObject(v interface{}) (err *mft.Error)
type ResponceBody ¶
type ResponceBody struct { Body json.RawMessage `json:"body"` Err *mft.Error `json:"error"` }
ResponceBody responce
func CallFuncInCluster ¶
func CallFuncInCluster(ctx context.Context, cluster Cluster, request *RequestBody, addFunc []AdditionalCallFuncInClusterFunc) (responce *ResponceBody)
func CheckAuthFuncEmpty ¶
func CheckAuthFuncEmpty(ctx context.Context, serviceRequest *ServiceRequest) (ok bool, failResponce ResponceBody)
func MarshalResponceMust ¶
func MarshalResponceMust(v interface{}, err *mft.Error) *ResponceBody
func UnmarshalInnerObjectAndFindQueue ¶
func UnmarshalInnerObjectAndFindQueue(ctx context.Context, cluster Cluster, request *RequestBody, v interface{}) (queue queue.Queue, responce *ResponceBody, ok bool)
func (*ResponceBody) UnmarshalInnerObject ¶
func (responce *ResponceBody) UnmarshalInnerObject(v interface{}) (err *mft.Error)
type ServiceRequest ¶
type ServiceRequest struct { AuthentificationType string `json:"auth_type"` UserName string `json:"user_name"` AuthentificationInfo []byte `json:"auth_info"` WaitDuration time.Duration `json:"wait"` CurrentTime int64 `json:"current_time"` PreferContentType string `json:"prefer_content_type"` ReplaceNameForce bool `json:"replace_name_force"` Request *RequestBody `json:"request"` }
func (*ServiceRequest) GetName ¶
func (sr *ServiceRequest) GetName() string
type ServiceResponce ¶
type ServiceResponce struct { TimeStart int64 `json:"start"` TimeFinish int64 `json:"finish"` Responce ResponceBody `json:"responce"` }
type SimpleCluster ¶
type SimpleCluster struct { Name string `json:"name"` ObjectCreateDuration time.Duration `json:"object_create_duration"` RvGeneratorPart int64 `json:"rv_generator_part"` IDGenerator *mft.G `json:"-"` Queues map[string]*QueueLoadDescription `json:"queues"` ExternalClusters map[string]*ExternalClusterLoadDescription `json:"ext_clusters"` Handlers map[string]*HandlerLoadDescription `json:"handlers"` InternalValues map[string]string `json:"internal_values"` QueueGenerator *QueueGenerator `json:"-"` StorageGenerator *storage.Generator `json:"-"` ExternalClusterGenerator *ExternalClusterGenerator `json:"-"` HandlerGenerator *HandlerGenerator `json:"-"` Compressor *compress.Generator `json:"-"` EncryptData *EncryptData `json:"-"` // case nil then ignore CheckPermissionFunc func(ctx context.Context, user cn.CapUser, objectType string, action string, objectName string) (allowed bool, err *mft.Error) `json:"-"` // case nil then ignore ThrowErrorFunc func(err *mft.Error) bool `json:"-"` // OnChange event func (send self) OnChangeFunc func(sc *SimpleCluster) (err *mft.Error) `json:"-"` // contains filtered or unexported fields }
SimpleCluster - simple cluster
func SimpleClusterCreate ¶
func SimpleClusterCreate(storageGenerator *storage.Generator, throwErrorFunc func(err *mft.Error) bool, onChangeFunc func(sc *SimpleCluster) (err *mft.Error), checkPermissionFunc func(ctx context.Context, user cn.CapUser, objectType string, action string, objectName string) (allowed bool, err *mft.Error), queueGenerator *QueueGenerator, externalClusterGenerator *ExternalClusterGenerator, handlerGenerator *HandlerGenerator, compressor *compress.Generator, encryptData EncryptData, ) *SimpleCluster
func (*SimpleCluster) AddExternalCluster ¶
func (sc *SimpleCluster) AddExternalCluster(ctx context.Context, user cn.CapUser, clusterParams ExternalClusterDescription) (err *mft.Error)
func (*SimpleCluster) AddHandler ¶
func (sc *SimpleCluster) AddHandler(ctx context.Context, user cn.CapUser, handlerParams HandlerDescription) (err *mft.Error)
func (*SimpleCluster) AddQueue ¶
func (sc *SimpleCluster) AddQueue(ctx context.Context, user cn.CapUser, queueDescription QueueDescription) (err *mft.Error)
AddQueue add queue to cluster
func (*SimpleCluster) CheckPermission ¶
func (*SimpleCluster) DropExternalCluster ¶
func (*SimpleCluster) DropHandler ¶
func (*SimpleCluster) GetExternalCluster ¶
func (*SimpleCluster) GetExternalClusterDescription ¶
func (sc *SimpleCluster) GetExternalClusterDescription(ctx context.Context, user cn.CapUser, name string) (clusterParams ExternalClusterDescription, err *mft.Error)
func (*SimpleCluster) GetExternalClustersList ¶
func (*SimpleCluster) GetFullStruct ¶
func (sc *SimpleCluster) GetFullStruct(ctx context.Context, user cn.CapUser) (data json.RawMessage, err *mft.Error)
func (*SimpleCluster) GetFullStructRaw ¶
func (sc *SimpleCluster) GetFullStructRaw() (data json.RawMessage, err *mft.Error)
func (*SimpleCluster) GetHandler ¶
func (*SimpleCluster) GetHandlerDescription ¶
func (sc *SimpleCluster) GetHandlerDescription(ctx context.Context, user cn.CapUser, name string) (handlerParams HandlerDescription, err *mft.Error)
func (*SimpleCluster) GetHandlersList ¶
func (*SimpleCluster) GetName ¶
func (sc *SimpleCluster) GetName(ctx context.Context, user cn.CapUser) (name string, err *mft.Error)
GetName gets cluster name
func (*SimpleCluster) GetNextIds ¶
func (*SimpleCluster) GetQueueDescription ¶
func (sc *SimpleCluster) GetQueueDescription(ctx context.Context, user cn.CapUser, name string) (queueDescription QueueDescription, err *mft.Error)
func (*SimpleCluster) GetQueuesList ¶
func (*SimpleCluster) GetValueInternal ¶
func (sc *SimpleCluster) GetValueInternal(name string) (value string, ok bool)
func (*SimpleCluster) LoadFullStruct ¶
func (sc *SimpleCluster) LoadFullStruct(ctx context.Context, user cn.CapUser, data json.RawMessage) (err *mft.Error)
func (*SimpleCluster) LoadFullStructRaw ¶
func (sc *SimpleCluster) LoadFullStructRaw(data json.RawMessage) (err *mft.Error)
func (*SimpleCluster) OnChange ¶
func (sc *SimpleCluster) OnChange() (err *mft.Error)
func (*SimpleCluster) SetName ¶
func (sc *SimpleCluster) SetName(ctx context.Context, user cn.CapUser, name string) (err *mft.Error)
SetName sets cluster name
func (*SimpleCluster) SetValueInternal ¶
func (sc *SimpleCluster) SetValueInternal(name string, value string) (err *mft.Error)
func (*SimpleCluster) ThrowError ¶
func (sc *SimpleCluster) ThrowError(err *mft.Error) bool
type SimpleQueueParams ¶
type SimpleQueueParams struct { CntLimit int `json:"cnt_limit"` TimeLimit time.Duration `json:"time_limit"` LenLimit int `json:"len_limit"` MetaStorageMountName string `json:"meta_mount_name"` SubscriberStorageMountName string `json:"subscriber_mount_name"` MarkerBlockDataStorageMountName map[string]string `json:"marker_block_mount_name"` Segments *segment.Segments `json:"segments"` DefaultSaveMode cn.SaveMode `json:"default_save_mod"` UseDefaultSaveModeForce bool `json:"use_default_save_mod_force"` }
func (SimpleQueueParams) ToJson ¶
func (sqp SimpleQueueParams) ToJson() json.RawMessage
type UnmarshalFunc ¶
type UnmarshalFunc func(ctx context.Context, contentType string, body []byte) (serviceRequest ServiceRequest, ok bool, failResponce ResponceBody)
Source Files ¶
- cluster.go
- cluster_request.go
- cluster_service_request.go
- encrypt.go
- error.go
- simple_cluster.go
- simple_cluster_external_cluster.go
- simple_cluster_handler.go
- simple_cluster_handler_block_delete.go
- simple_cluster_handler_block_mark.go
- simple_cluster_handler_block_unload.go
- simple_cluster_handler_copy_unique.go
- simple_cluster_handler_regularly_save.go
- simple_cluster_load.go
- simple_cluster_queue.go