Documentation ¶
Overview ¶
Package server contains gRPC API endpoints to work with `storage` service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAuthRequired = status.Error(codes.Unauthenticated, "authentication required") ErrPullUpToDate = status.Error(codes.NotFound, "nothing to pull: already up to date") ErrUnknown = status.Error(codes.Unknown, "common push error") ErrRecordNotFound = status.Error(codes.NotFound, "record not found") )
Functions ¶
This section is empty.
Types ¶
type StorageServer ¶
type StorageServer struct { pb.UnimplementedStorageServer // contains filtered or unexported fields }
StorageServer implements API points to work with `Storage` service using gRPC protocol.
func (StorageServer) InitBranch ¶
func (s StorageServer) InitBranch(ctx context.Context, _ *empty.Empty) (*pb.InitBranchResponse, error)
func (StorageServer) Pull ¶
func (s StorageServer) Pull(ctx context.Context, in *pb.PullRequest) (*pb.PullResponse, error)
func (StorageServer) Push ¶
func (s StorageServer) Push(ctx context.Context, in *pb.PushRequest) (*pb.PushResponse, error)
Click to show internal directories.
Click to hide internal directories.