grpc

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 56 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultTimeout = 2 * time.Second
	MulticastPort  = 5683
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientApplicationServer

type ClientApplicationServer struct {
	pb.UnimplementedClientApplicationServer
	// contains filtered or unexported fields
}

func NewClientApplicationServer

func NewClientApplicationServer(remoteProvisioningConfig remoteProvisioning.Config, serviceDevice *serviceDevice.Service, info *ServiceInformation, logger log.Logger) *ClientApplicationServer

func (*ClientApplicationServer) ClearCache

func (*ClientApplicationServer) Close added in v0.2.0

func (s *ClientApplicationServer) Close()

func (*ClientApplicationServer) CreateResource

func (*ClientApplicationServer) DeleteResource

func (*ClientApplicationServer) DisownDevice

func (*ClientApplicationServer) FinishInitialize added in v0.2.0

func (*ClientApplicationServer) FinishOwnDevice added in v0.2.0

func (*ClientApplicationServer) GetConfiguration added in v0.2.0

func (*ClientApplicationServer) GetDevice

func (*ClientApplicationServer) GetDevices

func (*ClientApplicationServer) GetIdentityCertificate added in v0.2.0

func (*ClientApplicationServer) GetJSONWebKeys added in v0.2.0

func (*ClientApplicationServer) GetResource

func (*ClientApplicationServer) HasJWTAuthorizationEnabled added in v0.2.0

func (s *ClientApplicationServer) HasJWTAuthorizationEnabled() bool

func (*ClientApplicationServer) Initialize added in v0.2.0

func (*ClientApplicationServer) OwnDevice

func (*ClientApplicationServer) ParseWithClaims added in v0.2.0

func (s *ClientApplicationServer) ParseWithClaims(token string, claims jwt.Claims) error

func (*ClientApplicationServer) Reset added in v0.2.0

func (*ClientApplicationServer) UpdateJSONWebKeys added in v0.2.0

func (s *ClientApplicationServer) UpdateJSONWebKeys(ctx context.Context, jwksReq *structpb.Struct) error

func (*ClientApplicationServer) UpdateResource

func (*ClientApplicationServer) Version added in v0.0.6

func (s *ClientApplicationServer) Version() string

type Config

type Config = server.Config

type JSONWebKeyCache added in v0.2.0

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

func NewJSONWebKeyCache added in v0.2.0

func NewJSONWebKeyCache(owner uuid.UUID, keys jwk.Set) *JSONWebKeyCache

func (*JSONWebKeyCache) GetKey added in v0.2.0

func (c *JSONWebKeyCache) GetKey(token *jwt.Token) (interface{}, error)

func (*JSONWebKeyCache) LookupKey added in v0.2.0

func (c *JSONWebKeyCache) LookupKey(token *jwt.Token) (jwk.Key, error)

type Service

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

func New

func New(ctx context.Context, serviceName string, config Config, clientApplicationServer *ClientApplicationServer, fileWatcher *fsnotify.Watcher, logger log.Logger, tracerProvider trace.TracerProvider) (*Service, error)

New creates new GRPC service

func (*Service) Address

func (s *Service) Address() string

func (*Service) Close added in v0.2.0

func (s *Service) Close() error

Shutdown ends serving

func (*Service) Serve

func (s *Service) Serve() error

Serve starts the service's HTTP server and blocks

type ServiceInformation added in v0.0.6

type ServiceInformation = pb.GetConfigurationResponse

Jump to

Keyboard shortcuts

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