18 lines
283 B
Go
18 lines
283 B
Go
|
package notify
|
||
|
|
||
|
import (
|
||
|
"git.loafle.net/commons_go/rpc/notify"
|
||
|
"git.loafle.net/commons_go/rpc/protocol/json"
|
||
|
)
|
||
|
|
||
|
func NewNotifyHandler() NotifyHandler {
|
||
|
nh := &NotifyHandlers{}
|
||
|
nh.Codec = json.NewClientCodec()
|
||
|
|
||
|
return nh
|
||
|
}
|
||
|
|
||
|
type NotifyHandlers struct {
|
||
|
notify.NotifyHandlers
|
||
|
}
|