grpc

package
v0.0.0-...-2e14e4b Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	gen.UnimplementedMetadataServiceServer
	// contains filtered or unexported fields
}

Handler defines a movie metadata gRPC handler.

func New

func New(ctrl *metadata.Controller) *Handler

New creates a new movie metadata gRPC handler.

func (*Handler) GetMetadata

func (h *Handler) GetMetadata(ctx context.Context,
	req *gen.GetMetadataRequest) (*gen.GetMetadataResponse, error)

func (*Handler) PutMetadata

func (h *Handler) PutMetadata(ctx context.Context, req *gen.PutMetadataRequest) (*gen.PutMetadataResponse, error)

PutMetadata puts movie metadata to repository.

Jump to

Keyboard shortcuts

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