grpc

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 62 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(cfg *atomic.Pointer[config.Config], serviceDevice *serviceDevice.Service, info *configGrpc.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) GetConfig added in v0.3.0

func (s *ClientApplicationServer) GetConfig() config.Config

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) InitializeRemoteProvisioning added in v0.3.0

func (s *ClientApplicationServer) InitializeRemoteProvisioning(ctx context.Context, req *pb.InitializeRequest) (*pb.InitializeResponse, error)

func (*ClientApplicationServer) OffboardDevice added in v0.4.0

func (*ClientApplicationServer) OnboardDevice added in v0.4.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) StoreConfig added in v0.3.0

func (s *ClientApplicationServer) StoreConfig(cfg config.Config) error

func (*ClientApplicationServer) UpdateJSONWebKeys added in v0.2.0

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

func (*ClientApplicationServer) UpdatePSK added in v0.3.0

func (s *ClientApplicationServer) UpdatePSK(subjectUUID, key string) error

func (*ClientApplicationServer) UpdateResource

func (*ClientApplicationServer) Version added in v0.0.6

func (s *ClientApplicationServer) Version() string

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 configGrpc.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

Jump to

Keyboard shortcuts

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