Server represents a generalized ari-proxy server
| 27 | |
| 28 | // Server represents a generalized ari-proxy server |
| 29 | type Server interface { |
| 30 | Start(ctx context.Context, t *testing.T, client ari.Client, nc *nats.EncodedConn, completeCh chan struct{}) (ari.Client, error) |
| 31 | Ready() <-chan struct{} |
| 32 | Close() error |
| 33 | } |
| 34 | |
| 35 | // TestHandler is the interface for test execution |
| 36 | type testHandler func(t *testing.T, m *mock, cl ari.Client) |