grpc

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 55 Imported by: 0

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