fix(core): update
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# @servezone_private/coreflow
|
||||
# @serve.zone/coreflow
|
||||
A comprehensive solution for managing Docker and scaling applications across servers, handling tasks from service provisioning to network traffic management.
|
||||
|
||||
## Install
|
||||
To install @servezone_private/coreflow, you can use npm with the following command:
|
||||
To install @serve.zone/coreflow, you can use npm with the following command:
|
||||
```sh
|
||||
npm install @servezone_private/coreflow --save
|
||||
npm install @serve.zone/coreflow --save
|
||||
```
|
||||
Given that this is a private package, make sure you have access to the required npm registry and that you are authenticated properly.
|
||||
|
||||
@@ -18,7 +18,7 @@ Before you start, ensure you have Docker and Docker Swarm configured in your env
|
||||
To get started, you need to import and initialize coreflow within your application. Here's an example of how to do this in a TypeScript module:
|
||||
|
||||
```typescript
|
||||
import { Coreflow } from '@servezone_private/coreflow';
|
||||
import { Coreflow } from '@serve.zone/coreflow';
|
||||
|
||||
// Initialize Coreflow
|
||||
const coreflowInstance = new Coreflow();
|
||||
@@ -70,7 +70,7 @@ coreflowInstance.applyScalingPolicy(scalingPolicy).then(() => {
|
||||
One of Coreflow's key features is its ability to manage network traffic, ensuring that it is efficiently distributed among various services based on load, priority, and other custom rules.
|
||||
|
||||
```typescript
|
||||
import { TrafficRule } from '@servezone_private/coreflow';
|
||||
import { TrafficRule } from '@serve.zone/coreflow';
|
||||
|
||||
const rule: TrafficRule = {
|
||||
serviceName: "webService",
|
||||
|
||||
Reference in New Issue
Block a user