Skip to content

flexdrive/seneca-ingress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seneca Ingress

Used by a gateway to listen for clients being added to the balance-client with nodeMetadata. Sends a message with pattern role:ingress,cmd:add,ingress:... for the gateway to listen to dynamically add new endpoints.

Metadata is passed in the message configuration:

nodeMetadata: {
  ingress: {
    routes: [
      {
        path: '/test',
        method: 'POST',
        pattern:
          'cmd:test,val1:{query.val1},payload:{payload},param1:{params.param1}'
      }
    ]
  }
}

Pattern placeholders can be used for params, query, and payload.

Include as a plugin only in a gateway.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published