Documentation
¶
Index ¶
- type AILogInfo
- type AILogItem
- type App
- type AppItem
- type CreateApp
- type CreateService
- type EditMemberRole
- type EditProjectMember
- type EditService
- type ExportApp
- type ExportService
- type MemberItem
- type OriginAIRequest
- type OriginRequest
- type Overview
- type QuickCreateAIService
- type RestLogInfo
- type RestLogItem
- type SaveServiceDoc
- type Service
- type ServiceDoc
- type ServiceItem
- type ServiceState
- type SimpleAppItem
- type SimpleMemberItem
- type SimpleServiceItem
- type SubscribeAppItem
- type TeamMemberToAdd
- type UpdateApp
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AILogInfo ¶
type AILogInfo struct {
Id string `json:"id"`
API auto.Label `json:"api" aolabel:"api"`
Consumer auto.Label `json:"consumer" aolabel:"service"`
IsSystemConsumer bool `json:"is_system_consumer"`
Status int64 `json:"status"`
Ip string `json:"ip"`
Provider auto.Label `json:"provider" aolabel:"ai_provider"`
Model string `json:"model"`
LogTime auto.TimeLabel `json:"log_time"`
Request OriginAIRequest `json:"request"`
Response OriginAIRequest `json:"response"`
}
type AILogItem ¶
type AILogItem struct {
Id string `json:"id"`
API auto.Label `json:"api" aolabel:"api"`
Status int64 `json:"status"`
LogTime auto.TimeLabel `json:"log_time"`
Ip string `json:"ip"`
Token int64 `json:"token"`
TokenPerSecond int64 `json:"token_per_second"`
Consumer auto.Label `json:"consumer" aolabel:"service"`
Provider auto.Label `json:"provider" aolabel:"ai_provider"`
Model string `json:"model"`
}
type AppItem ¶
type AppItem struct {
Id string `json:"id"`
Name string `json:"name"`
Team auto.Label `json:"team" aolabel:"team"`
SubscribeNum int64 `json:"subscribe_num"`
SubscribeVerifyNum int64 `json:"subscribe_verify_num"`
AuthNum int64 `json:"auth_num"`
Description string `json:"description"`
CreateTime auto.TimeLabel `json:"create_time"`
UpdateTime auto.TimeLabel `json:"update_time"`
CanDelete bool `json:"can_delete"`
}
type CreateService ¶
type CreateService struct {
Id string `json:"id"`
Name string `json:"name"`
Prefix string `json:"prefix"`
Description string `json:"description"`
ServiceType string `json:"service_type"`
Logo string `json:"logo"`
Tags []string `json:"tags"`
Catalogue string `json:"catalogue"`
ApprovalType string `json:"approval_type"`
Kind string `json:"service_kind"`
State string `json:"state"`
Provider *string `json:"provider"`
Model *string `json:"model"`
AsApp *bool `json:"as_app"`
AsServer *bool `json:"as_server"`
ModelMapping string `json:"model_mapping"`
EnableMCP bool `json:"enable_mcp"`
}
type EditMemberRole ¶
type EditMemberRole struct {
Roles []string `json:"roles"`
}
type EditProjectMember ¶
type EditProjectMember struct {
Roles []string `json:"roles" aocheck:"role"`
}
type EditService ¶
type EditService struct {
Name *string `json:"name"`
Description *string `json:"description"`
ServiceType *string `json:"service_type"`
Prefix *string `json:"prefix"`
Catalogue *string `json:"catalogue"`
Logo *string `json:"logo"`
Tags *[]string `json:"tags"`
Provider *string `json:"provider"`
Model *string `json:"model"`
ApprovalType *string `json:"approval_type"`
State *string `json:"state"`
ModelMapping *string `json:"model_mapping"`
EnableMCP *bool `json:"enable_mcp"`
}
type ExportService ¶
type ExportService struct {
Id string `json:"id"`
Name string `json:"name"`
Prefix string `json:"prefix,omitempty"`
Description string `json:"description"`
Team string `json:"team"`
ServiceType string `json:"service_type"`
Catalogue string `json:"catalogue"`
Tags []string `json:"tags"`
Logo string `json:"logo"`
Doc string `json:"doc"`
ModelMapping string `json:"model_mapping"`
}
type MemberItem ¶
type OriginAIRequest ¶
type OriginAIRequest struct {
OriginRequest
Token int64 `json:"token"`
}
type OriginRequest ¶
type Overview ¶
type Overview struct {
Id string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
EnableMCP bool `json:"enable_mcp"`
ServiceKind string `json:"service_kind"`
SubscriberNum int64 `json:"subscriber_num"`
InvokeNum int64 `json:"invoke_num"`
Logo string `json:"logo"`
AvailableMonitor bool `json:"available_monitor"`
IsReleased bool `json:"is_released"`
Catalogue auto.Label `json:"catalogue" aolabel:"catalogue"`
APINum int64 `json:"api_num"`
}
type QuickCreateAIService ¶
type RestLogInfo ¶
type RestLogInfo struct {
Id string `json:"id"`
API auto.Label `json:"api" aolabel:"api"`
Consumer auto.Label `json:"consumer" aolabel:"service"`
IsSystemConsumer bool `json:"is_system_consumer"`
Status int64 `json:"status"`
Ip string `json:"ip"`
ResponseTime string `json:"response_time"`
Traffic string `json:"traffic"`
LogTime auto.TimeLabel `json:"log_time"`
Request OriginRequest `json:"request"`
Response OriginRequest `json:"response"`
}
type RestLogItem ¶
type RestLogItem struct {
Id string `json:"id"`
API auto.Label `json:"api" aolabel:"api"`
Status int64 `json:"status"`
LogTime auto.TimeLabel `json:"log_time"`
Ip string `json:"ip"`
Consumer auto.Label `json:"consumer" aolabel:"service"`
ResponseTime string `json:"response_time"`
Traffic string `json:"traffic"`
}
type SaveServiceDoc ¶
type SaveServiceDoc struct {
Doc string `json:"doc"`
}
type Service ¶
type Service struct {
Id string `json:"id"`
Name string `json:"name"`
Prefix string `json:"prefix,omitempty"`
Description string `json:"description"`
Team auto.Label `json:"team" aolabel:"team"`
CreateTime auto.TimeLabel `json:"create_time"`
UpdateTime auto.TimeLabel `json:"update_time"`
ServiceType string `json:"service_type"`
Catalogue auto.Label `json:"catalogue" aolabel:"catalogue"`
Tags []auto.Label `json:"tags" aolabel:"tag"`
Logo string `json:"logo"`
Provider *auto.Label `json:"provider,omitempty" aolabel:"ai_provider"`
ProviderType string `json:"provider_type,omitempty"`
Model string `json:"model,omitempty"`
ApprovalType string `json:"approval_type"`
ServiceKind string `json:"service_kind"`
State string `json:"state"`
ModelMapping string `json:"model_mapping"`
AsServer bool `json:"as_server"`
AsApp bool `json:"as_app"`
EnableMCP bool `json:"enable_mcp"`
}
type ServiceDoc ¶
type ServiceItem ¶
type ServiceItem struct {
Id string `json:"id"`
Name string `json:"name"`
Team auto.Label `json:"team" aolabel:"team"`
ServiceKind string `json:"service_kind"`
ApiNum int64 `json:"api_num"`
Description string `json:"description"`
CreateTime auto.TimeLabel `json:"create_time"`
UpdateTime auto.TimeLabel `json:"update_time"`
Provider *auto.Label `json:"provider,omitempty" aolabel:"ai_provider"`
State string `json:"state"`
CanDelete bool `json:"can_delete"`
EnableMCP bool `json:"enable_mcp"`
}
type ServiceState ¶
type ServiceState string
const ( ServiceStateNormal ServiceState = "normal" ServiceStateDeploying ServiceState = "deploying" ServiceStateDeployError ServiceState = "error" )
func FromServiceState ¶
func FromServiceState(s int) ServiceState
func (ServiceState) Int ¶
func (s ServiceState) Int() int
func (ServiceState) String ¶
func (s ServiceState) String() string
type SimpleAppItem ¶
type SimpleMemberItem ¶
type SimpleServiceItem ¶
type SubscribeAppItem ¶
type TeamMemberToAdd ¶
Click to show internal directories.
Click to hide internal directories.