Documentation ¶
Index ¶
- type PermissionResolver
- func (r *PermissionResolver) CreatedAt(ctx context.Context, obj *pb.Permission) (*time.Time, error)
- func (r *PermissionResolver) Description(ctx context.Context, obj *pb.Permission) (string, error)
- func (r *PermissionResolver) ID(ctx context.Context, obj *pb.Permission) (string, error)
- func (r *PermissionResolver) Permission(ctx context.Context, obj *pb.Permission) (string, error)
- func (r *PermissionResolver) Resource(ctx context.Context, obj *pb.Permission) (*string, error)
- func (r *PermissionResolver) UpdatedAt(ctx context.Context, obj *pb.Permission) (*time.Time, error)
- type RoleResolver
- func (rrs *RoleResolver) CreatedAt(ctx context.Context, obj *pb.Role) (*time.Time, error)
- func (rrs *RoleResolver) Description(ctx context.Context, obj *pb.Role) (string, error)
- func (rrs *RoleResolver) ID(ctx context.Context, obj *pb.Role) (string, error)
- func (rrs *RoleResolver) Permissions(ctx context.Context, obj *pb.Role) ([]*pb.Permission, error)
- func (rrs *RoleResolver) Role(ctx context.Context, obj *pb.Role) (string, error)
- func (rrs *RoleResolver) UpdatedAt(ctx context.Context, obj *pb.Role) (*time.Time, error)
- type UserResolver
- func (urs *UserResolver) City(ctx context.Context, obj *pb.User) (*string, error)
- func (urs *UserResolver) Country(ctx context.Context, obj *pb.User) (*string, error)
- func (urs *UserResolver) CreatedAt(ctx context.Context, obj *pb.User) (*time.Time, error)
- func (urs *UserResolver) Email(ctx context.Context, obj *pb.User) (string, error)
- func (urs *UserResolver) FirstAddress(ctx context.Context, obj *pb.User) (*string, error)
- func (urs *UserResolver) FirstName(ctx context.Context, obj *pb.User) (string, error)
- func (urs *UserResolver) GroupName(ctx context.Context, obj *pb.User) (*string, error)
- func (urs *UserResolver) ID(ctx context.Context, obj *pb.User) (string, error)
- func (urs *UserResolver) IsActive(ctx context.Context, obj *pb.User) (bool, error)
- func (urs *UserResolver) LastName(ctx context.Context, obj *pb.User) (string, error)
- func (urs *UserResolver) Organization(ctx context.Context, obj *pb.User) (*string, error)
- func (urs *UserResolver) Phone(ctx context.Context, obj *pb.User) (*string, error)
- func (urs *UserResolver) Roles(ctx context.Context, obj *pb.User) ([]*pb.Role, error)
- func (urs *UserResolver) SecondAddress(ctx context.Context, obj *pb.User) (*string, error)
- func (urs *UserResolver) State(ctx context.Context, obj *pb.User) (*string, error)
- func (urs *UserResolver) UpdatedAt(ctx context.Context, obj *pb.User) (*time.Time, error)
- func (urs *UserResolver) Zipcode(ctx context.Context, obj *pb.User) (*string, error)
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 (r *PermissionResolver) ID(ctx context.Context, obj *pb.Permission) (string, error)
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) Description ¶
func (*RoleResolver) Permissions ¶
func (rrs *RoleResolver) Permissions( ctx context.Context, obj *pb.Role, ) ([]*pb.Permission, error)
type UserResolver ¶
type UserResolver struct { Client authentication.LogtoClient Logger *logrus.Entry }
func (*UserResolver) FirstAddress ¶
func (*UserResolver) Organization ¶
func (*UserResolver) SecondAddress ¶
Click to show internal directories.
Click to hide internal directories.