identityhttp

package
v0.0.0-...-1f1dc5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package identityhttp adapts administrator HTTP requests to the identity usecase.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(group *echo.Group, handler *Handler)

Register mounts administrator routes on group.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler adapts administrator HTTP requests to the identity usecase.

func New

func New(uc *usecase.Usecase, operation OperationRecorder) *Handler

New creates an identity HTTP handler.

func (*Handler) CreateAdmin

func (h *Handler) CreateAdmin(c *echo.Context) error

CreateAdmin creates an administrator.

func (*Handler) DeleteAdmin

func (h *Handler) DeleteAdmin(c *echo.Context) error

DeleteAdmin deletes an administrator.

func (*Handler) ListAdmins

func (h *Handler) ListAdmins(c *echo.Context) error

ListAdmins returns administrators.

func (*Handler) ListRoleAdmins

func (h *Handler) ListRoleAdmins(c *echo.Context) error

ListRoleAdmins returns administrator ids assigned to a role.

func (*Handler) SetRoleAdmins

func (h *Handler) SetRoleAdmins(c *echo.Context) error

SetRoleAdmins replaces administrator assignments for a role.

func (*Handler) UpdateAdmin

func (h *Handler) UpdateAdmin(c *echo.Context) error

UpdateAdmin updates an administrator.

type OperationRecorder

type OperationRecorder interface {
	RecordOperation(context.Context, auditusecase.OperationInput) (auditusecase.OperationLog, error)
}

OperationRecorder records administrator mutations for audit.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL