wtn

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 wtniface provides an interface to enable mocking the WTN 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 = "wtn"       // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "wtn"       // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type AppListForListAppsOutput

type AppListForListAppsOutput struct {
	AppId *string `type:"string"`

	AppKey *string `type:"string"`

	AppName *string `type:"string"`

	CreateAt *string `type:"string"`

	SecondaryAppKey *string `type:"string"`

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

func (AppListForListAppsOutput) GoString

func (s AppListForListAppsOutput) GoString() string

GoString returns the string representation

func (*AppListForListAppsOutput) SetAppId

SetAppId sets the AppId field's value.

func (*AppListForListAppsOutput) SetAppKey

SetAppKey sets the AppKey field's value.

func (*AppListForListAppsOutput) SetAppName

SetAppName sets the AppName field's value.

func (*AppListForListAppsOutput) SetCreateAt

SetCreateAt sets the CreateAt field's value.

func (*AppListForListAppsOutput) SetSecondaryAppKey

func (s *AppListForListAppsOutput) SetSecondaryAppKey(v string) *AppListForListAppsOutput

SetSecondaryAppKey sets the SecondaryAppKey field's value.

func (*AppListForListAppsOutput) SetStatus

SetStatus sets the Status field's value.

func (AppListForListAppsOutput) String

func (s AppListForListAppsOutput) String() string

String returns the string representation

type AppListForListAppsV3Output

type AppListForListAppsV3Output struct {
	AppId *string `type:"string" json:",omitempty"`

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

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

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

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

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

func (AppListForListAppsV3Output) GoString

func (s AppListForListAppsV3Output) GoString() string

GoString returns the string representation

func (*AppListForListAppsV3Output) SetAppId

SetAppId sets the AppId field's value.

func (*AppListForListAppsV3Output) SetAppKey

SetAppKey sets the AppKey field's value.

func (*AppListForListAppsV3Output) SetAppName

SetAppName sets the AppName field's value.

func (*AppListForListAppsV3Output) SetCreateAt

SetCreateAt sets the CreateAt field's value.

func (*AppListForListAppsV3Output) SetSecondaryAppKey

SetSecondaryAppKey sets the SecondaryAppKey field's value.

func (*AppListForListAppsV3Output) SetStatus

SetStatus sets the Status field's value.

func (AppListForListAppsV3Output) String

String returns the string representation

type DataForListRealTimePublicStreamInfoOutput

type DataForListRealTimePublicStreamInfoOutput struct {
	StreamId *string `type:"string" json:",omitempty"`

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

	Value *float64 `type:"double" json:",omitempty"`
	// contains filtered or unexported fields
}

func (DataForListRealTimePublicStreamInfoOutput) GoString

GoString returns the string representation

func (*DataForListRealTimePublicStreamInfoOutput) SetStreamId

SetStreamId sets the StreamId field's value.

func (*DataForListRealTimePublicStreamInfoOutput) SetTimeStamp

SetTimeStamp sets the TimeStamp field's value.

func (*DataForListRealTimePublicStreamInfoOutput) SetValue

SetValue sets the Value field's value.

func (DataForListRealTimePublicStreamInfoOutput) String

String returns the string representation

type IndicatorForListRealTimePublicStreamInfoOutput

type IndicatorForListRealTimePublicStreamInfoOutput struct {
	Data []*DataForListRealTimePublicStreamInfoOutput `type:"list" json:",omitempty"`

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

	Overview *OverviewForListRealTimePublicStreamInfoOutput `type:"structure" json:"overview,omitempty"`

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

func (IndicatorForListRealTimePublicStreamInfoOutput) GoString

GoString returns the string representation

func (*IndicatorForListRealTimePublicStreamInfoOutput) SetData

SetData sets the Data field's value.

func (*IndicatorForListRealTimePublicStreamInfoOutput) SetName

SetName sets the Name field's value.

func (*IndicatorForListRealTimePublicStreamInfoOutput) SetOverview

SetOverview sets the Overview field's value.

func (*IndicatorForListRealTimePublicStreamInfoOutput) SetUnit

SetUnit sets the Unit field's value.

func (IndicatorForListRealTimePublicStreamInfoOutput) String

String returns the string representation

type ListAppsInput

type ListAppsInput struct {
	AppId *string `type:"string"`

	Limit *string `type:"string"`

	Offset *string `type:"string"`

	ProjectName *string `type:"string"`

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

func (ListAppsInput) GoString

func (s ListAppsInput) GoString() string

GoString returns the string representation

func (*ListAppsInput) SetAppId

func (s *ListAppsInput) SetAppId(v string) *ListAppsInput

SetAppId sets the AppId field's value.

func (*ListAppsInput) SetLimit

func (s *ListAppsInput) SetLimit(v string) *ListAppsInput

SetLimit sets the Limit field's value.

func (*ListAppsInput) SetOffset

func (s *ListAppsInput) SetOffset(v string) *ListAppsInput

SetOffset sets the Offset field's value.

func (*ListAppsInput) SetProjectName

func (s *ListAppsInput) SetProjectName(v string) *ListAppsInput

SetProjectName sets the ProjectName field's value.

func (*ListAppsInput) SetReverse

func (s *ListAppsInput) SetReverse(v string) *ListAppsInput

SetReverse sets the Reverse field's value.

func (ListAppsInput) String

func (s ListAppsInput) String() string

String returns the string representation

type ListAppsOutput

type ListAppsOutput struct {
	Metadata *response.ResponseMetadata

	AppList []*AppListForListAppsOutput `type:"list"`

	Limit *int32 `type:"int32"`

	Offset *int32 `type:"int32"`

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

func (ListAppsOutput) GoString

func (s ListAppsOutput) GoString() string

GoString returns the string representation

func (*ListAppsOutput) SetAppList

SetAppList sets the AppList field's value.

func (*ListAppsOutput) SetLimit

func (s *ListAppsOutput) SetLimit(v int32) *ListAppsOutput

SetLimit sets the Limit field's value.

func (*ListAppsOutput) SetOffset

func (s *ListAppsOutput) SetOffset(v int32) *ListAppsOutput

SetOffset sets the Offset field's value.

func (*ListAppsOutput) SetTotal

func (s *ListAppsOutput) SetTotal(v int32) *ListAppsOutput

SetTotal sets the Total field's value.

func (ListAppsOutput) String

func (s ListAppsOutput) String() string

String returns the string representation

type ListAppsV3Input

type ListAppsV3Input struct {
	AppId *string `type:"string" json:",omitempty"`

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

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

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

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

	TagFilters []*TagFilterForListAppsV3Input `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ListAppsV3Input) GoString

func (s ListAppsV3Input) GoString() string

GoString returns the string representation

func (*ListAppsV3Input) SetAppId

func (s *ListAppsV3Input) SetAppId(v string) *ListAppsV3Input

SetAppId sets the AppId field's value.

func (*ListAppsV3Input) SetLimit

func (s *ListAppsV3Input) SetLimit(v int32) *ListAppsV3Input

SetLimit sets the Limit field's value.

func (*ListAppsV3Input) SetOffset

func (s *ListAppsV3Input) SetOffset(v int32) *ListAppsV3Input

SetOffset sets the Offset field's value.

func (*ListAppsV3Input) SetProjectName

func (s *ListAppsV3Input) SetProjectName(v string) *ListAppsV3Input

SetProjectName sets the ProjectName field's value.

func (*ListAppsV3Input) SetReverse

func (s *ListAppsV3Input) SetReverse(v int32) *ListAppsV3Input

SetReverse sets the Reverse field's value.

func (*ListAppsV3Input) SetTagFilters

SetTagFilters sets the TagFilters field's value.

func (ListAppsV3Input) String

func (s ListAppsV3Input) String() string

String returns the string representation

type ListAppsV3Output

type ListAppsV3Output struct {
	Metadata *response.ResponseMetadata

	AppList []*AppListForListAppsV3Output `type:"list" json:",omitempty"`

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

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

	Total *int32 `type:"int32" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ListAppsV3Output) GoString

func (s ListAppsV3Output) GoString() string

GoString returns the string representation

func (*ListAppsV3Output) SetAppList

SetAppList sets the AppList field's value.

func (*ListAppsV3Output) SetLimit

func (s *ListAppsV3Output) SetLimit(v int32) *ListAppsV3Output

SetLimit sets the Limit field's value.

func (*ListAppsV3Output) SetOffset

func (s *ListAppsV3Output) SetOffset(v int32) *ListAppsV3Output

SetOffset sets the Offset field's value.

func (*ListAppsV3Output) SetTotal

func (s *ListAppsV3Output) SetTotal(v int32) *ListAppsV3Output

SetTotal sets the Total field's value.

func (ListAppsV3Output) String

func (s ListAppsV3Output) String() string

String returns the string representation

type ListRealTimePublicStreamInfoInput

type ListRealTimePublicStreamInfoInput struct {

	// AppId is a required field
	AppId *string `type:"string" json:",omitempty" required:"true"`

	// EndTime is a required field
	EndTime *string `type:"string" json:",omitempty" required:"true"`

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

	// StartTime is a required field
	StartTime *string `type:"string" json:",omitempty" required:"true"`

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

func (ListRealTimePublicStreamInfoInput) GoString

GoString returns the string representation

func (*ListRealTimePublicStreamInfoInput) SetAppId

SetAppId sets the AppId field's value.

func (*ListRealTimePublicStreamInfoInput) SetEndTime

SetEndTime sets the EndTime field's value.

func (*ListRealTimePublicStreamInfoInput) SetIndicator

SetIndicator sets the Indicator field's value.

func (*ListRealTimePublicStreamInfoInput) SetStartTime

SetStartTime sets the StartTime field's value.

func (*ListRealTimePublicStreamInfoInput) SetStreamId

SetStreamId sets the StreamId field's value.

func (ListRealTimePublicStreamInfoInput) String

String returns the string representation

func (*ListRealTimePublicStreamInfoInput) Validate

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

type ListRealTimePublicStreamInfoOutput

type ListRealTimePublicStreamInfoOutput struct {
	Metadata *response.ResponseMetadata

	Indicators []*IndicatorForListRealTimePublicStreamInfoOutput `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ListRealTimePublicStreamInfoOutput) GoString

GoString returns the string representation

func (*ListRealTimePublicStreamInfoOutput) SetIndicators

SetIndicators sets the Indicators field's value.

func (ListRealTimePublicStreamInfoOutput) String

String returns the string representation

type OverviewForListRealTimePublicStreamInfoOutput

type OverviewForListRealTimePublicStreamInfoOutput struct {
	Alias *string `type:"string" json:",omitempty"`

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

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

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

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

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

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

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

func (OverviewForListRealTimePublicStreamInfoOutput) GoString

GoString returns the string representation

func (*OverviewForListRealTimePublicStreamInfoOutput) SetAlias

SetAlias sets the Alias field's value.

func (*OverviewForListRealTimePublicStreamInfoOutput) SetExtraInfo

SetExtraInfo sets the ExtraInfo field's value.

func (*OverviewForListRealTimePublicStreamInfoOutput) SetHoverInfo

SetHoverInfo sets the HoverInfo field's value.

func (*OverviewForListRealTimePublicStreamInfoOutput) SetMaxValue

SetMaxValue sets the MaxValue field's value.

func (*OverviewForListRealTimePublicStreamInfoOutput) SetMinValue

SetMinValue sets the MinValue field's value.

func (*OverviewForListRealTimePublicStreamInfoOutput) SetName

SetName sets the Name field's value.

func (*OverviewForListRealTimePublicStreamInfoOutput) SetUnit

SetUnit sets the Unit field's value.

func (*OverviewForListRealTimePublicStreamInfoOutput) SetValue

SetValue sets the Value field's value.

func (OverviewForListRealTimePublicStreamInfoOutput) String

String returns the string representation

type TagFilterForListAppsV3Input

type TagFilterForListAppsV3Input struct {
	Key *string `type:"string" json:",omitempty"`

	Values []*string `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (TagFilterForListAppsV3Input) GoString

func (s TagFilterForListAppsV3Input) GoString() string

GoString returns the string representation

func (*TagFilterForListAppsV3Input) SetKey

SetKey sets the Key field's value.

func (*TagFilterForListAppsV3Input) SetValues

SetValues sets the Values field's value.

func (TagFilterForListAppsV3Input) String

String returns the string representation

type WTN

type WTN struct {
	*client.Client
}

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

WTN 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) *WTN

New create int can support ssl or region locate set

func (*WTN) ListApps

func (c *WTN) ListApps(input *ListAppsInput) (*ListAppsOutput, error)

ListApps API operation for WTN.

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 WTN's API operation ListApps for usage and error information.

func (*WTN) ListAppsCommon

func (c *WTN) ListAppsCommon(input *map[string]interface{}) (*map[string]interface{}, error)

ListAppsCommon API operation for WTN.

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 WTN's API operation ListAppsCommon for usage and error information.

func (*WTN) ListAppsCommonRequest

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

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

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

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

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

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

func (*WTN) ListAppsCommonWithContext

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

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

See ListAppsCommon 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 (*WTN) ListAppsRequest

func (c *WTN) ListAppsRequest(input *ListAppsInput) (req *request.Request, output *ListAppsOutput)

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

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

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

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

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

func (*WTN) ListAppsV3

func (c *WTN) ListAppsV3(input *ListAppsV3Input) (*ListAppsV3Output, error)

ListAppsV3 API operation for WTN.

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 WTN's API operation ListAppsV3 for usage and error information.

func (*WTN) ListAppsV3Common

func (c *WTN) ListAppsV3Common(input *map[string]interface{}) (*map[string]interface{}, error)

ListAppsV3Common API operation for WTN.

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 WTN's API operation ListAppsV3Common for usage and error information.

func (*WTN) ListAppsV3CommonRequest

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

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

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

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

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

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

func (*WTN) ListAppsV3CommonWithContext

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

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

See ListAppsV3Common 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 (*WTN) ListAppsV3Request

func (c *WTN) ListAppsV3Request(input *ListAppsV3Input) (req *request.Request, output *ListAppsV3Output)

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

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

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

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

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

func (*WTN) ListAppsV3WithContext

func (c *WTN) ListAppsV3WithContext(ctx volcengine.Context, input *ListAppsV3Input, opts ...request.Option) (*ListAppsV3Output, error)

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

See ListAppsV3 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 (*WTN) ListAppsWithContext

func (c *WTN) ListAppsWithContext(ctx volcengine.Context, input *ListAppsInput, opts ...request.Option) (*ListAppsOutput, error)

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

See ListApps 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 (*WTN) ListRealTimePublicStreamInfo

func (c *WTN) ListRealTimePublicStreamInfo(input *ListRealTimePublicStreamInfoInput) (*ListRealTimePublicStreamInfoOutput, error)

ListRealTimePublicStreamInfo API operation for WTN.

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 WTN's API operation ListRealTimePublicStreamInfo for usage and error information.

func (*WTN) ListRealTimePublicStreamInfoCommon

func (c *WTN) ListRealTimePublicStreamInfoCommon(input *map[string]interface{}) (*map[string]interface{}, error)

ListRealTimePublicStreamInfoCommon API operation for WTN.

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 WTN's API operation ListRealTimePublicStreamInfoCommon for usage and error information.

func (*WTN) ListRealTimePublicStreamInfoCommonRequest

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

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

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

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

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

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

func (*WTN) ListRealTimePublicStreamInfoCommonWithContext

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

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

See ListRealTimePublicStreamInfoCommon 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 (*WTN) ListRealTimePublicStreamInfoRequest

func (c *WTN) ListRealTimePublicStreamInfoRequest(input *ListRealTimePublicStreamInfoInput) (req *request.Request, output *ListRealTimePublicStreamInfoOutput)

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

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

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

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

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

func (*WTN) ListRealTimePublicStreamInfoWithContext

func (c *WTN) ListRealTimePublicStreamInfoWithContext(ctx volcengine.Context, input *ListRealTimePublicStreamInfoInput, opts ...request.Option) (*ListRealTimePublicStreamInfoOutput, error)

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

See ListRealTimePublicStreamInfo 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 WTNAPI

type WTNAPI interface {
	ListAppsCommon(*map[string]interface{}) (*map[string]interface{}, error)
	ListAppsCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ListAppsCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ListApps(*ListAppsInput) (*ListAppsOutput, error)
	ListAppsWithContext(volcengine.Context, *ListAppsInput, ...request.Option) (*ListAppsOutput, error)
	ListAppsRequest(*ListAppsInput) (*request.Request, *ListAppsOutput)

	ListAppsV3Common(*map[string]interface{}) (*map[string]interface{}, error)
	ListAppsV3CommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ListAppsV3CommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ListAppsV3(*ListAppsV3Input) (*ListAppsV3Output, error)
	ListAppsV3WithContext(volcengine.Context, *ListAppsV3Input, ...request.Option) (*ListAppsV3Output, error)
	ListAppsV3Request(*ListAppsV3Input) (*request.Request, *ListAppsV3Output)

	ListRealTimePublicStreamInfoCommon(*map[string]interface{}) (*map[string]interface{}, error)
	ListRealTimePublicStreamInfoCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ListRealTimePublicStreamInfoCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ListRealTimePublicStreamInfo(*ListRealTimePublicStreamInfoInput) (*ListRealTimePublicStreamInfoOutput, error)
	ListRealTimePublicStreamInfoWithContext(volcengine.Context, *ListRealTimePublicStreamInfoInput, ...request.Option) (*ListRealTimePublicStreamInfoOutput, error)
	ListRealTimePublicStreamInfoRequest(*ListRealTimePublicStreamInfoInput) (*request.Request, *ListRealTimePublicStreamInfoOutput)
}

WTNAPI provides an interface to enable mocking the wtn.WTN service client's API operation,

// volcengine sdk func uses an SDK service client to make a request to
// WTN.
func myFunc(svc WTNAPI) bool {
    // Make svc.ListApps request
}

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

    myFunc(svc)
}

Jump to

Keyboard shortcuts

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