mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 03:01:11 +00:00
* Vendor nats-io/nats * Use NATS for shortcut reports. * Review feedback. * Rejig shortcut subscriptions, so they work. * Review feedback
16 lines
377 B
Go
16 lines
377 B
Go
// Copyright 2012-2014 Apcera Inc. All rights reserved.
|
|
|
|
package server
|
|
|
|
// Auth is an interface for implementing authentication
|
|
type Auth interface {
|
|
// Check if a client is authorized to connect
|
|
Check(c ClientAuth) bool
|
|
}
|
|
|
|
// ClientAuth is an interface for client authentication
|
|
type ClientAuth interface {
|
|
// Get options associated with a client
|
|
GetOpts() *clientOpts
|
|
}
|