mirror of
https://github.com/coaidev/coai.git
synced 2025-05-19 04:50:14 +09:00
21 lines
367 B
Go
21 lines
367 B
Go
package globals
|
|
|
|
import "database/sql"
|
|
|
|
type ChannelConfig interface {
|
|
GetType() string
|
|
GetModelReflect(model string) string
|
|
GetRetry() int
|
|
GetRandomSecret() string
|
|
SplitRandomSecret(num int) []string
|
|
GetEndpoint() string
|
|
ProcessError(err error) error
|
|
GetId() int
|
|
GetProxy() ProxyConfig
|
|
}
|
|
|
|
type AuthLike interface {
|
|
GetID(db *sql.DB) int64
|
|
HitID() int64
|
|
}
|