Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcConfig ¶
type HTTPConfig ¶
type HTTPValueConfig ¶
type SchedulerConfig ¶
type SchedulerConfig struct { ID primitive.ObjectID `bson:"_id"` Name string `bson:"name,omitempty"` Type apiPb.SchedulerType `bson:"type"` Status apiPb.SchedulerStatus `bson:"status"` Interval int32 `bson:"interval"` Timeout int32 `bson:"timeout"` TCPConfig *TCPConfig `bson:"tcpConfig,omitempty"` SiteMapConfig *SiteMapConfig `bson:"siteMapConfig,omitempty"` GrpcConfig *GrpcConfig `bson:"grpcConfig,omitempty"` HTTPConfig *HTTPConfig `bson:"httpConfig,omitempty"` HTTPValueConfig *HTTPValueConfig `bson:"httpValueConfig,omitempty"` SslExpirationConfig *SslExpirationConfig `bson:"sslExpirationConfig,omitempty"` Db *DbConfig `bson:"db"` }
type Selectors ¶
type Selectors struct { Type apiPb.HttpJsonValueConfig_JsonValueParseType `bson:"type"` Path string `bson:"path"` }
type SiteMapConfig ¶
type SslExpirationConfig ¶
type Storage ¶
type Storage interface { Get(ctx context.Context, schedulerID primitive.ObjectID) (*SchedulerConfig, error) Add(ctx context.Context, config *SchedulerConfig) error Remove(ctx context.Context, schedulerID primitive.ObjectID) error Run(ctx context.Context, schedulerID primitive.ObjectID) error Stop(ctx context.Context, schedulerID primitive.ObjectID) error GetAll(ctx context.Context) ([]*SchedulerConfig, error) GetAllForSync(ctx context.Context) ([]*SchedulerConfig, error) }
func New ¶
func New( connector mongo_helper.Connector, ) Storage
Click to show internal directories.
Click to hide internal directories.