blob: 51332e149fcbd15dd7de2bff7e59ea39ec7dba65 [file] [log] [blame]
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package gomote
import (
"golang.org/x/build/internal/coordinator/remote"
"golang.org/x/build/internal/gomote/protos"
)
// Server is a gomote server implementation.
type Server struct {
// embed the unimplemented server.
protos.UnimplementedGomoteServiceServer
buildlets *remote.SessionPool
}
// New creates a gomote server.
func New(rsp *remote.SessionPool) *Server {
return &Server{
buildlets: rsp,
}
}