Update/delete vendor files

Refreshed / updated vendor dependencies

Tested with "make".

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (OpenFaaS Ltd)
2019-10-06 22:30:47 +01:00
committed by Alex Ellis
parent f62bcb0736
commit d6cf72bb39
247 changed files with 51179 additions and 11409 deletions

View File

@ -39,16 +39,8 @@ type Msg struct {
// Subscriptions and Options
// Subscription represents a subscription within the NATS Streaming cluster. Subscriptions
// will be rate matched and follow at-least delivery semantics.
// will be rate matched and follow at-least once delivery semantics.
type Subscription interface {
ClearMaxPending() error
Delivered() (int64, error)
Dropped() (int, error)
IsValid() bool
MaxPending() (int, int, error)
Pending() (int, int, error)
PendingLimits() (int, int, error)
SetPendingLimits(msgLimit, bytesLimit int) error
// Unsubscribe removes interest in the subscription.
// For durables, it means that the durable interest is also removed from
// the server. Restarting a durable with the same name will not resume
@ -60,6 +52,42 @@ type Subscription interface {
// for which this feature is not available, Close() will return a ErrNoServerSupport
// error.
Close() error
// These functions have been added for expert-users that need to get details
// about the low level NATS Subscription used internally to receive messages
// for this streaming subscription. They are documented in the Go client
// library: https://godoc.org/github.com/nats-io/go-nats#Subscription.ClearMaxPending
// ClearMaxPending resets the maximums seen so far.
ClearMaxPending() error
// Delivered returns the number of delivered messages for the internal low-level NATS subscription.
Delivered() (int64, error)
// Dropped returns the number of known dropped messages for the internal low-level NATS subscription.
// This will correspond to messages dropped by violations of PendingLimits. If the server declares
// the connection a SlowConsumer, this number may not be valid.
Dropped() (int, error)
// IsValid returns a boolean indicating whether the internal low-level NATS subscription is still active.
// This will return false if the subscription has already been closed.
IsValid() bool
// MaxPending returns the maximum number of queued messages and queued bytes seen so far for the internal
// low-level NATS subscription.
MaxPending() (int, int, error)
// Pending returns the number of queued messages and queued bytes in the client for the internal
// low-level NATS subscription.
Pending() (int, int, error)
// PendingLimits returns the current limits for the internal low-level NATS subscription. If no error is
// returned, a negative value indicates that the given metric is not limited.
PendingLimits() (int, int, error)
// SetPendingLimits sets the limits for pending msgs and bytes for the internal low-level NATS Subscription.
// Zero is not allowed. Any negative value means that the given metric is not limited.
SetPendingLimits(msgLimit, bytesLimit int) error
}
// A subscription represents a subscription to a stan cluster.
@ -183,7 +211,7 @@ func SetManualAckMode() SubscriptionOption {
}
}
// DurableName sets the DurableName for the subcriber.
// DurableName sets the DurableName for the subscriber.
func DurableName(name string) SubscriptionOption {
return func(o *SubscriptionOptions) error {
o.DurableName = name
@ -253,7 +281,7 @@ func (sc *conn) subscribe(subject, qgroup string, cb MsgHandler, options ...Subs
}
b, _ := sr.Marshal()
reply, err := sc.nc.Request(sc.subRequests, b, sc.opts.ConnectTimeout)
reply, err := nc.Request(sc.subRequests, b, sc.opts.ConnectTimeout)
if err != nil {
sub.inboxSub.Unsubscribe()
if err == nats.ErrTimeout {