handlers

package
v0.0.0-...-c2e6958 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package handlers is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditAction

type AuditAction string
const (
	AuditActionCreateUser AuditAction = "create_user"
	AuditActionUpdateUser AuditAction = "update_user"
	AuditActionDeleteUser AuditAction = "delete_user"
)

type Handler

type Handler interface {
	Handle(*gofr.Context) (interface{}, error)
}

Handler is an interface that wraps the basic Handle method.

type Handlers

type Handlers struct {
	OryClient *ory.APIClient
}

func NewHandlers

func NewHandlers(oryClient *ory.APIClient) *Handlers

func (*Handlers) CreateAPICredential

func (h *Handlers) CreateAPICredential(c *gofr.Context) (interface{}, error)

func (*Handlers) CreateSuperUser

func (h *Handlers) CreateSuperUser(c *gofr.Context) (interface{}, error)

func (*Handlers) CreateTenant

func (h *Handlers) CreateTenant(c *gofr.Context) (interface{}, error)

func (*Handlers) CreateUser

func (h *Handlers) CreateUser(c *gofr.Context) (interface{}, error)

func (*Handlers) GetAllUsers

func (h *Handlers) GetAllUsers(c *gofr.Context) (interface{}, error)

func (*Handlers) ListAPICredentials

func (h *Handlers) ListAPICredentials(c *gofr.Context) (interface{}, error)

func (*Handlers) Login

func (h *Handlers) Login(c *gofr.Context) (interface{}, error)

type MockHandler

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

MockHandler is a mock of Handler interface.

func NewMockHandler

func NewMockHandler(ctrl *gomock.Controller) *MockHandler

NewMockHandler creates a new mock instance.

func (*MockHandler) EXPECT

func (m *MockHandler) EXPECT() *MockHandlerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHandler) Handle

func (m *MockHandler) Handle(arg0 *gofr.Context) (any, error)

Handle mocks base method.

type MockHandlerMockRecorder

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

MockHandlerMockRecorder is the mock recorder for MockHandler.

func (*MockHandlerMockRecorder) Handle

func (mr *MockHandlerMockRecorder) Handle(arg0 any) *gomock.Call

Handle indicates an expected call of Handle.

type UserInfo

type UserInfo struct {
	UserID   uuid.UUID
	Roles    []string
	TenantID uuid.UUID
	Email    string
}

Jump to

Keyboard shortcuts

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