openGemini / opengemini-client-go

CNCF openGemini Go Client Library
https://opengemini.org/
Apache License 2.0
24 stars 16 forks source link

AuthType question #134

Closed wolfbolin closed 2 months ago

wolfbolin commented 2 months ago

https://github.com/openGemini/opengemini-client-go/blob/e15a322d7b9b723bcd406921aaae89964c144829/opengemini/client.go#L9-L13

AuthTypeToken will be validated. But never be used. Is this mode supported?

Referring to the documentation, should there be a None enum type here https://github.com/openGemini/openGemini.github.io/blob/main/src/guide/develop/client_design.md#client-constructor-params-design

shoothzj commented 2 months ago

Referring to the documentation, should there be a None enum type here https://github.com/openGemini/openGemini.github.io/blob/main/src/guide/develop/client_design.md#client-constructor-params-design

Sorry, I create a patch to fix the doc https://github.com/openGemini/openGemini.github.io/pull/121

It's intend to be

        + AuthConfig authConfig // nullable, if null, means no auth
        + BatchConfig batchConfig // nullable, if null, means batch is disabled
shoothzj commented 2 months ago

AuthTypeToken will be validated. But never be used. Is this mode supported?

The server currently does not support the Token type, and the SDK implementation for Token is incomplete.