mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
* No functional changes * Did not address the ALL_CAPS issues * Did not modify public APIs and field names.
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
|
|
}
|