Documentation ¶
Index ¶
- func QueryTag(ctx context.Context, db *sql.DB, resourceIds []string) (tags []*resouce.Tag, err error)
- func SaveResource(ctx context.Context, tx *sql.Tx, base *resouce.Base, info *resouce.Information) error
- func UpdataResource(ctx context.Context, tx *sql.Tx, base *resouce.Base, info *resouce.Information) error
- type RsourceServer
- func (r *RsourceServer) Config() error
- func (r *RsourceServer) Name() string
- func (r *RsourceServer) QueryTag(context.Context, *resource.QueryTagRequest) (*resource.TagSet, error)
- func (r *RsourceServer) Registry(g *grpc.Server)
- func (r *RsourceServer) Search(ctx context.Context, req *resource.SearchRequest) (*resource.ResourceSet, error)
- func (r *RsourceServer) UpdateTag(context.Context, *resource.UpdateTagRequest) (*resource.Resource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryTag ¶
func QueryTag(ctx context.Context, db *sql.DB, resourceIds []string) ( tags []*resouce.Tag, err error)
查询tag逻辑
func SaveResource ¶
Types ¶
type RsourceServer ¶
type RsourceServer struct { resource.UnimplementedServiceServer // contains filtered or unexported fields }
func (*RsourceServer) Config ¶
func (r *RsourceServer) Config() error
func (*RsourceServer) Name ¶
func (r *RsourceServer) Name() string
func (*RsourceServer) QueryTag ¶
func (r *RsourceServer) QueryTag(context.Context, *resource.QueryTagRequest) (*resource.TagSet, error)
func (*RsourceServer) Registry ¶
func (r *RsourceServer) Registry(g *grpc.Server)
func (*RsourceServer) Search ¶
func (r *RsourceServer) Search(ctx context.Context, req *resource.SearchRequest) (*resource.ResourceSet, error)
func (*RsourceServer) UpdateTag ¶
func (r *RsourceServer) UpdateTag(context.Context, *resource.UpdateTagRequest) (*resource.Resource, error)
Click to show internal directories.
Click to hide internal directories.