api

package
v6.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ctx erpc.CallCtx, args *types.DeleteArgs) (*struct{}, *erpc.Status)

Delete delete the rule of gray.

func Get

func Get(ctx erpc.CallCtx, args *types.GetArgs) (*types.GrayMatch, *erpc.Status)

Get get the rule of gray.

func IsGray

func IsGray(ctx erpc.CallCtx, args *types.IsGrayArgs) (*types.IsGrayResult, *erpc.Status)

IsGray check whether the service should use grayscale based on the uid.

func Route

func Route(root string, router *erpc.Router)

Route registers handlers to router.

func Set

func Set(ctx erpc.CallCtx, args *types.SetArgs) (*struct{}, *erpc.Status)

Set insert or update the regular expression for matching the URI.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL