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

add grpc client/server skeleton

parent 6b1a908a
Branches
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.
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