Documentation ¶
Overview ¶
Package charond ...
Index ¶
- Constants
- func ScanGroupPermissionsRows(rows *sql.Rows) ([]*groupPermissionsEntity, error)
- func ScanGroupRows(rows *sql.Rows) ([]*groupEntity, error)
- func ScanPermissionRows(rows *sql.Rows) ([]*permissionEntity, error)
- func ScanUserGroupsRows(rows *sql.Rows) ([]*userGroupsEntity, error)
- func ScanUserPermissionsRows(rows *sql.Rows) ([]*userPermissionsEntity, error)
- func ScanUserRows(rows *sql.Rows) ([]*userEntity, error)
- func TestDaemon(t *testing.T, opts TestDaemonOpts) (net.Addr, io.Closer)
- type Daemon
- type DaemonOpts
- type PermissionRegistry
- type TestDaemonOpts
Constants ¶
View Source
const ( // EnvironmentProduction ... EnvironmentProduction = "prod" // EnvironmentTest ... EnvironmentTest = "test" )
View Source
const (
// MonitoringEnginePrometheus ...
MonitoringEnginePrometheus = "prometheus"
)
View Source
const (
// UserConfirmationTokenUsed is a value that is used when confirmation token was already used.
UserConfirmationTokenUsed = "!"
)
Variables ¶
This section is empty.
Functions ¶
func ScanGroupRows ¶
func ScanPermissionRows ¶
func ScanUserGroupsRows ¶
func ScanUserPermissionsRows ¶
func ScanUserRows ¶
func TestDaemon ¶
TestDaemon returns address of fully started in-memory daemon and closer to close it.
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
Daemon ...
type DaemonOpts ¶
type DaemonOpts struct { Environment string Namespace string Subsystem string MonitoringEngine string TLS bool TLSCertFile string TLSKeyFile string PostgresAddress string PasswordBCryptCost int MnemosyneAddress string Logger log.Logger RPCListener net.Listener DebugListener net.Listener }
DaemonOpts ...
type PermissionRegistry ¶
type PermissionRegistry interface { // Exists returns true if given charon.Permission was already registered. Exists(permission charon.Permission) (exists bool) // Register checks if given collection is valid and // calls charon.PermissionRepository to store provided permissions // in persistent way. Register(permissions charon.Permissions) (created, untouched, removed int64, err error) }
charon.PermissionRegistry is an interface that describes in memory storage that holds information about permissions that was registered by 3rd party services. Should be only used as a proxy for registration process to avoid multiple sql hits.
type TestDaemonOpts ¶
Source Files ¶
- daemon.go
- database.go
- doc.go
- group.go
- group_permissions.go
- handler.go
- handler_belongs_to.go
- handler_create_group.go
- handler_create_user.go
- handler_delete_group.go
- handler_delete_user.go
- handler_get_group.go
- handler_get_permission.go
- handler_get_user.go
- handler_is_authenticated.go
- handler_is_granted.go
- handler_list_group_permissions.go
- handler_list_groups.go
- handler_list_permissions.go
- handler_list_user_groups.go
- handler_list_user_permissions.go
- handler_list_users.go
- handler_login.go
- handler_logout.go
- handler_modify_group.go
- handler_modify_user.go
- handler_register_permissions.go
- handler_set_group_permissions.go
- handler_set_user_groups.go
- handler_set_user_permissions.go
- handler_subject.go
- helpers.go
- monitoring.go
- permission.go
- rpc_server.go
- schema.pqt.go
- service.go
- user.go
- user_groups.go
- user_permissions.go
Click to show internal directories.
Click to hide internal directories.