forked from pathwar/pathwar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
219 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
03acd307b08ec4c03ccfb8c4c0620f573612a5b2 ../api/pwlevel.proto | ||
2fe5355fb9e8a9c8603bb5ab13c9ffa51fb6501d ../api/pwengine.proto | ||
30302d31bca0924719daf9e95a0ea15dfbcfb131 ../api/pwhypervisor.proto | ||
58eb4b1d9b5be40a69ffdab1a13b9fb90b669839 ../api/pwsso.proto | ||
5d333f98cfbafd36ddc97b3c7c364bf94b898384 ../api/pwcompose.proto | ||
6de212ad63b45da5e9d57a1b293a0ec8b73b7b35 ../api/pwdb.proto | ||
71351a6ac01962fbeaeeeafd431d481e6c1f288b Makefile | ||
8a27b6e5aac7ffa15f686c6c1b9b741659f0acfd ../api/pwengine.proto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
03acd307b08ec4c03ccfb8c4c0620f573612a5b2 ../api/pwlevel.proto | ||
2fe5355fb9e8a9c8603bb5ab13c9ffa51fb6501d ../api/pwengine.proto | ||
30302d31bca0924719daf9e95a0ea15dfbcfb131 ../api/pwhypervisor.proto | ||
58eb4b1d9b5be40a69ffdab1a13b9fb90b669839 ../api/pwsso.proto | ||
5d333f98cfbafd36ddc97b3c7c364bf94b898384 ../api/pwcompose.proto | ||
6de212ad63b45da5e9d57a1b293a0ec8b73b7b35 ../api/pwdb.proto | ||
8a27b6e5aac7ffa15f686c6c1b9b741659f0acfd ../api/pwengine.proto | ||
ddfce445bab91ac60acbcda4fe9f2524e0b2e50d Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package pwengine | ||
|
||
import ( | ||
context "context" | ||
"context" | ||
"time" | ||
|
||
"pathwar.land/go/pkg/pwversion" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package pwengine | ||
|
||
import ( | ||
"context" | ||
|
||
"pathwar.land/go/pkg/pwdb" | ||
) | ||
|
||
func (c *client) ListTeams(context.Context, *Void) (*pwdb.TeamList, error) { | ||
var teams pwdb.TeamList | ||
if err := c.db.Set("gorm:auto_preload", true).Find(&teams.Items).Error; err != nil { | ||
return nil, err | ||
} | ||
|
||
return &teams, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters