Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles HTTP requests.
func New ¶
func New(cnf config.ServerConfig, service Service) *Server
New returns a new instance of the Forma server.
type Service ¶
type Service interface { // HandleGetV1 handles an input request. // Deprecated: TODO issue#version3.0 use SchemaEditor and gRPC gateway instead HandleGetV1(context.Context, v1.GetRequest) v1.GetResponse // HandleInput handles an input request. HandleInput(context.Context, v1.PostRequest) v1.PostResponse }
Service defines the behavior of the Forma service.
Click to show internal directories.
Click to hide internal directories.