vocechat

package
v0.0.0-...-b015d54 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

A golang client for Vocechat

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Server   string `mapstructure:"server"`
	Username string `mapstructure:"username"`

	// Account
	Email    string `mapstructure:"email"`
	Password string `mapstructure:"password"`

	// Bot
	ApiKey string `mapstructure:"api_key"`

	SendToId      uint32 `mapstructure:"send_to_id"`
	SendToName    string `mapstructure:"send_to_name"`
	SendToKind    string `mapstructure:"send_to_kind"` // user or group
	Timeout       int64  `mapstructure:"timeout"`      // seconds
	TlsSkipVerify bool   `mapstructure:"tls_skip_verify"`
	// contains filtered or unexported fields
}

func NewClient

func NewClient(fp string, key string) (client *Client, err error)

func (*Client) BotSend

func (client *Client) BotSend(msg string) (err error)

func (*Client) UserSend

func (client *Client) UserSend(msg string) (err error)

Jump to

Keyboard shortcuts

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