Skip to content

Commit

Permalink
🎱some change in naming of file and variable
Browse files Browse the repository at this point in the history
  • Loading branch information
etefaghian committed Aug 9, 2021
1 parent 065437b commit 4bdedbe
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"deno.lint": true,
"deno.enable": true,
"deno.import_intellisense_origins": {
"https://deno.land": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ServiceConfig } from "../types/servicesConfig.ts";
*
* @remarks it also assign a unique id and for each service
*/
export type constructServiceDeclarationWithInfo = (
export type constructServiceInfoWithDeclaration = (
name: string,
serviceConfig: ServiceConfig,
declaration: FunQLDeclaration
Expand Down
2 changes: 1 addition & 1 deletion src/declaration/mergeDeclarations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { ServiceInfoWithDeclaration } from "./../types/serviceInfoWithDeclaratio
* this function merge declaration into one file for request and response to use client from it for type safety.
*/
export type MergeDeclarations = (
declarationWithInfo: ServiceInfoWithDeclaration[],
serviceInfoWithDeclarations: ServiceInfoWithDeclaration[],
options?: { path?: string }
) => void;
2 changes: 1 addition & 1 deletion src/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export {};

//construct an object for find out each service can handle which model and doit

//finds condition of each service that help to determine handling request
//finds status and condition of each service that help to determine handling request

//find suitable service for handling given request

Expand Down
1 change: 1 addition & 0 deletions src/serviceDetails/getServiceStatus.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ServiceInfo } from "../types/serviceInfo.ts";

/**
* determine situation of the service and return a number that represents condition of service
* @remarks 0 means service is down
*/
export type GetServiceStatus = (service: ServiceInfo) => number;
1 change: 1 addition & 0 deletions src/store/dispatcherDeclaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import { DispatcherDeclaration } from "./../types/declaration.ts";
/**
* a place for storing constructed dispatcher declaration
* @todo we can use isdb
* @remarks we store it because we should construct it one time
*/
let dispatcherDeclaration: DispatcherDeclaration;
4 changes: 2 additions & 2 deletions src/types/declaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface DispatcherDeclaration {
doits: {
[key: string]: {
serviceInfo: ServiceInfo;
validationObj?: any;
validationObj?: unknown;
//defines priority of server
priority?: number;
details: { get?: unknown; set?: unknown };
Expand All @@ -28,7 +28,7 @@ export interface DispatcherDeclaration {

export interface FunQLDeclaration {
reqSchema: FunQLReqSchema;
validationObj?: any;
validationObj?: unknown;
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/types/servicesConfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ServiceInfo } from "./serviceInfo.ts";
export interface ServicesConfig {
services: {
[k: string]: ServiceConfig;
Expand Down

0 comments on commit 4bdedbe

Please sign in to comment.