api

package
v0.0.0-...-cb82d97 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomQueryParser

type CustomQueryParser struct {
	runtime.DefaultQueryParser
}

func (*CustomQueryParser) Parse

func (c *CustomQueryParser) Parse(msg proto.Message, values url.Values, filter *utilities.DoubleArray) error

type GrpcApi

type GrpcApi interface {
	Start() error
}

func NewProductGrpcApi

func NewProductGrpcApi(options Options, productService service.ProductService, logger logging.Logger) GrpcApi

func NewUserGrpcApi

func NewUserGrpcApi(options Options, userService service.UserService, logger logging.Logger) GrpcApi

type Options

type Options struct {
	Port        string
	MetricsPort string
}

type RegistrationParams

type RegistrationParams struct {
	Context  context.Context
	Opts     []grpc.DialOption
	Endpoint string
}

type RestApi

type RestApi interface {
	Start(port string, metricsPort string) error
}

type RestApiBuilder

type RestApiBuilder interface {
	WithRegistration(registration func(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) error, params RegistrationParams) (RestApiBuilder, error)
	Build() RestApi
}

func NewRestApiBuilder

func NewRestApiBuilder() RestApiBuilder

Directories

Path Synopsis
domain
v1
product
Package product is a reverse proxy.
Package product is a reverse proxy.
user
Package user is a reverse proxy.
Package user is a reverse proxy.

Jump to

Keyboard shortcuts

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