device_directory

package
v0.0.0-...-1c3cffe Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthQueries        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQueries          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQueries = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Status_name = map[int32]string{
	0: "ONLINE",
	1: "OFFLINE",
}
View Source
var Status_value = map[string]int32{
	"ONLINE":  0,
	"OFFLINE": 1,
}

Functions

func RegisterDeviceDirectoryServer

func RegisterDeviceDirectoryServer(s *grpc.Server, srv DeviceDirectoryServer)

Types

type Device

type Device struct {
	Id       string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	IsOnline bool      `protobuf:"varint,3,opt,name=is_online,json=isOnline,proto3" json:"is_online,omitempty"`
}

func (*Device) Descriptor

func (*Device) Descriptor() ([]byte, []int)

func (*Device) GetId

func (m *Device) GetId() string

func (*Device) GetIsOnline

func (m *Device) GetIsOnline() bool

func (*Device) GetResource

func (m *Device) GetResource() *Resource

func (*Device) Marshal

func (m *Device) Marshal() (dAtA []byte, err error)

func (*Device) MarshalTo

func (m *Device) MarshalTo(dAtA []byte) (int, error)

func (*Device) MarshalToSizedBuffer

func (m *Device) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) Reset

func (m *Device) Reset()

func (*Device) Size

func (m *Device) Size() (n int)

func (*Device) String

func (m *Device) String() string

func (*Device) Unmarshal

func (m *Device) Unmarshal(dAtA []byte) error

func (*Device) XXX_DiscardUnknown

func (m *Device) XXX_DiscardUnknown()

func (*Device) XXX_Marshal

func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Device) XXX_Merge

func (m *Device) XXX_Merge(src proto.Message)

func (*Device) XXX_Size

func (m *Device) XXX_Size() int

func (*Device) XXX_Unmarshal

func (m *Device) XXX_Unmarshal(b []byte) error

type DeviceDirectoryClient

type DeviceDirectoryClient interface {
	GetDevices(ctx context.Context, in *GetDevicesRequest, opts ...grpc.CallOption) (DeviceDirectory_GetDevicesClient, error)
}

DeviceDirectoryClient is the client API for DeviceDirectory service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDeviceDirectoryClient

func NewDeviceDirectoryClient(cc *grpc.ClientConn) DeviceDirectoryClient

type DeviceDirectoryServer

type DeviceDirectoryServer interface {
	GetDevices(*GetDevicesRequest, DeviceDirectory_GetDevicesServer) error
}

DeviceDirectoryServer is the server API for DeviceDirectory service.

type DeviceDirectory_GetDevicesClient

type DeviceDirectory_GetDevicesClient interface {
	Recv() (*Device, error)
	grpc.ClientStream
}

type DeviceDirectory_GetDevicesServer

type DeviceDirectory_GetDevicesServer interface {
	Send(*Device) error
	grpc.ServerStream
}

type GetDevicesRequest

type GetDevicesRequest struct {
	AuthorizationContext *pb.AuthorizationContext `protobuf:"bytes,1,opt,name=authorization_context,json=authorizationContext,proto3" json:"authorization_context,omitempty"`
	TypeFilter           []string                 `protobuf:"bytes,2,rep,name=type_filter,json=typeFilter,proto3" json:"type_filter,omitempty"`
	StatusFilter         []Status                 `` /* 147-byte string literal not displayed */
	DeviceIdsFilter      []string                 `protobuf:"bytes,4,rep,name=device_ids_filter,json=deviceIdsFilter,proto3" json:"device_ids_filter,omitempty"`
}

func (*GetDevicesRequest) Descriptor

func (*GetDevicesRequest) Descriptor() ([]byte, []int)

func (*GetDevicesRequest) GetAuthorizationContext

func (m *GetDevicesRequest) GetAuthorizationContext() *pb.AuthorizationContext

func (*GetDevicesRequest) GetDeviceIdsFilter

func (m *GetDevicesRequest) GetDeviceIdsFilter() []string

func (*GetDevicesRequest) GetStatusFilter

func (m *GetDevicesRequest) GetStatusFilter() []Status

func (*GetDevicesRequest) GetTypeFilter

func (m *GetDevicesRequest) GetTypeFilter() []string

func (*GetDevicesRequest) Marshal

func (m *GetDevicesRequest) Marshal() (dAtA []byte, err error)

func (*GetDevicesRequest) MarshalTo

func (m *GetDevicesRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetDevicesRequest) MarshalToSizedBuffer

func (m *GetDevicesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetDevicesRequest) ProtoMessage

func (*GetDevicesRequest) ProtoMessage()

func (*GetDevicesRequest) Reset

func (m *GetDevicesRequest) Reset()

func (*GetDevicesRequest) Size

func (m *GetDevicesRequest) Size() (n int)

func (*GetDevicesRequest) String

func (m *GetDevicesRequest) String() string

func (*GetDevicesRequest) Unmarshal

func (m *GetDevicesRequest) Unmarshal(dAtA []byte) error

func (*GetDevicesRequest) XXX_DiscardUnknown

func (m *GetDevicesRequest) XXX_DiscardUnknown()

func (*GetDevicesRequest) XXX_Marshal

func (m *GetDevicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetDevicesRequest) XXX_Merge

func (m *GetDevicesRequest) XXX_Merge(src proto.Message)

func (*GetDevicesRequest) XXX_Size

func (m *GetDevicesRequest) XXX_Size() int

func (*GetDevicesRequest) XXX_Unmarshal

func (m *GetDevicesRequest) XXX_Unmarshal(b []byte) error

type LocalizedString

type LocalizedString struct {
	Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language"`
	Value    string `protobuf:"bytes,2,opt,name=value,proto3" json:"value"`
}

func (*LocalizedString) Descriptor

func (*LocalizedString) Descriptor() ([]byte, []int)

func (*LocalizedString) GetLanguage

func (m *LocalizedString) GetLanguage() string

func (*LocalizedString) GetValue

func (m *LocalizedString) GetValue() string

func (*LocalizedString) Marshal

func (m *LocalizedString) Marshal() (dAtA []byte, err error)

func (*LocalizedString) MarshalTo

func (m *LocalizedString) MarshalTo(dAtA []byte) (int, error)

func (*LocalizedString) MarshalToSizedBuffer

func (m *LocalizedString) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LocalizedString) ProtoMessage

func (*LocalizedString) ProtoMessage()

func (*LocalizedString) Reset

func (m *LocalizedString) Reset()

func (*LocalizedString) Size

func (m *LocalizedString) Size() (n int)

func (*LocalizedString) String

func (m *LocalizedString) String() string

func (*LocalizedString) Unmarshal

func (m *LocalizedString) Unmarshal(dAtA []byte) error

func (*LocalizedString) XXX_DiscardUnknown

func (m *LocalizedString) XXX_DiscardUnknown()

func (*LocalizedString) XXX_Marshal

func (m *LocalizedString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocalizedString) XXX_Merge

func (m *LocalizedString) XXX_Merge(src proto.Message)

func (*LocalizedString) XXX_Size

func (m *LocalizedString) XXX_Size() int

func (*LocalizedString) XXX_Unmarshal

func (m *LocalizedString) XXX_Unmarshal(b []byte) error

type Resource

type Resource struct {
	ResourceTypes    []string           `protobuf:"bytes,1,rep,name=resource_types,json=resourceTypes,proto3" json:"rt"`
	Name             string             `protobuf:"bytes,2,opt,name=name,proto3" json:"n"`
	ManufacturerName []*LocalizedString `protobuf:"bytes,3,rep,name=manufacturer_name,json=manufacturerName,proto3" json:"dmn"`
	ModelNumber      string             `protobuf:"bytes,4,opt,name=model_number,json=modelNumber,proto3" json:"dmno"`
}

func (*Resource) Descriptor

func (*Resource) Descriptor() ([]byte, []int)

func (*Resource) GetManufacturerName

func (m *Resource) GetManufacturerName() []*LocalizedString

func (*Resource) GetModelNumber

func (m *Resource) GetModelNumber() string

func (*Resource) GetName

func (m *Resource) GetName() string

func (*Resource) GetResourceTypes

func (m *Resource) GetResourceTypes() []string

func (*Resource) Marshal

func (m *Resource) Marshal() (dAtA []byte, err error)

func (*Resource) MarshalTo

func (m *Resource) MarshalTo(dAtA []byte) (int, error)

func (*Resource) MarshalToSizedBuffer

func (m *Resource) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) Reset

func (m *Resource) Reset()

func (*Resource) Size

func (m *Resource) Size() (n int)

func (*Resource) String

func (m *Resource) String() string

func (*Resource) Unmarshal

func (m *Resource) Unmarshal(dAtA []byte) error

func (*Resource) XXX_DiscardUnknown

func (m *Resource) XXX_DiscardUnknown()

func (*Resource) XXX_Marshal

func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Resource) XXX_Merge

func (m *Resource) XXX_Merge(src proto.Message)

func (*Resource) XXX_Size

func (m *Resource) XXX_Size() int

func (*Resource) XXX_Unmarshal

func (m *Resource) XXX_Unmarshal(b []byte) error

type Status

type Status int32
const (
	Status_ONLINE  Status = 0
	Status_OFFLINE Status = 1
)

func (Status) EnumDescriptor

func (Status) EnumDescriptor() ([]byte, []int)

func (Status) String

func (x Status) String() string

type UnimplementedDeviceDirectoryServer

type UnimplementedDeviceDirectoryServer struct {
}

UnimplementedDeviceDirectoryServer can be embedded to have forward compatible implementations.

func (*UnimplementedDeviceDirectoryServer) GetDevices

Jump to

Keyboard shortcuts

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