INNER CODE UNIT · Go

maxMsgSize

Mirantis/cri-dockerd · backend/daemon.go:35

const maxMsgSize = 1024 * 1024 * 16

// CriDockerService is the grpc backend of cri-dockerd.
type CriDockerService struct {
	// endpoint is the endpoint to serve on.
	endpoint string
	// service is the docker service which implements runtime and image services.
	service core.DockerService
	// server is the grpc server.
	server *grpc.Server
}

// NewCriDockerServer creates the cri-dockerd grpc backend.
func NewCriDockerServer(endpoint string, s core.DockerService) *CriDockerService {
	return &CriDockerService{
		endpoint: endpoint,
		service:  s,
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…