integration

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 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 IIntegration

type IIntegration interface {
	// GetTenantAccessToken 获取飞书集成 tenant access token
	// @param apiName 飞书集成的 API Name
	GetTenantAccessToken(ctx context.Context, apiName string) (*structs.TenantAccessToken, error)
	// GetAppAccessToken 获取飞书集成 app access token
	// @param apiName 飞书集成的 API Name
	GetAppAccessToken(ctx context.Context, apiName string) (*structs.AppAccessToken, error)
	// GetDefaultTenantAccessToken 获取默认飞书集成 tenant access token
	GetDefaultTenantAccessToken(ctx context.Context) (*structs.TenantAccessToken, error)
	// GetDefaultAppAccessToken 获取默认飞书集成 app access token
	GetDefaultAppAccessToken(ctx context.Context) (*structs.AppAccessToken, error)
}

func NewIntegration

func NewIntegration(s *structs.AppCtx) IIntegration

type Integration

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

func (Integration) GetAppAccessToken

func (i Integration) GetAppAccessToken(ctx context.Context, apiName string) (*structs.AppAccessToken, error)

func (Integration) GetDefaultAppAccessToken

func (i Integration) GetDefaultAppAccessToken(ctx context.Context) (*structs.AppAccessToken, error)

func (Integration) GetDefaultTenantAccessToken

func (i Integration) GetDefaultTenantAccessToken(ctx context.Context) (*structs.TenantAccessToken, error)

func (Integration) GetTenantAccessToken

func (i Integration) GetTenantAccessToken(ctx context.Context, apiName string) (*structs.TenantAccessToken, error)

Jump to

Keyboard shortcuts

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