Documentation ¶
Index ¶
- type Client
- type ClientOptionFunc
- func WithAccessTokenType(accessTokenType core.AccessTokenType) ClientOptionFunc
- func WithEnableTokenCache(enableTokenCache bool) ClientOptionFunc
- func WithHeaders(header http.Header) ClientOptionFunc
- func WithHttpClient(httpClient core.HttpClient) ClientOptionFunc
- func WithLogLevel(logLevel core.LogLevel) ClientOptionFunc
- func WithLogReqAtDebug(printReqRespLog bool) ClientOptionFunc
- func WithLogger(logger core.Logger) ClientOptionFunc
- func WithOpenBaseUrl(baseUrl string) ClientOptionFunc
- func WithReqTimeout(reqTimeout time.Duration) ClientOptionFunc
- func WithTokenCache(cache core.Cache) ClientOptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { View *view.ViewService // 视图 Attachment *attachment.AttachmentService // 附件 Field *field.FieldService // 字段 WorkItemConf *workitem_conf.WorkItemConfService // 工作项配置 Chat *chat.ChatService // 群组 Comment *comment.CommentService // 评论 WorkItem *workitem.WorkItemService // 工作项 User *user.UserService // 用户 Project *project.ProjectService // 空间 Task *task.TaskService // 子任务 RoleConf *role_conf.RoleConfService // 流程角色 ProjectRelation *project_relation.ProjectRelationService // 空间关联 Plugin *plugin.PluginService // token Measure *measure.MeasureService // 度量 WbsViewDraft *wbs_view_draft.WbsViewDraftService // 计划表草稿 // contains filtered or unexported fields }
func NewClient ¶
func NewClient(appId, appSecret string, options ...ClientOptionFunc) *Client
type ClientOptionFunc ¶
func WithAccessTokenType ¶
func WithAccessTokenType(accessTokenType core.AccessTokenType) ClientOptionFunc
func WithEnableTokenCache ¶
func WithEnableTokenCache(enableTokenCache bool) ClientOptionFunc
func WithHttpClient ¶
func WithHttpClient(httpClient core.HttpClient) ClientOptionFunc
func WithLogLevel ¶
func WithLogLevel(logLevel core.LogLevel) ClientOptionFunc
func WithLogReqAtDebug ¶
func WithLogReqAtDebug(printReqRespLog bool) ClientOptionFunc
func WithLogger ¶
func WithLogger(logger core.Logger) ClientOptionFunc
func WithOpenBaseUrl ¶
func WithOpenBaseUrl(baseUrl string) ClientOptionFunc
func WithReqTimeout ¶
func WithReqTimeout(reqTimeout time.Duration) ClientOptionFunc
func WithTokenCache ¶
func WithTokenCache(cache core.Cache) ClientOptionFunc
Click to show internal directories.
Click to hide internal directories.