{"modulePath":"github.com/mycontroller-org/server/v2","version":"v2.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package resource\n\n## Constants\n\n```go\nconst (\n\tPluginResourceHandler = \"resource\"\n)\n```\n\n## Functions\n\n```go\nfunc NewResourcePlugin(ctx context.Context, config *handlerTY.Config) (handlerTY.Plugin, error)\n```\n\n## Types\n\n```go\ntype JobsConfig struct {\n\tName      string                 `json:\"name\" yaml:\"name\"`\n\tData      handlerTY.ResourceData `json:\"date\" yaml:\"data\"`\n\tDelay     time.Duration          `json:\"delay\" yaml:\"delay\"`\n\tCreatedAt time.Time              `json:\"createdAt\" yaml:\"createdAt\"`\n}\n```\nJobsConfig used to keep the pre-delayed jobs\n\n```go\ntype ResourceClient struct {\n\tHandlerCfg *handlerTY.Config\n\t// contains filtered or unexported fields\n}\n```\nResourceClient struct\n\n```go\nfunc (c *ResourceClient) Close() error\n```\nClose handler implementation\n\n```go\nfunc (p *ResourceClient) Name() string\n```\n\n```go\nfunc (c *ResourceClient) Post(parameters map[string]interface{}) error\n```\nPost handler implementation\n\n```go\nfunc (c *ResourceClient) Start() error\n```\nStart handler implementation\n\n```go\nfunc (c *ResourceClient) State() *types.State\n```\nState implementation\n\n","path":"github.com/mycontroller-org/server/v2/plugin/handler/resource","name":"resource","synopsis":"","isRedistributable":true}
