execlog

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package execlog provides goma execlog service implementation.

Index

Constants

View Source
const DefaultMaxReqMsgSize = 8 * 1024 * 1024

DefaultMaxReqMsgSize is max request message size for execlog service. execlog server may recives > 6MB. grpc's default is 4MB.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a client to access execlog service via gRPC.

func NewClient

func NewClient(address string, opts ...grpc.DialOption) Client

NewClient creates new client to access execlog service serving on address.

func (Client) SaveLog

func (c Client) SaveLog(ctx context.Context, in *gomapb.SaveLogReq, opts ...grpc.CallOption) (*gomapb.SaveLogResp, error)

SaveLog saves requested execlog.

type Service

type Service struct {
}

Service represents goma execlog service.

func (Service) SaveLog

func (s Service) SaveLog(ctx context.Context, req *gomapb.SaveLogReq) (*gomapb.SaveLogResp, error)

SaveLog discards execlog. TODO: implement saving logic to GCS?

Jump to

Keyboard shortcuts

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