Documentation ¶
Index ¶
- Constants
- type PEQEditorSQL
- func (t *PEQEditorSQL) Connect(ctx context.Context) error
- func (t *PEQEditorSQL) Disconnect(ctx context.Context) error
- func (t *PEQEditorSQL) IsConnected() bool
- func (t *PEQEditorSQL) Send(ctx context.Context, source string, author string, channelID int, ...) error
- func (t *PEQEditorSQL) Subscribe(ctx context.Context, onMessage func(interface{}) error) error
Constants ¶
View Source
const (
//ActionMessage is used when broadcasting to discord a message
ActionMessage = "message"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PEQEditorSQL ¶
type PEQEditorSQL struct {
// contains filtered or unexported fields
}
PEQEditorSQL represents a peqeditorsql connection
func New ¶
func New(ctx context.Context, config config.PEQEditorSQL) (*PEQEditorSQL, error)
New creates a new peqeditorsql connect
func (*PEQEditorSQL) Connect ¶
func (t *PEQEditorSQL) Connect(ctx context.Context) error
Connect establishes a new connection with PEQEditorSQL
func (*PEQEditorSQL) Disconnect ¶
func (t *PEQEditorSQL) Disconnect(ctx context.Context) error
Disconnect stops a previously started connection with PEQEditorSQL. If called while a connection is not active, returns nil
func (*PEQEditorSQL) IsConnected ¶
func (t *PEQEditorSQL) IsConnected() bool
IsConnected returns if a connection is established
Click to show internal directories.
Click to hide internal directories.