proxy

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxy

func NewProxy(kvClient Client, pushEnabled bool, logger log.Logger, loggerFactory LoggerFactory) *grpc.Server

Types

type Client

type Client interface {
	ChangeSession(invocationID string, appSlug string, buildSlug string, stepSlug string)
	SetLogger(logger log.Logger)
	DownloadStream(ctx context.Context, writer io.Writer, key string) error
	UploadStreamToBuildCache(ctx context.Context, reader io.Reader, key string, size int64) error
	GetCapabilitiesWithRetry(ctx context.Context) error
}

type LoggerFactory

type LoggerFactory func(invocationID string) (log.Logger, error)

type Proxy

type Proxy struct {
	llvmcas.UnimplementedCASDBServiceServer
	llvmkv.UnimplementedKeyValueDBServer
	session.UnimplementedSessionServer
	// contains filtered or unexported fields
}

func (*Proxy) Get

func (*Proxy) GetSessionStats

func (p *Proxy) GetSessionStats(_ context.Context, _ *emptypb.Empty) (*session.GetSessionStatsResponse, error)

func (*Proxy) GetValue

func (p *Proxy) GetValue(ctx context.Context, request *llvmkv.GetValueRequest) (*llvmkv.GetValueResponse, error)

func (*Proxy) Load

func (*Proxy) Put

func (*Proxy) PutValue

func (p *Proxy) PutValue(ctx context.Context, request *llvmkv.PutValueRequest) (*llvmkv.PutValueResponse, error)

func (*Proxy) Save

func (*Proxy) SetSession

func (p *Proxy) SetSession(_ context.Context, request *session.SetSessionRequest) (*emptypb.Empty, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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