grpcGateway

package
v0.0.0-...-f9697bf Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServiceConnection

func ServiceConnection(ctx context.Context, host, port string) (*grpc.ClientConn, error)

Types

type Gateway

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

func New

func New(host, port string) *Gateway

New creates a new GRPC gateway for a franchise metadata service

func (*Gateway) Create

func (g *Gateway) Create(ctx context.Context, host string, franchiseID, companyID uint32) error

func (*Gateway) Get

func (g *Gateway) Get(ctx context.Context, companyID uint32) ([]*entities.Metadata, error)

func (*Gateway) GetBy

func (g *Gateway) GetBy(ctx context.Context, key string, value uint32) ([]*entities.Metadata, error)

Jump to

Keyboard shortcuts

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