2017-11-29 00:30:07 +00:00
|
|
|
package consul
|
|
|
|
|
2020-01-28 23:50:41 +00:00
|
|
|
import (
|
|
|
|
"github.com/hashicorp/consul/logging"
|
|
|
|
)
|
|
|
|
|
2017-11-29 00:30:07 +00:00
|
|
|
func init() {
|
2020-01-28 23:50:41 +00:00
|
|
|
registerEndpoint(func(s *Server) interface{} { return &ACL{s, s.loggers.Named(logging.ACL)} })
|
2020-06-12 02:05:07 +00:00
|
|
|
registerEndpoint(func(s *Server) interface{} { return &Catalog{s, s.loggers.Named(logging.Catalog)} })
|
2020-01-28 23:50:41 +00:00
|
|
|
registerEndpoint(func(s *Server) interface{} { return NewCoordinate(s, s.logger) })
|
2019-04-07 06:38:08 +00:00
|
|
|
registerEndpoint(func(s *Server) interface{} { return &ConfigEntry{s} })
|
2020-01-28 23:50:41 +00:00
|
|
|
registerEndpoint(func(s *Server) interface{} { return &ConnectCA{srv: s, logger: s.loggers.Named(logging.Connect)} })
|
2020-03-09 20:59:02 +00:00
|
|
|
registerEndpoint(func(s *Server) interface{} { return &FederationState{s} })
|
2019-08-02 20:34:54 +00:00
|
|
|
registerEndpoint(func(s *Server) interface{} { return &DiscoveryChain{s} })
|
2017-11-29 00:30:07 +00:00
|
|
|
registerEndpoint(func(s *Server) interface{} { return &Health{s} })
|
2020-01-28 23:50:41 +00:00
|
|
|
registerEndpoint(func(s *Server) interface{} { return &Intention{s, s.loggers.Named(logging.Intentions)} })
|
|
|
|
registerEndpoint(func(s *Server) interface{} { return &Internal{s, s.loggers.Named(logging.Internal)} })
|
|
|
|
registerEndpoint(func(s *Server) interface{} { return &KVS{s, s.loggers.Named(logging.KV)} })
|
|
|
|
registerEndpoint(func(s *Server) interface{} { return &Operator{s, s.loggers.Named(logging.Operator)} })
|
|
|
|
registerEndpoint(func(s *Server) interface{} { return &PreparedQuery{s, s.loggers.Named(logging.PreparedQuery)} })
|
|
|
|
registerEndpoint(func(s *Server) interface{} { return &Session{s, s.loggers.Named(logging.Session)} })
|
2017-11-29 00:30:07 +00:00
|
|
|
registerEndpoint(func(s *Server) interface{} { return &Status{s} })
|
2020-01-28 23:50:41 +00:00
|
|
|
registerEndpoint(func(s *Server) interface{} { return &Txn{s, s.loggers.Named(logging.Transaction)} })
|
2017-12-20 21:43:38 +00:00
|
|
|
}
|