Skip to content
Snippets Groups Projects
Commit 04b70b11 authored by Jake Taylor's avatar Jake Taylor
Browse files

cleanup

parent d537913a
No related branches found
No related tags found
4 merge requests!510Release,!207WIP: Client Restructure,!206Built the connection interface which wraps e2e and auth objects and manages a...,!203Symmetric broadcast
...@@ -52,6 +52,9 @@ type Connection interface { ...@@ -52,6 +52,9 @@ type Connection interface {
Unregister(listenerID receive.ListenerID) Unregister(listenerID receive.ListenerID)
} }
// Callback is the callback format required to retrieve new Connection objects as they are established
type Callback func(connection Connection)
// handler provides an implementation for the Connection interface // handler provides an implementation for the Connection interface
type handler struct { type handler struct {
partner partner.Manager partner partner.Manager
...@@ -194,9 +197,6 @@ type authCallback struct { ...@@ -194,9 +197,6 @@ type authCallback struct {
connectionParams Params connectionParams Params
} }
//
type Callback func(connection Connection)
// getAuthCallback returns a callback interface to be passed into the creation of an auth.State object. // getAuthCallback returns a callback interface to be passed into the creation of an auth.State object.
func getAuthCallback(cb Callback, e2e clientE2e.Handler, params Params) authCallback { func getAuthCallback(cb Callback, e2e clientE2e.Handler, params Params) authCallback {
return authCallback{ return authCallback{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment