version1

package
v1.1.0-7 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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) Authorize

func (c *RoleGrpcClientV1) Authorize(ctx context.Context, correlationId string, userId string, roles []string) (result bool, err error)

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 (c *RoleGrpcClientV1) GetRolesById(ctx context.Context, correlationId string, userId string) (result []string, err error)

func (*RoleGrpcClientV1) GrantRoles

func (c *RoleGrpcClientV1) GrantRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

func (*RoleGrpcClientV1) RevokeRoles

func (c *RoleGrpcClientV1) RevokeRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

func (*RoleGrpcClientV1) SetRoles

func (c *RoleGrpcClientV1) SetRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

type RolesCommandableGrpcClientV1

type RolesCommandableGrpcClientV1 struct {
	*clients.CommandableGrpcClient
}

func NewRolesCommandableGrpcClientV1

func NewRolesCommandableGrpcClientV1() *RolesCommandableGrpcClientV1

func NewRolesCommandableGrpcClientV1WithConfig

func NewRolesCommandableGrpcClientV1WithConfig(config *cconf.ConfigParams) *RolesCommandableGrpcClientV1

func (*RolesCommandableGrpcClientV1) Authorize

func (c *RolesCommandableGrpcClientV1) Authorize(ctx context.Context, correlationId string, userId string, roles []string) (result bool, err error)

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 (c *RolesCommandableGrpcClientV1) GetRolesById(ctx context.Context, correlationId string, userId string) (result []string, err error)

func (*RolesCommandableGrpcClientV1) GrantRoles

func (c *RolesCommandableGrpcClientV1) GrantRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

func (*RolesCommandableGrpcClientV1) RevokeRoles

func (c *RolesCommandableGrpcClientV1) RevokeRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

func (*RolesCommandableGrpcClientV1) SetRoles

func (c *RolesCommandableGrpcClientV1) SetRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

type RolesCommandableHttpClientV1

type RolesCommandableHttpClientV1 struct {
	*cclients.CommandableHttpClient
}

func NewRolesCommandableHttpClientV1

func NewRolesCommandableHttpClientV1() *RolesCommandableHttpClientV1

func (*RolesCommandableHttpClientV1) Authorize

func (c *RolesCommandableHttpClientV1) Authorize(ctx context.Context, correlationId string, userId string, roles []string) (result bool, err error)

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 (c *RolesCommandableHttpClientV1) GetRolesById(ctx context.Context, correlationId string, userId string) (result []string, err error)

func (*RolesCommandableHttpClientV1) GrantRoles

func (c *RolesCommandableHttpClientV1) GrantRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

func (*RolesCommandableHttpClientV1) RevokeRoles

func (c *RolesCommandableHttpClientV1) RevokeRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

func (*RolesCommandableHttpClientV1) SetRoles

func (c *RolesCommandableHttpClientV1) SetRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

type RolesMockClientV1

type RolesMockClientV1 struct {
	// contains filtered or unexported fields
}

func NewRolesMockClientV1

func NewRolesMockClientV1() *RolesMockClientV1

func (*RolesMockClientV1) Authorize

func (c *RolesMockClientV1) Authorize(ctx context.Context, correlationId string, userId string, roles []string) (result bool, err error)

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 (c *RolesMockClientV1) GetRolesById(ctx context.Context, correlationId string, userId string) (result []string, err error)

func (*RolesMockClientV1) GrantRoles

func (c *RolesMockClientV1) GrantRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

func (*RolesMockClientV1) RevokeRoles

func (c *RolesMockClientV1) RevokeRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

func (*RolesMockClientV1) SetRoles

func (c *RolesMockClientV1) SetRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

type RolesNullClientV1

type RolesNullClientV1 struct {
}

func NewRolesNullClientV1

func NewRolesNullClientV1() *RolesNullClientV1

func (*RolesNullClientV1) Authorize

func (c *RolesNullClientV1) Authorize(ctx context.Context, correlationId string, userId string, roles []string) (result bool, err error)

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 (c *RolesNullClientV1) GetRolesById(ctx context.Context, correlationId string, userId string) (result []string, err error)

func (*RolesNullClientV1) GrantRoles

func (c *RolesNullClientV1) GrantRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

func (*RolesNullClientV1) RevokeRoles

func (c *RolesNullClientV1) RevokeRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

func (*RolesNullClientV1) SetRoles

func (c *RolesNullClientV1) SetRoles(ctx context.Context, correlationId string, userId string, roles []string) (result []string, err error)

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

Jump to

Keyboard shortcuts

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