Documentation
¶
Index ¶
- type DocTabsRequest
- type DocsClient
- type DocsHTTPClient
- type DriveClient
- type DriveHTTPClient
- func (c *DriveHTTPClient) ExportDoc(ctx context.Context, token string, req ExportRequest) ([]byte, error)
- func (c *DriveHTTPClient) FileMeta(ctx context.Context, token string, req FileMetaRequest) (map[string]any, error)
- func (c *DriveHTTPClient) Probe(ctx context.Context, token string) error
- func (c *DriveHTTPClient) Search(ctx context.Context, token string, req SearchRequest) (map[string]any, error)
- func (c *DriveHTTPClient) Upload(ctx context.Context, token string, req UploadRequest) (map[string]any, error)
- type ExportRequest
- type FileMetaRequest
- type SearchRequest
- type UploadRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocTabsRequest ¶
type DocTabsRequest struct {
ID string
}
type DocsClient ¶
type DocsHTTPClient ¶
type DocsHTTPClient struct {
// contains filtered or unexported fields
}
func NewDocsClient ¶
func NewDocsClient(httpClient *http.Client) *DocsHTTPClient
func (*DocsHTTPClient) DocTabs ¶
func (c *DocsHTTPClient) DocTabs(ctx context.Context, token string, req DocTabsRequest) (map[string]any, error)
type DriveClient ¶
type DriveClient interface {
Probe(ctx context.Context, token string) error
Search(ctx context.Context, token string, req SearchRequest) (map[string]any, error)
FileMeta(ctx context.Context, token string, req FileMetaRequest) (map[string]any, error)
ExportDoc(ctx context.Context, token string, req ExportRequest) ([]byte, error)
Upload(ctx context.Context, token string, req UploadRequest) (map[string]any, error)
}
type DriveHTTPClient ¶
type DriveHTTPClient struct {
// contains filtered or unexported fields
}
func NewDriveClient ¶
func NewDriveClient(httpClient *http.Client) *DriveHTTPClient
func (*DriveHTTPClient) ExportDoc ¶
func (c *DriveHTTPClient) ExportDoc(ctx context.Context, token string, req ExportRequest) ([]byte, error)
func (*DriveHTTPClient) FileMeta ¶
func (c *DriveHTTPClient) FileMeta(ctx context.Context, token string, req FileMetaRequest) (map[string]any, error)
func (*DriveHTTPClient) Probe ¶
func (c *DriveHTTPClient) Probe(ctx context.Context, token string) error
func (*DriveHTTPClient) Search ¶
func (c *DriveHTTPClient) Search(ctx context.Context, token string, req SearchRequest) (map[string]any, error)
func (*DriveHTTPClient) Upload ¶
func (c *DriveHTTPClient) Upload(ctx context.Context, token string, req UploadRequest) (map[string]any, error)
type ExportRequest ¶
type FileMetaRequest ¶
type SearchRequest ¶
Click to show internal directories.
Click to hide internal directories.