gateway

package
v1.50.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalGatewayService

type LocalGatewayService struct {
	ApiTlsCredentials *TLSCredentials

	gateway.UnimplementedGatewayPlugin
	// contains filtered or unexported fields
}

func NewGateway

func NewGateway(opts NewGatewayOpts) (*LocalGatewayService, error)

Create new HTTP gateway XXX: No External Args for function atm (currently the plugin loader does not pass any argument information)

func (*LocalGatewayService) GetApiAddresses

func (s *LocalGatewayService) GetApiAddresses() map[string]string

GetApiAddresses - Returns a map of API names to their addresses, including protocol and port

func (*LocalGatewayService) GetHttpWorkerAddresses

func (s *LocalGatewayService) GetHttpWorkerAddresses() map[string]string

func (*LocalGatewayService) GetScheduleManualTriggerUrl

func (s *LocalGatewayService) GetScheduleManualTriggerUrl(scheduleName string) string

func (*LocalGatewayService) GetTopicTriggerUrl

func (s *LocalGatewayService) GetTopicTriggerUrl(topicName string) string

func (*LocalGatewayService) GetTriggerAddress

func (s *LocalGatewayService) GetTriggerAddress() string

GetTriggerAddress - Returns the base address built-in nitric services, like schedules and topics, will be exposed on.

func (*LocalGatewayService) GetWebsocketAddresses

func (s *LocalGatewayService) GetWebsocketAddresses() map[string]string

func (*LocalGatewayService) Start

func (*LocalGatewayService) Stop

func (s *LocalGatewayService) Stop() error

type NewGatewayOpts added in v1.47.0

type NewGatewayOpts struct {
	TLSCredentials *TLSCredentials
	LogWriter      io.Writer
}

type TLSCredentials added in v1.47.0

type TLSCredentials struct {
	// CertFile - Path to the certificate file
	CertFile string
	// KeyFile - Path to the private key file
	KeyFile string
}

Jump to

Keyboard shortcuts

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