Documentation ¶
Index ¶
- Constants
- Variables
- func FindDeviceByName(name string, useMulticast []pb.GetDevicesRequest_UseMulticast) (*grpcgwPb.Device, error)
- func GetDeviceResourceLinks() schema.ResourceLinks
- func MakeConfig(t require.TestingT) service.Config
- func MakeDeviceConfig() serviceDevice.Config
- func MakeGrpcConfig() service.GRPCConfig
- func MakeHttpConfig() service.HTTPConfig
- func MakeRemoteProvisioningConfig() remoteProvisioning.Config
- func MustFindDeviceByName(name string, useMulticast []pb.GetDevicesRequest_UseMulticast) *grpcgwPb.Device
- func MustGetHostname() string
- func New(t *testing.T, cfg service.Config) func()
- func NewClientApplicationServer(ctx context.Context, opts ...ClientApplicationServerOpt) (*serviceGrpc.ClientApplicationServer, func(), error)
- func NewHttpService(ctx context.Context, t *testing.T) (*http.Service, func())
- func NewServiceInformation() *serviceGrpc.ServiceInformation
- func SetUp(t *testing.T) (tearDown func())
- type ClientApplicationGetDevicesServer
- type ClientApplicationServerCfg
- type ClientApplicationServerOpt
Constants ¶
View Source
const ( CLIENT_APPLICATION_HTTP_HOST = "localhost:40050" CLIENT_APPLICATION_GRPC_HOST = "localhost:40051" VERSION = "v0.0.1-test" BUILD_DATE = "1.1.1970" COMMIT_HASH = "aaa" PSK_OWNER = "57b3fae9-adf5-4e34-90ea-e77784407103" )
Variables ¶
View Source
var ( MFG_ROOT_CA_CRT = os.Getenv("MFG_ROOT_CA_CRT") MFG_CLIENT_APPLICATION_CRT = os.Getenv("MFG_CLIENT_APPLICATION_CRT") MFG_CLIENT_APPLICATION_KEY = os.Getenv("MFG_CLIENT_APPLICATION_KEY") )
View Source
var DevsimName string
Functions ¶
func FindDeviceByName ¶
func GetDeviceResourceLinks ¶
func GetDeviceResourceLinks() schema.ResourceLinks
func MakeDeviceConfig ¶
func MakeDeviceConfig() serviceDevice.Config
func MakeGrpcConfig ¶
func MakeGrpcConfig() service.GRPCConfig
func MakeHttpConfig ¶
func MakeHttpConfig() service.HTTPConfig
func MakeRemoteProvisioningConfig ¶ added in v0.2.0
func MakeRemoteProvisioningConfig() remoteProvisioning.Config
func MustFindDeviceByName ¶
func MustFindDeviceByName(name string, useMulticast []pb.GetDevicesRequest_UseMulticast) *grpcgwPb.Device
func MustGetHostname ¶
func MustGetHostname() string
func NewClientApplicationServer ¶
func NewClientApplicationServer(ctx context.Context, opts ...ClientApplicationServerOpt) (*serviceGrpc.ClientApplicationServer, func(), error)
func NewHttpService ¶
func NewServiceInformation ¶ added in v0.0.6
func NewServiceInformation() *serviceGrpc.ServiceInformation
Types ¶
type ClientApplicationGetDevicesServer ¶
type ClientApplicationGetDevicesServer struct { grpc.ServerStream Devices []*grpcgwPb.Device Ctx context.Context }
func NewClientApplicationGetDevicesServer ¶
func NewClientApplicationGetDevicesServer(ctx context.Context) *ClientApplicationGetDevicesServer
func (*ClientApplicationGetDevicesServer) Context ¶
func (s *ClientApplicationGetDevicesServer) Context() context.Context
type ClientApplicationServerCfg ¶ added in v0.1.0
type ClientApplicationServerCfg struct { Cfg serviceDevice.Config RemoteProvisioningCfg remoteProvisioning.Config }
type ClientApplicationServerOpt ¶ added in v0.1.0
type ClientApplicationServerOpt = func(c *ClientApplicationServerCfg)
func WithDeviceConfig ¶ added in v0.1.0
func WithDeviceConfig(cfg serviceDevice.Config) ClientApplicationServerOpt
func WithRemoteProvisioningConfig ¶ added in v0.2.0
func WithRemoteProvisioningConfig(cfg remoteProvisioning.Config) ClientApplicationServerOpt
Click to show internal directories.
Click to hide internal directories.