grpc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service provides a gRPC service that can save and fetch content representing a weekly entry of snippets.

func NewService

func NewService(storagePath string) *Service

NewService is the constructor for Service.

func (*Service) Get

func (s *Service) Get(ctx context.Context, in *pb.GetReq) (*pb.GetResp, error)

Get gets content for a specific week that is saved in the filesystem.

func (*Service) Save

func (s *Service) Save(ctx context.Context, in *pb.SaveReq) (*pb.SaveResp, error)

Save saves content for a specific week in the filesystem.

Directories

Path Synopsis
Package proto is a reverse proxy.
Package proto is a reverse proxy.

Jump to

Keyboard shortcuts

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