Versions in this module Expand all Collapse all v1 v1.0.0 Jul 17, 2018 Changes in this version + func ConvertOttoToGo(value interface{}) interface + func GetAuthorization(value otto.Value) (schema.Authorization, error) + func GetBool(value otto.Value) (bool, error) + func GetInt64(value otto.Value) (result int64, err error) + func GetList(value otto.Value) ([]interface{}, error) + func GetMap(value otto.Value) (map[string]interface{}, error) + func GetString(value otto.Value) (string, error) + func GetStringList(value otto.Value) ([]string, error) + func GetTransaction(value otto.Value) (transaction.Transaction, error) + func GohanDbCreate(transaction transaction.Transaction, needCommit bool, schemaID string, ...) (*schema.Resource, error) + func GohanDbDelete(transaction transaction.Transaction, needCommit bool, schemaID, ID string) error + func GohanDbFetch(tx transaction.Transaction, schemaID, ID, tenantID string) (*schema.Resource, error) + func GohanDbLockFetch(tx transaction.Transaction, schemaID, ID, tenantID string, ...) (*schema.Resource, error) + func GohanDbMakeColumns(schemaID string) ([]string, error) + func GohanDbQuery(transaction transaction.Transaction, needCommit bool, ...) ([]map[string]interface{}, error) + func GohanDbStateFetch(tx transaction.Transaction, schemaID, ID, tenantID string) (map[string]interface{}, error) + func GohanDbStateUpdate(transaction transaction.Transaction, needCommit bool, schemaID string, ...) (*schema.Resource, error) + func GohanDbUpdate(transaction transaction.Transaction, needCommit bool, schemaID string, ...) (*schema.Resource, error) + func GohanHTTP(ctx context.Context, method, rawURL string, headers map[string]interface{}, ...) (int, http.Header, string, error) + func GohanModelCreate(context map[string]interface{}, schemaID string, ...) (interface{}, error) + func GohanModelDelete(context map[string]interface{}, schemaID string, resourceID string) error + func GohanModelFetch(context map[string]interface{}, schemaID string, resourceID string, ...) (interface{}, error) + func GohanModelList(context map[string]interface{}, schemaID string, ...) (interface{}, error) + func GohanModelUpdate(context map[string]interface{}, schemaID string, resourceID string, ...) (interface{}, error) + func GohanProcessGlobal(name string) map[string]interface + func PushJSLogModule(env *Environment, newModule string) (restore func()) + func RegisterInit(init func(env *Environment)) + func RegisterModule(name string, module interface{}) + func RequireModule(name string) (interface{}, error) + func ThrowIfHappened(call *otto.FunctionCall, err error) + func ThrowOtto(call *otto.FunctionCall, exceptionName string, arguments ...interface{}) + func ThrowOttoException(call *otto.FunctionCall, format string, arguments ...interface{}) + func ThrowWithMessageIfHappened(call *otto.FunctionCall, err error, format string, arguments ...interface{}) + func VerifyCallArguments(call *otto.FunctionCall, functionName string, expectedArgumentsCount int) + type Environment struct + DataStore db.DB + Identity middleware.IdentityService + Name string + Sync sync.Sync + VM *motto.Motto + func NewEnvironment(name string, dataStore db.DB, identity middleware.IdentityService, ...) *Environment + func (env *Environment) ClearEnvironment() + func (env *Environment) Clone() ext.Environment + func (env *Environment) GetOrCreateTransaction(value otto.Value) (transaction.Transaction, bool, error) + func (env *Environment) GohanGlobal(name string) map[string]interface{} + func (env *Environment) HandleEvent(event string, context map[string]interface{}) (err error) + func (env *Environment) IsEventHandled(event string, context map[string]interface{}) bool + func (env *Environment) Load(source, code string) error + func (env *Environment) LoadExtensionsForPath(extensions []*schema.Extension, timeLimit time.Duration, ...) error + func (env *Environment) RegisterObject(objectID string, object interface{}) + func (env *Environment) SetEventTimeLimit(eventRegex string, timeLimit time.Duration) + func (env *Environment) SetUp() + type GlobalStore struct + func NewGlobalStore() *GlobalStore + func (store *GlobalStore) Get(name string) map[string]interface{}