Documentation ¶
Index ¶
Constants ¶
View Source
const PooledTokenRegisterUrl = "https://ai.fakeopen.com/pool/update"
View Source
const PooledTokensLimit = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AiFakeOpenPlatform ¶
func NewAiFakeOpenPlatform ¶
func NewAiFakeOpenPlatform() *AiFakeOpenPlatform
func (*AiFakeOpenPlatform) GetSharedToken ¶
func (f *AiFakeOpenPlatform) GetSharedToken(shareTokenReq SharedTokenReq) (SharedToken, error)
GetSharedToken
@Description: 申请fakeopen fk @receiver f @param uniqueName @param accessToken @param expiresIn @param siteLimit @param showConversations @return SharedToken @return error
func (*AiFakeOpenPlatform) RenewPooledToken ¶
func (f *AiFakeOpenPlatform) RenewPooledToken(pooledTokenReq PooledTokenReq) (PooledToken, error)
RenewPooledToken
@Description: get or renew pool token by fk tokens @receiver f @param shareTokens @param poolToken @return PooledToken @return error
func (*AiFakeOpenPlatform) RevokeSharedToken ¶
func (f *AiFakeOpenPlatform) RevokeSharedToken(uniqueName string, accessToken string) (SharedToken, error)
RevokeSharedToken
@Description: 撤销fakeopen fk @receiver f @param uniqueName @param accessToken @return SharedToken @return error
type PooledToken ¶
type PooledTokenReq ¶
type PooledTokenReq struct { PoolToken string `json:"pool_token"` }
type SharedToken ¶
type SharedToken struct {}
Click to show internal directories.
Click to hide internal directories.