insight

package
v1.2.21 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package insightiface provides an interface to enable mocking the INSIGHT service client for testing your code.

It is important to note that this interface will have breaking changes when the service model is updated and adds new API operations, paginators, and waiters.

Index

Constants

View Source
const (
	ServiceName = "insight"   // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "insight"   // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpertInvokeAPIInput added in v1.2.21

type ExpertInvokeAPIInput struct {
	Asr *string `type:"string" json:",omitempty"`

	ClassifiedAgentId *int64 `type:"int64" json:",omitempty"`

	ConfigId *int64 `type:"int64" json:",omitempty"`

	Content *string `type:"string" json:",omitempty"`

	DomainLevel *int32 `type:"int32" json:",omitempty"`

	// ExpertId is a required field
	ExpertId *int64 `type:"int64" json:",omitempty" required:"true"`

	FansCnt *int64 `type:"int64" json:",omitempty"`

	Ocr *string `type:"string" json:",omitempty"`

	OriginId *int64 `type:"int64" json:",omitempty"`

	Title *string `type:"string" json:",omitempty"`

	Url *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ExpertInvokeAPIInput) GoString added in v1.2.21

func (s ExpertInvokeAPIInput) GoString() string

GoString returns the string representation

func (*ExpertInvokeAPIInput) SetAsr added in v1.2.21

SetAsr sets the Asr field's value.

func (*ExpertInvokeAPIInput) SetClassifiedAgentId added in v1.2.21

func (s *ExpertInvokeAPIInput) SetClassifiedAgentId(v int64) *ExpertInvokeAPIInput

SetClassifiedAgentId sets the ClassifiedAgentId field's value.

func (*ExpertInvokeAPIInput) SetConfigId added in v1.2.21

func (s *ExpertInvokeAPIInput) SetConfigId(v int64) *ExpertInvokeAPIInput

SetConfigId sets the ConfigId field's value.

func (*ExpertInvokeAPIInput) SetContent added in v1.2.21

SetContent sets the Content field's value.

func (*ExpertInvokeAPIInput) SetDomainLevel added in v1.2.21

func (s *ExpertInvokeAPIInput) SetDomainLevel(v int32) *ExpertInvokeAPIInput

SetDomainLevel sets the DomainLevel field's value.

func (*ExpertInvokeAPIInput) SetExpertId added in v1.2.21

func (s *ExpertInvokeAPIInput) SetExpertId(v int64) *ExpertInvokeAPIInput

SetExpertId sets the ExpertId field's value.

func (*ExpertInvokeAPIInput) SetFansCnt added in v1.2.21

SetFansCnt sets the FansCnt field's value.

func (*ExpertInvokeAPIInput) SetOcr added in v1.2.21

SetOcr sets the Ocr field's value.

func (*ExpertInvokeAPIInput) SetOriginId added in v1.2.21

func (s *ExpertInvokeAPIInput) SetOriginId(v int64) *ExpertInvokeAPIInput

SetOriginId sets the OriginId field's value.

func (*ExpertInvokeAPIInput) SetTitle added in v1.2.21

SetTitle sets the Title field's value.

func (*ExpertInvokeAPIInput) SetUrl added in v1.2.21

SetUrl sets the Url field's value.

func (ExpertInvokeAPIInput) String added in v1.2.21

func (s ExpertInvokeAPIInput) String() string

String returns the string representation

func (*ExpertInvokeAPIInput) Validate added in v1.2.21

func (s *ExpertInvokeAPIInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ExpertInvokeAPIOutput added in v1.2.21

type ExpertInvokeAPIOutput struct {
	Metadata *response.ResponseMetadata

	Result *ResultForExpertInvokeAPIOutput `type:"structure" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ExpertInvokeAPIOutput) GoString added in v1.2.21

func (s ExpertInvokeAPIOutput) GoString() string

GoString returns the string representation

func (*ExpertInvokeAPIOutput) SetResult added in v1.2.21

SetResult sets the Result field's value.

func (ExpertInvokeAPIOutput) String added in v1.2.21

func (s ExpertInvokeAPIOutput) String() string

String returns the string representation

type INSIGHT

type INSIGHT struct {
	*client.Client
}

INSIGHT provides the API operation methods for making requests to INSIGHT. See this package's package overview docs for details on the service.

INSIGHT methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*volcengine.Config) *INSIGHT

New create int can support ssl or region locate set

func (*INSIGHT) ExpertInvokeAPI added in v1.2.21

func (c *INSIGHT) ExpertInvokeAPI(input *ExpertInvokeAPIInput) (*ExpertInvokeAPIOutput, error)

ExpertInvokeAPI API operation for INSIGHT.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for INSIGHT's API operation ExpertInvokeAPI for usage and error information.

func (*INSIGHT) ExpertInvokeAPICommon added in v1.2.21

func (c *INSIGHT) ExpertInvokeAPICommon(input *map[string]interface{}) (*map[string]interface{}, error)

ExpertInvokeAPICommon API operation for INSIGHT.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for INSIGHT's API operation ExpertInvokeAPICommon for usage and error information.

func (*INSIGHT) ExpertInvokeAPICommonRequest added in v1.2.21

func (c *INSIGHT) ExpertInvokeAPICommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

ExpertInvokeAPICommonRequest generates a "volcengine/request.Request" representing the client's request for the ExpertInvokeAPICommon operation. The "output" return value will be populated with the ExpertInvokeAPICommon request's response once the request completes successfully.

Use "Send" method on the returned ExpertInvokeAPICommon Request to send the API call to the service. the "output" return value is not valid until after ExpertInvokeAPICommon Send returns without error.

See ExpertInvokeAPICommon for more information on using the ExpertInvokeAPICommon API call, and error handling.

// Example sending a request using the ExpertInvokeAPICommonRequest method.
req, resp := client.ExpertInvokeAPICommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*INSIGHT) ExpertInvokeAPICommonWithContext added in v1.2.21

func (c *INSIGHT) ExpertInvokeAPICommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

ExpertInvokeAPICommonWithContext is the same as ExpertInvokeAPICommon with the addition of the ability to pass a context and additional request options.

See ExpertInvokeAPICommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*INSIGHT) ExpertInvokeAPIRequest added in v1.2.21

func (c *INSIGHT) ExpertInvokeAPIRequest(input *ExpertInvokeAPIInput) (req *request.Request, output *ExpertInvokeAPIOutput)

ExpertInvokeAPIRequest generates a "volcengine/request.Request" representing the client's request for the ExpertInvokeAPI operation. The "output" return value will be populated with the ExpertInvokeAPICommon request's response once the request completes successfully.

Use "Send" method on the returned ExpertInvokeAPICommon Request to send the API call to the service. the "output" return value is not valid until after ExpertInvokeAPICommon Send returns without error.

See ExpertInvokeAPI for more information on using the ExpertInvokeAPI API call, and error handling.

// Example sending a request using the ExpertInvokeAPIRequest method.
req, resp := client.ExpertInvokeAPIRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*INSIGHT) ExpertInvokeAPIWithContext added in v1.2.21

func (c *INSIGHT) ExpertInvokeAPIWithContext(ctx volcengine.Context, input *ExpertInvokeAPIInput, opts ...request.Option) (*ExpertInvokeAPIOutput, error)

ExpertInvokeAPIWithContext is the same as ExpertInvokeAPI with the addition of the ability to pass a context and additional request options.

See ExpertInvokeAPI for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*INSIGHT) ListSubsTaskAPI added in v1.2.21

func (c *INSIGHT) ListSubsTaskAPI(input *ListSubsTaskAPIInput) (*ListSubsTaskAPIOutput, error)

ListSubsTaskAPI API operation for INSIGHT.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for INSIGHT's API operation ListSubsTaskAPI for usage and error information.

func (*INSIGHT) ListSubsTaskAPICommon added in v1.2.21

func (c *INSIGHT) ListSubsTaskAPICommon(input *map[string]interface{}) (*map[string]interface{}, error)

ListSubsTaskAPICommon API operation for INSIGHT.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for INSIGHT's API operation ListSubsTaskAPICommon for usage and error information.

func (*INSIGHT) ListSubsTaskAPICommonRequest added in v1.2.21

func (c *INSIGHT) ListSubsTaskAPICommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

ListSubsTaskAPICommonRequest generates a "volcengine/request.Request" representing the client's request for the ListSubsTaskAPICommon operation. The "output" return value will be populated with the ListSubsTaskAPICommon request's response once the request completes successfully.

Use "Send" method on the returned ListSubsTaskAPICommon Request to send the API call to the service. the "output" return value is not valid until after ListSubsTaskAPICommon Send returns without error.

See ListSubsTaskAPICommon for more information on using the ListSubsTaskAPICommon API call, and error handling.

// Example sending a request using the ListSubsTaskAPICommonRequest method.
req, resp := client.ListSubsTaskAPICommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*INSIGHT) ListSubsTaskAPICommonWithContext added in v1.2.21

func (c *INSIGHT) ListSubsTaskAPICommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

ListSubsTaskAPICommonWithContext is the same as ListSubsTaskAPICommon with the addition of the ability to pass a context and additional request options.

See ListSubsTaskAPICommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*INSIGHT) ListSubsTaskAPIRequest added in v1.2.21

func (c *INSIGHT) ListSubsTaskAPIRequest(input *ListSubsTaskAPIInput) (req *request.Request, output *ListSubsTaskAPIOutput)

ListSubsTaskAPIRequest generates a "volcengine/request.Request" representing the client's request for the ListSubsTaskAPI operation. The "output" return value will be populated with the ListSubsTaskAPICommon request's response once the request completes successfully.

Use "Send" method on the returned ListSubsTaskAPICommon Request to send the API call to the service. the "output" return value is not valid until after ListSubsTaskAPICommon Send returns without error.

See ListSubsTaskAPI for more information on using the ListSubsTaskAPI API call, and error handling.

// Example sending a request using the ListSubsTaskAPIRequest method.
req, resp := client.ListSubsTaskAPIRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*INSIGHT) ListSubsTaskAPIWithContext added in v1.2.21

func (c *INSIGHT) ListSubsTaskAPIWithContext(ctx volcengine.Context, input *ListSubsTaskAPIInput, opts ...request.Option) (*ListSubsTaskAPIOutput, error)

ListSubsTaskAPIWithContext is the same as ListSubsTaskAPI with the addition of the ability to pass a context and additional request options.

See ListSubsTaskAPI for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*INSIGHT) PullPost

func (c *INSIGHT) PullPost(input *PullPostInput) (*PullPostOutput, error)

PullPost API operation for INSIGHT.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for INSIGHT's API operation PullPost for usage and error information.

func (*INSIGHT) PullPostCommon

func (c *INSIGHT) PullPostCommon(input *map[string]interface{}) (*map[string]interface{}, error)

PullPostCommon API operation for INSIGHT.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for INSIGHT's API operation PullPostCommon for usage and error information.

func (*INSIGHT) PullPostCommonRequest

func (c *INSIGHT) PullPostCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

PullPostCommonRequest generates a "volcengine/request.Request" representing the client's request for the PullPostCommon operation. The "output" return value will be populated with the PullPostCommon request's response once the request completes successfully.

Use "Send" method on the returned PullPostCommon Request to send the API call to the service. the "output" return value is not valid until after PullPostCommon Send returns without error.

See PullPostCommon for more information on using the PullPostCommon API call, and error handling.

// Example sending a request using the PullPostCommonRequest method.
req, resp := client.PullPostCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*INSIGHT) PullPostCommonWithContext

func (c *INSIGHT) PullPostCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

PullPostCommonWithContext is the same as PullPostCommon with the addition of the ability to pass a context and additional request options.

See PullPostCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*INSIGHT) PullPostRequest

func (c *INSIGHT) PullPostRequest(input *PullPostInput) (req *request.Request, output *PullPostOutput)

PullPostRequest generates a "volcengine/request.Request" representing the client's request for the PullPost operation. The "output" return value will be populated with the PullPostCommon request's response once the request completes successfully.

Use "Send" method on the returned PullPostCommon Request to send the API call to the service. the "output" return value is not valid until after PullPostCommon Send returns without error.

See PullPost for more information on using the PullPost API call, and error handling.

// Example sending a request using the PullPostRequest method.
req, resp := client.PullPostRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*INSIGHT) PullPostWithContext

func (c *INSIGHT) PullPostWithContext(ctx volcengine.Context, input *PullPostInput, opts ...request.Option) (*PullPostOutput, error)

PullPostWithContext is the same as PullPost with the addition of the ability to pass a context and additional request options.

See PullPost for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type INSIGHTAPI

type INSIGHTAPI interface {
	ExpertInvokeAPICommon(*map[string]interface{}) (*map[string]interface{}, error)
	ExpertInvokeAPICommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ExpertInvokeAPICommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ExpertInvokeAPI(*ExpertInvokeAPIInput) (*ExpertInvokeAPIOutput, error)
	ExpertInvokeAPIWithContext(volcengine.Context, *ExpertInvokeAPIInput, ...request.Option) (*ExpertInvokeAPIOutput, error)
	ExpertInvokeAPIRequest(*ExpertInvokeAPIInput) (*request.Request, *ExpertInvokeAPIOutput)

	ListSubsTaskAPICommon(*map[string]interface{}) (*map[string]interface{}, error)
	ListSubsTaskAPICommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ListSubsTaskAPICommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ListSubsTaskAPI(*ListSubsTaskAPIInput) (*ListSubsTaskAPIOutput, error)
	ListSubsTaskAPIWithContext(volcengine.Context, *ListSubsTaskAPIInput, ...request.Option) (*ListSubsTaskAPIOutput, error)
	ListSubsTaskAPIRequest(*ListSubsTaskAPIInput) (*request.Request, *ListSubsTaskAPIOutput)

	PullPostCommon(*map[string]interface{}) (*map[string]interface{}, error)
	PullPostCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	PullPostCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	PullPost(*PullPostInput) (*PullPostOutput, error)
	PullPostWithContext(volcengine.Context, *PullPostInput, ...request.Option) (*PullPostOutput, error)
	PullPostRequest(*PullPostInput) (*request.Request, *PullPostOutput)
}

INSIGHTAPI provides an interface to enable mocking the insight.INSIGHT service client's API operation,

// volcengine sdk func uses an SDK service client to make a request to
// INSIGHT.
func myFunc(svc INSIGHTAPI) bool {
    // Make svc.ExpertInvokeAPI request
}

func main() {
    sess := session.New()
    svc := insight.New(sess)

    myFunc(svc)
}

type InsightSaasTaskListForListSubsTaskAPIOutput added in v1.2.21

type InsightSaasTaskListForListSubsTaskAPIOutput struct {
	AccountID *string `type:"string"`

	Aim *string `type:"string"`

	CreateTime *string `type:"string"`

	DialogID *string `type:"string"`

	Dsl *string `type:"string"`

	Judge *string `type:"string"`

	ModifyTime *int64 `type:"int64"`

	Name *string `type:"string"`

	Precise *string `type:"string"`

	PreviewList []*PreviewListForListSubsTaskAPIOutput `type:"list"`

	PushStatus *string `type:"string"`

	Recall *string `type:"string"`

	Status *string `type:"string"`

	TaskID *int32 `type:"int32"`
	// contains filtered or unexported fields
}

func (InsightSaasTaskListForListSubsTaskAPIOutput) GoString added in v1.2.21

GoString returns the string representation

func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetAccountID added in v1.2.21

SetAccountID sets the AccountID field's value.

func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetAim added in v1.2.21

SetAim sets the Aim field's value.

func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetCreateTime added in v1.2.21

SetCreateTime sets the CreateTime field's value.

func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetDialogID added in v1.2.21

SetDialogID sets the DialogID field's value.

func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetDsl added in v1.2.21

SetDsl sets the Dsl field's value.

func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetJudge added in v1.2.21

SetJudge sets the Judge field's value.

func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetModifyTime added in v1.2.21

SetModifyTime sets the ModifyTime field's value.

func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetName added in v1.2.21

SetName sets the Name field's value.

func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetPrecise added in v1.2.21

SetPrecise sets the Precise field's value.

func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetPreviewList added in v1.2.21

SetPreviewList sets the PreviewList field's value.

func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetPushStatus added in v1.2.21

SetPushStatus sets the PushStatus field's value.

func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetRecall added in v1.2.21

SetRecall sets the Recall field's value.

func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetStatus added in v1.2.21

SetStatus sets the Status field's value.

func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetTaskID added in v1.2.21

SetTaskID sets the TaskID field's value.

func (InsightSaasTaskListForListSubsTaskAPIOutput) String added in v1.2.21

String returns the string representation

type ItemDocForPullPostOutput

type ItemDocForPullPostOutput struct {
	Asr *string `type:"string" json:",omitempty"`

	Content *string `type:"string" json:",omitempty"`

	DedupID *string `type:"string" json:",omitempty"`

	Emotion *string `type:"string" json:",omitempty"`

	FansCount *int32 `type:"int32" json:",omitempty"`

	IsFollow *bool `type:"boolean" json:",omitempty"`

	Locations []*LocationForPullPostOutput `type:"list" json:"locations,omitempty"`

	MainDomain *string `type:"string" json:",omitempty"`

	MediaName *string `type:"string" json:",omitempty"`

	Ocr *string `type:"string" json:",omitempty"`

	OcrHigh *string `type:"string" json:",omitempty"`

	PostID *string `type:"string" json:",omitempty"`

	PublishTime *string `type:"string" json:",omitempty"`

	Reason *string `type:"string" json:",omitempty"`

	RiskType []*string `type:"list" json:",omitempty"`

	Summary *string `type:"string" json:",omitempty"`

	Title *string `type:"string" json:",omitempty"`

	Url *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ItemDocForPullPostOutput) GoString

func (s ItemDocForPullPostOutput) GoString() string

GoString returns the string representation

func (*ItemDocForPullPostOutput) SetAsr

SetAsr sets the Asr field's value.

func (*ItemDocForPullPostOutput) SetContent

SetContent sets the Content field's value.

func (*ItemDocForPullPostOutput) SetDedupID

SetDedupID sets the DedupID field's value.

func (*ItemDocForPullPostOutput) SetEmotion

SetEmotion sets the Emotion field's value.

func (*ItemDocForPullPostOutput) SetFansCount

SetFansCount sets the FansCount field's value.

func (*ItemDocForPullPostOutput) SetIsFollow

SetIsFollow sets the IsFollow field's value.

func (*ItemDocForPullPostOutput) SetLocations

SetLocations sets the Locations field's value.

func (*ItemDocForPullPostOutput) SetMainDomain

SetMainDomain sets the MainDomain field's value.

func (*ItemDocForPullPostOutput) SetMediaName

SetMediaName sets the MediaName field's value.

func (*ItemDocForPullPostOutput) SetOcr

SetOcr sets the Ocr field's value.

func (*ItemDocForPullPostOutput) SetOcrHigh

SetOcrHigh sets the OcrHigh field's value.

func (*ItemDocForPullPostOutput) SetPostID

SetPostID sets the PostID field's value.

func (*ItemDocForPullPostOutput) SetPublishTime

SetPublishTime sets the PublishTime field's value.

func (*ItemDocForPullPostOutput) SetReason

SetReason sets the Reason field's value.

func (*ItemDocForPullPostOutput) SetRiskType

SetRiskType sets the RiskType field's value.

func (*ItemDocForPullPostOutput) SetSummary

SetSummary sets the Summary field's value.

func (*ItemDocForPullPostOutput) SetTitle

SetTitle sets the Title field's value.

func (*ItemDocForPullPostOutput) SetUrl

SetUrl sets the Url field's value.

func (ItemDocForPullPostOutput) String

func (s ItemDocForPullPostOutput) String() string

String returns the string representation

type ListSubsTaskAPIInput added in v1.2.21

type ListSubsTaskAPIInput struct {
	PageNum *int64 `type:"int64"`

	PageSize *int64 `type:"int64"`

	Status *int32 `type:"int32"`

	TaskName *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListSubsTaskAPIInput) GoString added in v1.2.21

func (s ListSubsTaskAPIInput) GoString() string

GoString returns the string representation

func (*ListSubsTaskAPIInput) SetPageNum added in v1.2.21

SetPageNum sets the PageNum field's value.

func (*ListSubsTaskAPIInput) SetPageSize added in v1.2.21

func (s *ListSubsTaskAPIInput) SetPageSize(v int64) *ListSubsTaskAPIInput

SetPageSize sets the PageSize field's value.

func (*ListSubsTaskAPIInput) SetStatus added in v1.2.21

SetStatus sets the Status field's value.

func (*ListSubsTaskAPIInput) SetTaskName added in v1.2.21

SetTaskName sets the TaskName field's value.

func (ListSubsTaskAPIInput) String added in v1.2.21

func (s ListSubsTaskAPIInput) String() string

String returns the string representation

type ListSubsTaskAPIOutput added in v1.2.21

type ListSubsTaskAPIOutput struct {
	Metadata *response.ResponseMetadata

	InsightSaasTaskList []*InsightSaasTaskListForListSubsTaskAPIOutput `type:"list"`

	Total *int64 `type:"int64"`
	// contains filtered or unexported fields
}

func (ListSubsTaskAPIOutput) GoString added in v1.2.21

func (s ListSubsTaskAPIOutput) GoString() string

GoString returns the string representation

func (*ListSubsTaskAPIOutput) SetInsightSaasTaskList added in v1.2.21

SetInsightSaasTaskList sets the InsightSaasTaskList field's value.

func (*ListSubsTaskAPIOutput) SetTotal added in v1.2.21

SetTotal sets the Total field's value.

func (ListSubsTaskAPIOutput) String added in v1.2.21

func (s ListSubsTaskAPIOutput) String() string

String returns the string representation

type LocationForPullPostOutput

type LocationForPullPostOutput struct {
	City *string `type:"string" json:",omitempty"`

	CityCode *string `type:"string" json:",omitempty"`

	District *string `type:"string" json:",omitempty"`

	DistrictCode *string `type:"string" json:",omitempty"`

	Location *string `type:"string" json:",omitempty"`

	Name *string `type:"string" json:",omitempty"`

	Province *string `type:"string" json:",omitempty"`

	Region *string `type:"string" json:",omitempty"`

	RegionCode *string `type:"string" json:",omitempty"`

	Town *string `type:"string" json:",omitempty"`

	TownCode *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (LocationForPullPostOutput) GoString

func (s LocationForPullPostOutput) GoString() string

GoString returns the string representation

func (*LocationForPullPostOutput) SetCity

SetCity sets the City field's value.

func (*LocationForPullPostOutput) SetCityCode

SetCityCode sets the CityCode field's value.

func (*LocationForPullPostOutput) SetDistrict

SetDistrict sets the District field's value.

func (*LocationForPullPostOutput) SetDistrictCode

SetDistrictCode sets the DistrictCode field's value.

func (*LocationForPullPostOutput) SetLocation

SetLocation sets the Location field's value.

func (*LocationForPullPostOutput) SetName

SetName sets the Name field's value.

func (*LocationForPullPostOutput) SetProvince

SetProvince sets the Province field's value.

func (*LocationForPullPostOutput) SetRegion

SetRegion sets the Region field's value.

func (*LocationForPullPostOutput) SetRegionCode

SetRegionCode sets the RegionCode field's value.

func (*LocationForPullPostOutput) SetTown

SetTown sets the Town field's value.

func (*LocationForPullPostOutput) SetTownCode

SetTownCode sets the TownCode field's value.

func (LocationForPullPostOutput) String

func (s LocationForPullPostOutput) String() string

String returns the string representation

type PreviewListForListSubsTaskAPIOutput added in v1.2.21

type PreviewListForListSubsTaskAPIOutput struct {
	PostID *string `type:"string"`

	Title *string `type:"string"`
	// contains filtered or unexported fields
}

func (PreviewListForListSubsTaskAPIOutput) GoString added in v1.2.21

GoString returns the string representation

func (*PreviewListForListSubsTaskAPIOutput) SetPostID added in v1.2.21

SetPostID sets the PostID field's value.

func (*PreviewListForListSubsTaskAPIOutput) SetTitle added in v1.2.21

SetTitle sets the Title field's value.

func (PreviewListForListSubsTaskAPIOutput) String added in v1.2.21

String returns the string representation

type PullPostInput

type PullPostInput struct {
	EndTime *string `type:"string" json:",omitempty"`

	PageToken *string `type:"string" json:",omitempty"`

	Size *int32 `type:"int32" json:",omitempty"`

	StartTime *string `type:"string" json:",omitempty"`

	// TaskID is a required field
	TaskID *int32 `type:"int32" json:",omitempty" required:"true"`
	// contains filtered or unexported fields
}

func (PullPostInput) GoString

func (s PullPostInput) GoString() string

GoString returns the string representation

func (*PullPostInput) SetEndTime

func (s *PullPostInput) SetEndTime(v string) *PullPostInput

SetEndTime sets the EndTime field's value.

func (*PullPostInput) SetPageToken

func (s *PullPostInput) SetPageToken(v string) *PullPostInput

SetPageToken sets the PageToken field's value.

func (*PullPostInput) SetSize

func (s *PullPostInput) SetSize(v int32) *PullPostInput

SetSize sets the Size field's value.

func (*PullPostInput) SetStartTime

func (s *PullPostInput) SetStartTime(v string) *PullPostInput

SetStartTime sets the StartTime field's value.

func (*PullPostInput) SetTaskID

func (s *PullPostInput) SetTaskID(v int32) *PullPostInput

SetTaskID sets the TaskID field's value.

func (PullPostInput) String

func (s PullPostInput) String() string

String returns the string representation

func (*PullPostInput) Validate

func (s *PullPostInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PullPostOutput

type PullPostOutput struct {
	Metadata *response.ResponseMetadata

	HasMore *bool `type:"boolean" json:",omitempty"`

	ItemDocs []*ItemDocForPullPostOutput `type:"list" json:",omitempty"`

	NextPageToken *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (PullPostOutput) GoString

func (s PullPostOutput) GoString() string

GoString returns the string representation

func (*PullPostOutput) SetHasMore

func (s *PullPostOutput) SetHasMore(v bool) *PullPostOutput

SetHasMore sets the HasMore field's value.

func (*PullPostOutput) SetItemDocs

SetItemDocs sets the ItemDocs field's value.

func (*PullPostOutput) SetNextPageToken

func (s *PullPostOutput) SetNextPageToken(v string) *PullPostOutput

SetNextPageToken sets the NextPageToken field's value.

func (PullPostOutput) String

func (s PullPostOutput) String() string

String returns the string representation

type ResultForExpertInvokeAPIOutput added in v1.2.21

type ResultForExpertInvokeAPIOutput struct {
	Asr *string `type:"string" json:",omitempty"`

	Content *string `type:"string" json:",omitempty"`

	DomainLevel *int32 `type:"int32" json:",omitempty"`

	FansCnt *int64 `type:"int64" json:",omitempty"`

	HasRisk *bool `type:"boolean" json:",omitempty"`

	Ocr *string `type:"string" json:",omitempty"`

	OriginId *string `type:"string" json:",omitempty"`

	Related *bool `type:"boolean" json:",omitempty"`

	RelatedReason *string `type:"string" json:",omitempty"`

	RiskLevel *string `type:"string" json:",omitempty"`

	RiskReason *string `type:"string" json:",omitempty"`

	RiskTags []*string `type:"list" json:",omitempty"`

	Suggestion *string `type:"string" json:",omitempty"`

	Summary *string `type:"string" json:",omitempty"`

	Title *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ResultForExpertInvokeAPIOutput) GoString added in v1.2.21

GoString returns the string representation

func (*ResultForExpertInvokeAPIOutput) SetAsr added in v1.2.21

SetAsr sets the Asr field's value.

func (*ResultForExpertInvokeAPIOutput) SetContent added in v1.2.21

SetContent sets the Content field's value.

func (*ResultForExpertInvokeAPIOutput) SetDomainLevel added in v1.2.21

SetDomainLevel sets the DomainLevel field's value.

func (*ResultForExpertInvokeAPIOutput) SetFansCnt added in v1.2.21

SetFansCnt sets the FansCnt field's value.

func (*ResultForExpertInvokeAPIOutput) SetHasRisk added in v1.2.21

SetHasRisk sets the HasRisk field's value.

func (*ResultForExpertInvokeAPIOutput) SetOcr added in v1.2.21

SetOcr sets the Ocr field's value.

func (*ResultForExpertInvokeAPIOutput) SetOriginId added in v1.2.21

SetOriginId sets the OriginId field's value.

func (*ResultForExpertInvokeAPIOutput) SetRelated added in v1.2.21

SetRelated sets the Related field's value.

func (*ResultForExpertInvokeAPIOutput) SetRelatedReason added in v1.2.21

SetRelatedReason sets the RelatedReason field's value.

func (*ResultForExpertInvokeAPIOutput) SetRiskLevel added in v1.2.21

SetRiskLevel sets the RiskLevel field's value.

func (*ResultForExpertInvokeAPIOutput) SetRiskReason added in v1.2.21

SetRiskReason sets the RiskReason field's value.

func (*ResultForExpertInvokeAPIOutput) SetRiskTags added in v1.2.21

SetRiskTags sets the RiskTags field's value.

func (*ResultForExpertInvokeAPIOutput) SetSuggestion added in v1.2.21

SetSuggestion sets the Suggestion field's value.

func (*ResultForExpertInvokeAPIOutput) SetSummary added in v1.2.21

SetSummary sets the Summary field's value.

func (*ResultForExpertInvokeAPIOutput) SetTitle added in v1.2.21

SetTitle sets the Title field's value.

func (ResultForExpertInvokeAPIOutput) String added in v1.2.21

String returns the string representation

Jump to

Keyboard shortcuts

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