Documentation ¶
Index ¶
- func Delete(ctx tp.PullCtx, args *types.DeleteArgs) (*struct{}, *tp.Rerror)
- func Get(ctx tp.PullCtx, args *types.GetArgs) (*types.GrayMatch, *tp.Rerror)
- func IsGray(ctx tp.PullCtx, args *types.IsGrayArgs) (*types.IsGrayResult, *tp.Rerror)
- func Route(root string, router *tp.Router)
- func Set(ctx tp.PullCtx, args *types.SetArgs) (*struct{}, *tp.Rerror)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
Delete delete the rule of gray.
func Get ¶
Get get the rule of gray.
func IsGray ¶
func IsGray(ctx tp.PullCtx, args *types.IsGrayArgs) (*types.IsGrayResult, *tp.Rerror)
IsGray check whether the service should use grayscale based on the uid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.