Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edit ¶
type Edit struct {
Name *string
Description *string
ServiceType *ServiceType
Catalogue *string
Logo *string
}
type IServiceService ¶
type IServiceService interface {
universally.IServiceGet[Service]
universally.IServiceDelete
universally.IServiceCreate[Create]
universally.IServiceEdit[Edit]
ServiceCountByTeam(ctx context.Context, teamId ...string) (map[string]int64, error)
AppCountByTeam(ctx context.Context, teamId ...string) (map[string]int64, error)
SearchPublicServices(ctx context.Context, keyword string) ([]*Service, error)
Check(ctx context.Context, id string, rule map[string]bool) (*Service, error)
ServiceList(ctx context.Context, serviceIds ...string) ([]*Service, error)
AppList(ctx context.Context, appIds ...string) ([]*Service, error)
}
type Service ¶
type Service struct {
Id string
Name string
Description string
Team string
Prefix string
Logo string
ServiceType ServiceType
Catalogue string
AsServer bool
AsApp bool
CreateTime time.Time
UpdateTime time.Time
}
func FromEntity ¶
type ServiceType ¶
type ServiceType string
const ( InnerService ServiceType = "inner" PublicService ServiceType = "public" UnknownService ServiceType = "unknown" )
func ToServiceType ¶
func ToServiceType(s int) ServiceType
func (ServiceType) Int ¶
func (s ServiceType) Int() int
func (ServiceType) String ¶
func (s ServiceType) String() string
Click to show internal directories.
Click to hide internal directories.