Documentation ¶
Index ¶
- Constants
- type Command
- type Master
- func (m *Master) AddResource(ctx context.Context, req *proto.ResourceSpec, resp *proto.NodeSpec) error
- func (m *Master) AddResources(rs []*ResourceSpec)
- func (m *Master) DeleteResource(ctx context.Context, spec *proto.ResourceSpec, empty *empty.Empty) error
- func (m *Master) SetForwardClient(cli proto.CrawlerMasterService)
- type Message
- type NodeSpec
- type Option
- type ResourceSpec
Constants ¶
View Source
const (
RESOURCE_PATH = "/resources"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Master ¶
func (*Master) AddResource ¶
func (m *Master) AddResource(ctx context.Context, req *proto.ResourceSpec, resp *proto.NodeSpec) error
资源管理
func (*Master) AddResources ¶
func (m *Master) AddResources(rs []*ResourceSpec)
func (*Master) DeleteResource ¶
func (*Master) SetForwardClient ¶
func (m *Master) SetForwardClient(cli proto.CrawlerMasterService)
type Message ¶
type Message struct { Cmd Command Specs []*ResourceSpec }
type Option ¶
type Option func(opts *options)
func WithGRPCAddress ¶
func WithLogger ¶
func WithRegistry ¶
func WithregistryURL ¶
Click to show internal directories.
Click to hide internal directories.