user

package
v0.0.0-...-4300f82 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermissionResolver

type PermissionResolver struct {
	Client pb.PermissionServiceClient
	Logger *logrus.Entry
}

func (*PermissionResolver) CreatedAt

func (r *PermissionResolver) CreatedAt(ctx context.Context, obj *pb.Permission) (*time.Time, error)

func (*PermissionResolver) Description

func (r *PermissionResolver) Description(ctx context.Context, obj *pb.Permission) (string, error)

func (*PermissionResolver) ID

func (*PermissionResolver) Permission

func (r *PermissionResolver) Permission(ctx context.Context, obj *pb.Permission) (string, error)

func (*PermissionResolver) Resource

func (r *PermissionResolver) Resource(ctx context.Context, obj *pb.Permission) (*string, error)

func (*PermissionResolver) UpdatedAt

func (r *PermissionResolver) UpdatedAt(ctx context.Context, obj *pb.Permission) (*time.Time, error)

type RoleResolver

type RoleResolver struct {
	Client authentication.LogtoClient
	Logger *logrus.Entry
}

func (*RoleResolver) CreatedAt

func (rrs *RoleResolver) CreatedAt(
	ctx context.Context,
	obj *pb.Role,
) (*time.Time, error)

func (*RoleResolver) Description

func (rrs *RoleResolver) Description(
	ctx context.Context,
	obj *pb.Role,
) (string, error)

func (*RoleResolver) ID

func (rrs *RoleResolver) ID(ctx context.Context, obj *pb.Role) (string, error)

func (*RoleResolver) Permissions

func (rrs *RoleResolver) Permissions(
	ctx context.Context,
	obj *pb.Role,
) ([]*pb.Permission, error)

func (*RoleResolver) Role

func (rrs *RoleResolver) Role(
	ctx context.Context,
	obj *pb.Role,
) (string, error)

func (*RoleResolver) UpdatedAt

func (rrs *RoleResolver) UpdatedAt(
	ctx context.Context,
	obj *pb.Role,
) (*time.Time, error)

type UserResolver

type UserResolver struct {
	Client authentication.LogtoClient
	Logger *logrus.Entry
}

func (*UserResolver) City

func (urs *UserResolver) City(
	ctx context.Context,
	obj *pb.User,
) (*string, error)

func (*UserResolver) Country

func (urs *UserResolver) Country(
	ctx context.Context,
	obj *pb.User,
) (*string, error)

func (*UserResolver) CreatedAt

func (urs *UserResolver) CreatedAt(
	ctx context.Context,
	obj *pb.User,
) (*time.Time, error)

func (*UserResolver) Email

func (urs *UserResolver) Email(
	ctx context.Context,
	obj *pb.User,
) (string, error)

func (*UserResolver) FirstAddress

func (urs *UserResolver) FirstAddress(
	ctx context.Context,
	obj *pb.User,
) (*string, error)

func (*UserResolver) FirstName

func (urs *UserResolver) FirstName(
	ctx context.Context,
	obj *pb.User,
) (string, error)

func (*UserResolver) GroupName

func (urs *UserResolver) GroupName(
	ctx context.Context,
	obj *pb.User,
) (*string, error)

func (*UserResolver) ID

func (urs *UserResolver) ID(ctx context.Context, obj *pb.User) (string, error)

func (*UserResolver) IsActive

func (urs *UserResolver) IsActive(
	ctx context.Context,
	obj *pb.User,
) (bool, error)

func (*UserResolver) LastName

func (urs *UserResolver) LastName(
	ctx context.Context,
	obj *pb.User,
) (string, error)

func (*UserResolver) Organization

func (urs *UserResolver) Organization(
	ctx context.Context,
	obj *pb.User,
) (*string, error)

func (*UserResolver) Phone

func (urs *UserResolver) Phone(
	ctx context.Context,
	obj *pb.User,
) (*string, error)

func (*UserResolver) Roles

func (urs *UserResolver) Roles(
	ctx context.Context,
	obj *pb.User,
) ([]*pb.Role, error)

func (*UserResolver) SecondAddress

func (urs *UserResolver) SecondAddress(
	ctx context.Context,
	obj *pb.User,
) (*string, error)

func (*UserResolver) State

func (urs *UserResolver) State(
	ctx context.Context,
	obj *pb.User,
) (*string, error)

func (*UserResolver) UpdatedAt

func (urs *UserResolver) UpdatedAt(
	ctx context.Context,
	obj *pb.User,
) (*time.Time, error)

func (*UserResolver) Zipcode

func (urs *UserResolver) Zipcode(
	ctx context.Context,
	obj *pb.User,
) (*string, error)

Jump to

Keyboard shortcuts

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