mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-23 07:01:35 +00:00
Commit from m3o/m3o action
This commit is contained in:
5
mq/mq.go
5
mq/mq.go
@@ -4,6 +4,11 @@ import (
|
||||
"go.m3o.com/client"
|
||||
)
|
||||
|
||||
type Mq interface {
|
||||
Publish(*PublishRequest) (*PublishResponse, error)
|
||||
Subscribe(*SubscribeRequest) (*SubscribeResponseStream, error)
|
||||
}
|
||||
|
||||
func NewMqService(token string) *MqService {
|
||||
return &MqService{
|
||||
client: client.NewClient(&client.Options{
|
||||
|
||||
Reference in New Issue
Block a user