소스 검색

feat(go): add types for idp package;

Vishal Dalwadi 5 달 전
부모
커밋
1f8ca02902
1개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  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
+}