api

module
v2.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2022 License: MIT

README

RoadRunner

Total alerts

RoadRunner API

RR API consists of 2 parts:

  1. Plugin interfaces.
  2. Proto API for the PHP clients, at the moment released as V1Beta.

Plugins should depend only on this repo, but not on each other. For example:

package foo

import (
    "github.com/roadrunner-server/api/v2/plugins/config"
)

type Plugin struct {}

func (p *Plugin) Init(cfg config.Configurer) error {
	return nil
}

Here as you see, our package foo depends only on the api repository, thus you can easily switch between implementations.


Proto API used for the external integrations for the RPC (mostly) or as the internal communications. For example:

package foo

import (
	jobsv1beta "github.com/roadrunner-server/api/v2/proto/jobs/v1beta"
)

func Push(in *jobsv1beta.PushRequest, out *jobsv1beta.Empty) error {
	return nil
}

Here is the method used in the RR to accept the Job from the external system.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL