Explorar el Código

feat(go): add types for idp package;

Vishal Dalwadi hace 5 meses
padre
commit
1f8ca02902
Se han modificado 1 ficheros con 17 adiciones y 0 borrados
  1. 17 0
      pro/idp/idp.go

+ 17 - 0
pro/idp/idp.go

@@ -0,0 +1,17 @@
+package idp
+
+type Client interface {
+	GetUsers() ([]User, error)
+	GetGroups() ([]Group, error)
+}
+
+type User struct {
+	ID       string
+	Username string
+}
+
+type Group struct {
+	ID      string
+	Name    string
+	Members []User
+}