services

package
v0.0.0-...-187538d Latest Latest
Warning

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

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

Documentation

Overview

Package services provides the host services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

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

Endpoint represents the endpoint.

func (*Endpoint) GracefulStop

func (e *Endpoint) GracefulStop(ctx context.Context) (bool, error)

GracefulStop stops the grpcendpoint.

func (*Endpoint) Serve

func (e *Endpoint) Serve(ctx context.Context, serviceCtx *azservices.ServiceContext) (bool, error)

Serve starts the grpcendpoint.

type EndpointConfig

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

EndpointConfig represents the endpoint configuration.

func (*EndpointConfig) GetHostable

func (c *EndpointConfig) GetHostable() azservices.Hostable

GetHostable returns the hostable.

func (*EndpointConfig) GetPort

func (c *EndpointConfig) GetPort() int

GetPort returns the port.

func (*EndpointConfig) GetRegistration

GetRegistration returns the registration function.

func (*EndpointConfig) GetService

func (c *EndpointConfig) GetService() azservices.ServiceKind

GetService returns the service kind.

func (*EndpointConfig) GetStorageConnector

func (c *EndpointConfig) GetStorageConnector() *azstorage.StorageConnector

GetStorageConnector returns the storage connector.

type Host

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

Host represents the host.

func NewHost

func NewHost(hostCfg *HostConfig) (*Host, error)

NewHost creates a new host.

func (*Host) GracefulStop

func (h *Host) GracefulStop(ctx context.Context) (bool, error)

GracefulStop stops the host.

func (*Host) Serve

func (h *Host) Serve(ctx context.Context) (bool, error)

Serve starts the host.

type HostConfig

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

HostConfig represents the host configuration.

func NewHostConfig

func NewHostConfig(host azservices.HostKind, hostable azservices.Hostable, storageConnector *azstorage.StorageConnector,
	services []azservices.ServiceKind, servicesFactories map[azservices.ServiceKind]azservices.ServiceFactoryProvider, logger *zap.Logger, appData string,
) (*HostConfig, error)

NewHostConfig creates a new host configuration.

func (*HostConfig) GetAppData

func (h *HostConfig) GetAppData() string

GetAppData returns the app data.

func (*HostConfig) GetHostable

func (h *HostConfig) GetHostable() azservices.Hostable

GetHostable returns the hostable.

func (*HostConfig) GetServicesFactories

func (h *HostConfig) GetServicesFactories() map[azservices.ServiceKind]azservices.ServiceFactoryProvider

GetServicesFactories returns the services factories.

func (*HostConfig) GetStorageConnector

func (h *HostConfig) GetStorageConnector() *azstorage.StorageConnector

GetStorageConnector returns the storage connector.

type Service

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

Service represents the service.

func (*Service) GracefulStop

func (s *Service) GracefulStop(ctx context.Context) (bool, error)

GracefulStop stops the service.

func (*Service) Serve

func (s *Service) Serve(ctx context.Context) (bool, error)

Serve starts the service.

type ServiceConfig

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

ServiceConfig represents the service configuration.

func (*ServiceConfig) GetHostable

func (c *ServiceConfig) GetHostable() azservices.Hostable

GetHostable returns the hostable.

func (*ServiceConfig) GetServiceable

func (c *ServiceConfig) GetServiceable() azservices.Serviceable

GetServiceable returns the serviceable.

func (*ServiceConfig) GetStorageConnector

func (c *ServiceConfig) GetStorageConnector() *azstorage.StorageConnector

GetStorageConnector returns the storage connector.

Directories

Path Synopsis
aap
Package aap for the applicative Account Administration Point components.
Package aap for the applicative Account Administration Point components.
controllers
Package controllers implement the service controllers.
Package controllers implement the service controllers.
endpoints/api/v1
Package v1 api version 1.
Package v1 api version 1.
pap
Package pap for the applicative Policy Administration Point components.
Package pap for the applicative Policy Administration Point components.
controllers
Package controllers implement the service controllers.
Package controllers implement the service controllers.
endpoints/api/v1
Package v1 api version 1.
Package v1 api version 1.
pdp
Package pdp for the applicative Policy Decision Point components.
Package pdp for the applicative Policy Decision Point components.
controllers
Package controllers implement the service controllers.
Package controllers implement the service controllers.
endpoints/api/v1
Package v1 api version 1.
Package v1 api version 1.

Jump to

Keyboard shortcuts

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