search

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Endpoint   *string
	Protocol   *string
	UserAgent  *string
	Credential credential.Credential
}

func NewClient

func NewClient(config *Config) (*Client, error)

func (*Client) AppendUserAgent

func (client *Client) AppendUserAgent(userAgent *string)

func (*Client) GetAccessKeyId

func (client *Client) GetAccessKeyId() (_result *string, _err error)

func (*Client) GetAccessKeySecret

func (client *Client) GetAccessKeySecret() (_result *string, _err error)

func (*Client) GetUserAgent

func (client *Client) GetUserAgent() (_result *string)

func (*Client) Init

func (client *Client) Init(config *Config) (_err error)

func (*Client) Request

func (client *Client) Request(method *string, pathname *string, query map[string]interface{}, headers map[string]*string, body interface{}, runtime *util.RuntimeOptions) (_result map[string]interface{}, _err error)

func (*Client) SetUserAgent

func (client *Client) SetUserAgent(userAgent *string)

type Config

type Config struct {
	Endpoint        *string `json:"endpoint,omitempty" xml:"endpoint,omitempty"`
	Protocol        *string `json:"protocol,omitempty" xml:"protocol,omitempty"`
	Type            *string `json:"type,omitempty" xml:"type,omitempty"`
	SecurityToken   *string `json:"securityToken,omitempty" xml:"securityToken,omitempty"`
	AccessKeyId     *string `json:"accessKeyId,omitempty" xml:"accessKeyId,omitempty"`
	AccessKeySecret *string `json:"accessKeySecret,omitempty" xml:"accessKeySecret,omitempty"`
	UserAgent       *string `json:"userAgent,omitempty" xml:"userAgent,omitempty"`
}

type ResponseHeader added in v0.1.2

type ResponseHeader struct {
	Connection     string `json:"connection"`
	ContentType    string `json:"content-type"`
	Date           string `json:"date"`
	KeepAlive      string `json:"keep-alive"`
	RequestId      string `json:"request-id"`
	Server         string `json:"server"`
	XAcsApiName    string `json:"x-acs-api-name"`
	XAcsCallerType string `json:"x-acs-caller-type"`
	XAcsCallerUid  string `json:"x-acs-caller-uid"`
	XAcsParentUid  string `json:"x-acs-parent-uid"`
	XAliyunUserId  string `json:"x-aliyun-user-id"`
	XAppId         string `json:"x-app-id"`
	XAppName       string `json:"x-app-name"`
	XAppgroupId    string `json:"x-appgroup-id"`
}

type ResponseSuggestList added in v0.1.2

type ResponseSuggestList struct {
	Headers ResponseHeader `json:"headers"`
	Body    SuggestBody    `json:"body"`
}

type SuggestBody added in v0.1.2

type SuggestBody struct {
	RequestId   string        `json:"request_id"`
	SearchTime  float64       `json:"searchtime"`
	Suggestions []SuggestItem `json:"suggestions"`
}

type SuggestItem added in v0.1.2

type SuggestItem struct {
	Suggestion string `json:"suggestion"`
}

Jump to

Keyboard shortcuts

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