client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(ctx context.Context, configPath string) error

Initialize initializes the TeamsClient instance with the provided config path

func ResetInstance added in v1.0.0

func ResetInstance()

ResetInstance clears the current TeamsClient instance and error.

func SetInstance added in v1.0.0

func SetInstance(instance *Client)

SetInstance overrides the current TeamsClient instance (useful for tests).

Types

type Client added in v1.0.0

type Client struct {
	Channels channels.ChannelClient
	Chats    chats.ChatClient
	Teams    teams.TeamClient
}

Client aggregates resource-level clients

func GetInstance

func GetInstance() (*Client, error)

GetInstance returns the existing TeamsClient instance or an error if not initialized

func NewClient added in v1.0.0

func NewClient(ctx context.Context, authConfig *lib_config.AuthConfig, senderConfig *lib_config.SenderConfig, cacheConfig *lib_config.CacheConfig) (*Client, error)

NewClient creates a new TeamsClient by constructing the underlying library client

Jump to

Keyboard shortcuts

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