Add type ErrorResolverFunc func(errors chan error)
This commit is contained in:
parent
2e7e0bf512
commit
374e3984ce
|
@ -22,6 +22,8 @@ func GetDefaultConfig() *ClientConfiguration {
|
|||
}
|
||||
}
|
||||
|
||||
type ErrorResolverFunc func(errors chan error)
|
||||
|
||||
type Client struct {
|
||||
addr string
|
||||
exit chan bool
|
||||
|
@ -30,7 +32,7 @@ type Client struct {
|
|||
//
|
||||
Messages chan []byte
|
||||
ErrorsChannel chan error
|
||||
ErrorResolver func(chan error)
|
||||
ErrorResolver ErrorResolverFunc
|
||||
}
|
||||
|
||||
func CreateClient(addr string, options ...ClientOption) *Client {
|
||||
|
|
Loading…
Reference in New Issue
Block a user