Add basic application framework and example application to show interaction between events an NBI
Compare changes
- André Sterba authored
@@ -5,23 +5,46 @@ import (
@@ -5,23 +5,46 @@ import (
server := grpc.NewServer(grpc.UnaryInterceptor(interceptor.Unary()), grpc.StreamInterceptor(interceptor.Stream()))
@@ -35,20 +58,21 @@ func dialer() func(context.Context, string) (net.Conn, error) {
@@ -35,20 +58,21 @@ func dialer() func(context.Context, string) (net.Conn, error) {
conn, err := grpc.DialContext(ctx, "", grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithContextDialer(dialer()))
@@ -121,15 +145,16 @@ func TestAuthInterceptor_Unary(t *testing.T) {
@@ -121,15 +145,16 @@ func TestAuthInterceptor_Unary(t *testing.T) {
conn, err := grpc.DialContext(ctx, "", grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithContextDialer(dialer()))
@@ -186,14 +211,15 @@ func TestAuthInterceptor_Stream(t *testing.T) {
@@ -186,14 +211,15 @@ func TestAuthInterceptor_Stream(t *testing.T) {
@@ -232,11 +258,7 @@ func TestAuthInterceptor_authorize(t *testing.T) {
@@ -232,11 +258,7 @@ func TestAuthInterceptor_authorize(t *testing.T) {