server

package
v0.0.0-...-864a334 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: MIT Imports: 14 Imported by: 0

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 New

func New(
	logger *zap.Logger,
	branch brnUC.UseCase,
	record recUC.UseCase,
) *StorageServer

func (StorageServer) InitBranch

func (s StorageServer) InitBranch(ctx context.Context, _ *empty.Empty) (*pb.InitBranchResponse, error)

func (StorageServer) Pull

func (StorageServer) Push

Jump to

Keyboard shortcuts

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