sender

package
v0.0.0-...-3c4a4f3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 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 SendRequest

type SendRequest struct {
	SessionKey   string         `json:"sessionKey,omitempty"`
	Target       uint64         `json:"target"`
	MessageChain *message.Chain `json:"messageChain"`
	Quote        *uint64        `json:"quote,omitempty"`
}

type Sender

type Sender interface {
	SendToFriend(target uint64, contents *message.Chain, quote *uint64) (*record.SendMessageResponseData, error)
	SendToGroup(target uint64, contents *message.Chain, quote *uint64) (*record.SendMessageResponseData, error)
}

func GetWSSender

func GetWSSender(conn function.Conn, sessionKey string) Sender

Jump to

Keyboard shortcuts

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