mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
feat: add auditing to user routes (#3961)
This commit is contained in:
13
coderd/features/features.go
Normal file
13
coderd/features/features.go
Normal file
@ -0,0 +1,13 @@
|
||||
package features
|
||||
|
||||
import "net/http"
|
||||
|
||||
// Service is the interface for interacting with enterprise features.
|
||||
type Service interface {
|
||||
EntitlementsAPI(w http.ResponseWriter, r *http.Request)
|
||||
|
||||
// Get returns the implementations for feature interfaces. Parameter `s` must be a pointer to a
|
||||
// struct type containing feature interfaces as fields. The FeatureService sets all fields to
|
||||
// the correct implementations depending on whether the features are turned on.
|
||||
Get(s any) error
|
||||
}
|
Reference in New Issue
Block a user