Closed wintbiit closed 11 months ago
@seriouszyx @ComradeProgrammer @Resulte
@WinterOfBit good idea. Can you make a PR to support it?
@WinterOfBit good idea. Can you make a PR to support it?
@hsluoyz No problem. That would be quite a big api change. But should the original InitConfig
func and functions depending on the global config vars be removed or remain as is for now?
@WinterOfBit keep the old usage, both global and client ways can be supported at the same time
For instance, aliyun oss sdk and gitea go sdk both are OOP, which provide a
Client
struct and support aNewClient
func. This enables them to support multiple sdk clients with different conf exist in the same time.Can casdoor support
Client
concept and enable sdk users to connect to multiple casdoor server in the same time?Example function demand source: https://github.com/casbin/casibase/pull/594#discussion_r1271304392