service

package module
v0.0.0-...-a6d1342 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: Apache-2.0 Imports: 4 Imported by: 2

README

License Go.Dev reference Go Report Card Discord Matrix

httpgateway

httpgateway is a service for inclusion in your Application. It maps HTTP requests to RPC calls.

You can configure it with RPC calls.

Example

Please see the realworld example in go-orb/examples.

Authors

go-orb

License

go-orb is Apache 2.0 licensed and is based on go-micro.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(serviceName string, clientWire client.Type) *Client

func (*Client) AddRoutes

func (c *Client) AddRoutes(ctx context.Context, routes *httpgateway_v1.Routes) (*emptypb.Empty, error)

func (*Client) RemoveRoutes

func (c *Client) RemoveRoutes(ctx context.Context, paths *httpgateway_v1.Paths) (*emptypb.Empty, error)

func (*Client) ServiceName

func (c *Client) ServiceName() string

func (*Client) SetRoutes

func (c *Client) SetRoutes(ctx context.Context, routes *httpgateway_v1.Routes) (*emptypb.Empty, error)

Directories

Path Synopsis
cmd
httpgateway command
Package main implements the httpgateway example app
Package main implements the httpgateway example app
pkg
httpgateway_handler
Package httpgateway_handler provides the http gateway handler.
Package httpgateway_handler provides the http gateway handler.
httpgateway_server
Package httpgateway_server provides the http gateway.
Package httpgateway_server provides the http gateway.
service
Package service implements the httpgateway service.
Package service implements the httpgateway service.
version
Package version provides the version and name of the service.
Package version provides the version and name of the service.
Package proto ...
Package proto ...

Jump to

Keyboard shortcuts

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