Documentation
¶
Index ¶
- func EnsureDatabase(store *postgresql.Store, newDatabase postgresql.Database) error
- func EnsureUser(store *postgresql.Store, newUser postgresql.Role) error
- func GrantDbAccess(store *postgresql.Store, username, databaseName string) error
- func Handle(ctx context.Context, event AdminEvent, store *postgresql.Store) (any, error)
- type AdminEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDatabase ¶
func EnsureDatabase(store *postgresql.Store, newDatabase postgresql.Database) error
func EnsureUser ¶
func EnsureUser(store *postgresql.Store, newUser postgresql.Role) error
func GrantDbAccess ¶
func GrantDbAccess(store *postgresql.Store, username, databaseName string) error
func Handle ¶
func Handle(ctx context.Context, event AdminEvent, store *postgresql.Store) (any, error)
Types ¶
type AdminEvent ¶
func IsEvent ¶
func IsEvent(rawEvent json.RawMessage) (bool, AdminEvent)
Click to show internal directories.
Click to hide internal directories.