20 lines
407 B
Go
20 lines
407 B
Go
package server
|
|
|
|
import (
|
|
"github.com/keegancsmith/rpc"
|
|
|
|
"forge.cadoles.com/arcad/edge/pkg/storage"
|
|
)
|
|
|
|
func NewBlobStoreServer(store storage.BlobStore) *rpc.Server {
|
|
server := rpc.NewServer()
|
|
server.Register(NewBlobStore(store))
|
|
return server
|
|
}
|
|
|
|
func NewDocumentStoreServer(store storage.DocumentStore) *rpc.Server {
|
|
server := rpc.NewServer()
|
|
server.Register(NewDocumentStore(store))
|
|
return server
|
|
}
|