Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDataSource ¶
func NewDataSource() datasource.DataSource
NewDataSource creates a new instance of the data source for a single queue.
func NewResource ¶
NewResource creates a new resource instance.
func NewWeightValidator ¶
NewWeightValidator returns an instance of the WeightValidator.
Types ¶
type WeightValidator ¶
type WeightValidator struct{}
WeightValidator ensures that weight is either "Strict priority" or a valid number between 1 and 15.
func (WeightValidator) Description ¶
func (v WeightValidator) Description(context.Context) string
Description explains what the validator does in documentation.
func (WeightValidator) MarkdownDescription ¶
func (v WeightValidator) MarkdownDescription(context.Context) string
MarkdownDescription provides the description in markdown style.
func (WeightValidator) ValidateString ¶
func (v WeightValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
ValidateString checks if the provided value is either "Strict priority" or between 1 and 15.
Click to show internal directories.
Click to hide internal directories.