Add type ErrorResolverFunc func(errors chan error)

This commit is contained in:
qowevisa 2024-10-12 12:34:24 +03:00
parent 2e7e0bf512
commit 374e3984ce

View File

@ -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 {