Skip to content
Snippets Groups Projects
Commit c3d82e7f authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

add grpc client/server skeleton

parent 3405158a
No related branches found
No related tags found
1 merge request!155Northbound Interface
This commit is part of merge request !155. Comments created here will be created in the context of that merge request.
......@@ -3,6 +3,7 @@ module code.fbi.h-da.de/cocsn/gosdn
go 1.14
require (
code.fbi.h-da.de/cocsn/api v0.0.0-20210504143911-bdf77e6fac5b
code.fbi.h-da.de/cocsn/yang-models v0.0.7
github.com/aristanetworks/goarista v0.0.0-20201120222254-94a892eb0c6a
github.com/golang/protobuf v1.5.0
......
package northbound
package northbound
import (
"code.fbi.h-da.de/cocsn/api/proto/gosdn"
"code.fbi.h-da.de/cocsn/api/proto/gosdn/pnd"
"context"
)
type pndServer struct {
pnd.UnimplementedPndServer
}
func (p pndServer) Get(ctx context.Context, request *pnd.GetRequest) (*pnd.GetResponse, error) {
panic("implement me")
}
func (p pndServer) Set(ctx context.Context, request *pnd.SetRequest) (*pnd.SetResponse, error) {
panic("implement me")
}
type gosdnServer struct {
gosdn.UnimplementedGosdnServer
}
func (s gosdnServer) Get(ctx context.Context, request *gosdn.GetRequest) (*gosdn.GetResponse, error) {
panic("implement me")
}
func (s gosdnServer) Set(ctx context.Context, request *gosdn.SetRequest) (*gosdn.SetResponse, error) {
panic("implement me")
}
func NewServer() *Server {
return &Server{
Pnd: &pndServer{},
Controller: &gosdnServer{},
}
}
type Server struct {
Pnd *pndServer
Controller *gosdnServer
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment