mocks

package
v0.0.0-...-6f9a9ad Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) CreateRole

func (_m *Repository) CreateRole(ctx context.Context, role models.Role) error

CreateRole provides a mock function with given fields: ctx, role

func (*Repository) GetRole

func (_m *Repository) GetRole(ctx context.Context, roleName string) (models.Role, error)

GetRole provides a mock function with given fields: ctx, roleName

func (*Repository) GetRoles

func (_m *Repository) GetRoles(ctx context.Context) ([]models.Role, error)

GetRoles provides a mock function with given fields: ctx

func (*Repository) GetUserRole

func (_m *Repository) GetUserRole(ctx context.Context, userID string) ([]models.Role, error)

GetUserRole provides a mock function with given fields: ctx, userID

Jump to

Keyboard shortcuts

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