Documentation ¶
Index ¶
- type UCClient
- func (c *UCClient) FindUsers(ids []string) ([]User, error)
- func (c *UCClient) FindUsersByKey(key string) ([]User, error)
- func (c *UCClient) GetUser(userID string) (*User, error)
- func (c *UCClient) InvalidateServerToken()
- func (c *UCClient) ListUCAuditsByEventTime(ucAuditReq apistructs.UCAuditsListRequest) (*apistructs.UCAuditsListResponse, error)
- func (c *UCClient) ListUCAuditsByLastID(ucAuditReq apistructs.UCAuditsListRequest) (*apistructs.UCAuditsListResponse, error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UCClient ¶
type UCClient struct {
// contains filtered or unexported fields
}
UCClient UC客户端
func (*UCClient) FindUsersByKey ¶
FindUsersByKey 根据key查找用户,key可匹配用户名/邮箱/手机号
func (*UCClient) InvalidateServerToken ¶
func (c *UCClient) InvalidateServerToken()
InvalidateServerToken 使 server token 失效
func (*UCClient) ListUCAuditsByEventTime ¶
func (c *UCClient) ListUCAuditsByEventTime(ucAuditReq apistructs.UCAuditsListRequest) (*apistructs.UCAuditsListResponse, error)
ListUCAuditsByEventTime 根据时间获取uc的审计事件
func (*UCClient) ListUCAuditsByLastID ¶
func (c *UCClient) ListUCAuditsByLastID(ucAuditReq apistructs.UCAuditsListRequest) (*apistructs.UCAuditsListResponse, error)
ListUCAuditsByLastID 根据lastID获取uc的审计事件
Click to show internal directories.
Click to hide internal directories.