sdk

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(args *types.DeleteArgs, setting ...socket.PacketSetting) (*struct{}, *tp.Rerror)

Delete delete the rule of gray.

func Get

func Get(args *types.GetArgs, setting ...socket.PacketSetting) (*types.GrayMatch, *tp.Rerror)

Get get the rule of gray.

func Init

func Init(formalClientConfig micro.CliConfig, formalEtcdConfing etcd.EasyConfig)

Init initializes formal client with configs.

func InitWithClient

func InitWithClient(formalClient *micro.Client)

InitWithClient initializes formal client with specified object.

func IsGray

func IsGray(args *types.IsGrayArgs, setting ...socket.PacketSetting) (*types.IsGrayResult, *tp.Rerror)

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

func Set

func Set(args *types.SetArgs, setting ...socket.PacketSetting) (*struct{}, *tp.Rerror)

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