Documentation
¶
Index ¶
- type IRolesClientV1
- type RoleGrpcClientV1
- func (c *RoleGrpcClientV1) Authorize(ctx context.Context, correlationId string, userId string, roles []string) (result bool, err error)
- func (c *RoleGrpcClientV1) GetRolesByFilter(ctx context.Context, correlationId string, filter *data.FilterParams, ...) (result data.DataPage[*UserRolesV1], err error)
- func (c *RoleGrpcClientV1) GetRolesById(ctx context.Context, correlationId string, userId string) (result []string, err error)
- func (c *RoleGrpcClientV1) GrantRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- func (c *RoleGrpcClientV1) RevokeRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- func (c *RoleGrpcClientV1) SetRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- type RolesCommandableGrpcClientV1
- func (c *RolesCommandableGrpcClientV1) Authorize(ctx context.Context, correlationId string, userId string, roles []string) (result bool, err error)
- func (c *RolesCommandableGrpcClientV1) GetRolesByFilter(ctx context.Context, correlationId string, filter *data.FilterParams, ...) (result data.DataPage[*UserRolesV1], err error)
- func (c *RolesCommandableGrpcClientV1) GetRolesById(ctx context.Context, correlationId string, userId string) (result []string, err error)
- func (c *RolesCommandableGrpcClientV1) GrantRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- func (c *RolesCommandableGrpcClientV1) RevokeRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- func (c *RolesCommandableGrpcClientV1) SetRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- type RolesCommandableHttpClientV1
- func (c *RolesCommandableHttpClientV1) Authorize(ctx context.Context, correlationId string, userId string, roles []string) (result bool, err error)
- func (c *RolesCommandableHttpClientV1) GetRolesByFilter(ctx context.Context, correlationId string, filter *data.FilterParams, ...) (result cdata.DataPage[*UserRolesV1], err error)
- func (c *RolesCommandableHttpClientV1) GetRolesById(ctx context.Context, correlationId string, userId string) (result []string, err error)
- func (c *RolesCommandableHttpClientV1) GrantRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- func (c *RolesCommandableHttpClientV1) RevokeRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- func (c *RolesCommandableHttpClientV1) SetRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- type RolesMockClientV1
- func (c *RolesMockClientV1) Authorize(ctx context.Context, correlationId string, userId string, roles []string) (result bool, err error)
- func (c *RolesMockClientV1) GetRolesByFilter(ctx context.Context, correlationId string, filter *data.FilterParams, ...) (result data.DataPage[*UserRolesV1], err error)
- func (c *RolesMockClientV1) GetRolesById(ctx context.Context, correlationId string, userId string) (result []string, err error)
- func (c *RolesMockClientV1) GrantRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- func (c *RolesMockClientV1) RevokeRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- func (c *RolesMockClientV1) SetRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- type RolesNullClientV1
- func (c *RolesNullClientV1) Authorize(ctx context.Context, correlationId string, userId string, roles []string) (result bool, err error)
- func (c *RolesNullClientV1) GetRolesByFilter(ctx context.Context, correlationId string, filter *data.FilterParams, ...) (result data.DataPage[*UserRolesV1], err error)
- func (c *RolesNullClientV1) GetRolesById(ctx context.Context, correlationId string, userId string) (result []string, err error)
- func (c *RolesNullClientV1) GrantRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- func (c *RolesNullClientV1) RevokeRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- func (c *RolesNullClientV1) SetRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)
- type UserRolesV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRolesClientV1 ¶
type IRolesClientV1 interface { GetRolesByFilter(ctx context.Context, correlationId string, filter *data.FilterParams, paging *data.PagingParams) (result data.DataPage[*UserRolesV1], err error) GetRolesById(ctx context.Context, correlationId string, userId string) (result []string, err error) SetRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error) GrantRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error) RevokeRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error) Authorize(ctx context.Context, correlationId string, userId string, roles []string) (result bool, err error) }
type RoleGrpcClientV1 ¶
type RoleGrpcClientV1 struct {
*clients.GrpcClient
}
func NewRoleGrpcClientV1 ¶
func NewRoleGrpcClientV1() *RoleGrpcClientV1
func (*RoleGrpcClientV1) GetRolesByFilter ¶
func (c *RoleGrpcClientV1) GetRolesByFilter(ctx context.Context, correlationId string, filter *data.FilterParams, paging *data.PagingParams) (result data.DataPage[*UserRolesV1], err error)
func (*RoleGrpcClientV1) GetRolesById ¶
func (*RoleGrpcClientV1) GrantRoles ¶
func (*RoleGrpcClientV1) RevokeRoles ¶
type RolesCommandableGrpcClientV1 ¶
type RolesCommandableGrpcClientV1 struct {
*clients.CommandableGrpcClient
}
func NewRolesCommandableGrpcClientV1 ¶
func NewRolesCommandableGrpcClientV1() *RolesCommandableGrpcClientV1
func NewRolesCommandableGrpcClientV1WithConfig ¶
func NewRolesCommandableGrpcClientV1WithConfig(config *cconf.ConfigParams) *RolesCommandableGrpcClientV1
func (*RolesCommandableGrpcClientV1) GetRolesByFilter ¶
func (c *RolesCommandableGrpcClientV1) GetRolesByFilter(ctx context.Context, correlationId string, filter *data.FilterParams, paging *data.PagingParams) (result data.DataPage[*UserRolesV1], err error)
func (*RolesCommandableGrpcClientV1) GetRolesById ¶
func (*RolesCommandableGrpcClientV1) GrantRoles ¶
func (*RolesCommandableGrpcClientV1) RevokeRoles ¶
type RolesCommandableHttpClientV1 ¶
type RolesCommandableHttpClientV1 struct {
*cclients.CommandableHttpClient
}
func NewRolesCommandableHttpClientV1 ¶
func NewRolesCommandableHttpClientV1() *RolesCommandableHttpClientV1
func (*RolesCommandableHttpClientV1) GetRolesByFilter ¶
func (c *RolesCommandableHttpClientV1) GetRolesByFilter(ctx context.Context, correlationId string, filter *data.FilterParams, paging *data.PagingParams) (result cdata.DataPage[*UserRolesV1], err error)
func (*RolesCommandableHttpClientV1) GetRolesById ¶
func (*RolesCommandableHttpClientV1) GrantRoles ¶
func (*RolesCommandableHttpClientV1) RevokeRoles ¶
type RolesMockClientV1 ¶
type RolesMockClientV1 struct {
// contains filtered or unexported fields
}
func NewRolesMockClientV1 ¶
func NewRolesMockClientV1() *RolesMockClientV1
func (*RolesMockClientV1) GetRolesByFilter ¶
func (c *RolesMockClientV1) GetRolesByFilter(ctx context.Context, correlationId string, filter *data.FilterParams, paging *data.PagingParams) (result data.DataPage[*UserRolesV1], err error)
func (*RolesMockClientV1) GetRolesById ¶
func (*RolesMockClientV1) GrantRoles ¶
func (*RolesMockClientV1) RevokeRoles ¶
type RolesNullClientV1 ¶
type RolesNullClientV1 struct { }
func NewRolesNullClientV1 ¶
func NewRolesNullClientV1() *RolesNullClientV1
func (*RolesNullClientV1) GetRolesByFilter ¶
func (c *RolesNullClientV1) GetRolesByFilter(ctx context.Context, correlationId string, filter *data.FilterParams, paging *data.PagingParams) (result data.DataPage[*UserRolesV1], err error)
func (*RolesNullClientV1) GetRolesById ¶
func (*RolesNullClientV1) GrantRoles ¶
func (*RolesNullClientV1) RevokeRoles ¶
type UserRolesV1 ¶
type UserRolesV1 struct { Id string `json:"id"` Roles []string `json:"roles"` UpdateTime time.Time `json:"update_time"` }
func EmptyUserRolesV1 ¶
func EmptyUserRolesV1() *UserRolesV1
func NewUserRolesV1 ¶
func NewUserRolesV1(id string, roles []string) *UserRolesV1
Click to show internal directories.
Click to hide internal directories.