larkevent

package
v3.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventService

type EventService struct {
	OutboundIp *outboundIp // 事件出口IP
	// contains filtered or unexported fields
}

func NewService

func NewService(config *larkcore.Config) *EventService

type ListOutboundIpIterator

type ListOutboundIpIterator struct {
	// contains filtered or unexported fields
}

func (*ListOutboundIpIterator) Next

func (iterator *ListOutboundIpIterator) Next() (bool, string, error)

func (*ListOutboundIpIterator) NextPageToken

func (iterator *ListOutboundIpIterator) NextPageToken() *string

type ListOutboundIpReq

type ListOutboundIpReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListOutboundIpReqBuilder

type ListOutboundIpReqBuilder struct {
	// contains filtered or unexported fields
}

func NewListOutboundIpReqBuilder

func NewListOutboundIpReqBuilder() *ListOutboundIpReqBuilder

func (*ListOutboundIpReqBuilder) Build

func (builder *ListOutboundIpReqBuilder) Build() *ListOutboundIpReq

func (*ListOutboundIpReqBuilder) Limit

func (builder *ListOutboundIpReqBuilder) Limit(limit int) *ListOutboundIpReqBuilder

最大返回多少记录,当使用迭代器访问时才有效

func (*ListOutboundIpReqBuilder) PageSize

func (builder *ListOutboundIpReqBuilder) PageSize(pageSize int) *ListOutboundIpReqBuilder

分页大小,默认10,取值范围 10-50

示例值:10

func (*ListOutboundIpReqBuilder) PageToken

func (builder *ListOutboundIpReqBuilder) PageToken(pageToken string) *ListOutboundIpReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:xxx

type ListOutboundIpResp

type ListOutboundIpResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListOutboundIpRespData `json:"data"` // 业务数据
}

func (*ListOutboundIpResp) Success

func (resp *ListOutboundIpResp) Success() bool

type ListOutboundIpRespData

type ListOutboundIpRespData struct {
	IpList    []string `json:"ip_list,omitempty"`    // outbound ip
	PageToken *string  `json:"page_token,omitempty"` // 分页下次调用的page_token值
	HasMore   *bool    `json:"has_more,omitempty"`   // 是否还有分页数据
}

Jump to

Keyboard shortcuts

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