publishserver

package
v0.0.0-...-19f3ddf Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Implements publish_service.proto (see proto for details)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublishService

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

PublishService implementation of publish_service.proto

func NewPublishService

func NewPublishService(ctx context.Context, gcpCredentials string, logger *log.Logger) (*PublishService, func(), error)

NewPublishService creates a new publish service with the GCP storage client.

func (*PublishService) RunCli

func (s *PublishService) RunCli(ctx context.Context, localDir string, gsDir string, outputPath string) error

RunCli runs publish service as execution by CLI.

Steps: 1) Publish the data to GCS bucket. 2) Save output log data.

func (*PublishService) StartServer

func (s *PublishService) StartServer(port int) error

StartServer starts publish server on requested port

func (*PublishService) UploadToGS

UploadToGS uploads the designated folder to the provided Google Cloud Storage bucket/object

Directories

Path Synopsis
Package mock_storage is a generated GoMock package.
Package mock_storage is a generated GoMock package.

Jump to

Keyboard shortcuts

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