Skip to content

rbac_user_service to add return status code #429

@reskin89

Description

@reskin89

In this code it would be nice to update the func signature to something like:

func (s *RBACUserService) Get(ctx context.Context,
	nameOrID *string,
) (*RBACUser, int, error) {

where int is the status code returned from the kong api.

It makes handling of certain error scenarios when importing this library a lot easier to manage and tailor toward the importing application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions