1.0.5 ā€¢ Published 6 years ago

farukbase-gate v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

FarukBase Gate System

This is auth,access managing system. If one gate decline or noone accept process will fail. When it's pass all gates with one or more accept process will success.

Gates are object/function in this format :

GATE {

ā€‹ IN : f() : Gate ( information, accept, decline , pass , scope )

}

ADD_GATE(GATE)

Adds gate.

BEGIN(token,cmd,args,scope,SUCCESS,DECLINE)

token is data from user.

cmd is command from user. args is argument of command.

success(information) and decline(information) are callback.

scope must contains necessary functions or data for gate.

var information = {
	token : token,
	cmd : cmd,
	args : args,
	state : {
		accepted : [],
		gateIndex : -1
	}
};
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago