package
0.0.0-20180612135327-062eff57d0b2
Repository: https://github.com/signalfx/istio.git
Documentation: pkg.go.dev

# Functions

ListenerAndPort starts a listener on an available port and returns both the listener and the port on which it is listening.
NewAttributesServer creates an AttributesServer.
NewChannelsHandler creates a ChannelsHandler with channels of default length and default values for ReturnStatuses and QuotaResponses.
NewMixerServer creates a new grpc.Server with the supplied implementation of the Mixer API.

# Variables

DefaultAmount is the default quota amount to use in testing (1).
DefaultValidDuration is the default duration to return for quota allocs in testing (1s).
DefaultValidUseCount is the default number of valid uses to return for quota allocs for testing (1).

# Structs

AttributesServer implements the Mixer API to send mutable attributes bags to a channel upon API requests.
ChannelsHandler sends received attribute.Bags (and other) information on the configured channels (with a timeout).
QuotaArgs mirrors aspect.QuotaArgs.
QuotaDispatchInfo contains both the attribute bag generated by the server for Quota dispatch, as well as the corresponding method arguments.
QuotaResponse provides information on the result of a Quota operation.

# Interfaces

AttributesHandler provides an interface for building custom testing behavior.