swag/server: add valid PoC responses

This commit is contained in:
George Tankersley 2019-05-22 14:14:02 -04:00
parent 4dc4ed558c
commit 77a8362811
1 changed files with 5 additions and 2 deletions

View File

@ -11,11 +11,14 @@ type Server struct {
}
func NewServer(dbPath string, zc *rpcclient.Client) (api.SwagAPIServer, error) {
return nil, nil
return &Server{}, nil
}
func (s *Server) Redeem(ctx context.Context, req *api.Request) (*api.Response, error) {
return nil, nil
return &api.Response{
Success: true,
Msg: "hello",
}, nil
}
func (s *Server) GracefulStop() {}