8da763ec2f
- Fixed issue with webhooks
20 lines
501 B
Go
20 lines
501 B
Go
// Copyright 2014 Claudemiro Alves Feitosa Neto. All rights reserved.
|
|
// Use of this source code is governed by a MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package subscription
|
|
|
|
import "ipe/connection"
|
|
|
|
// A Channel Subscription
|
|
type Subscription struct {
|
|
Connection *connection.Connection
|
|
ID string
|
|
Data string
|
|
}
|
|
|
|
// Create a new Subscription
|
|
func New(conn *connection.Connection, data string) *Subscription {
|
|
return &Subscription{Connection: conn, Data: data}
|
|
}
|