Documentation ¶
Index ¶
- func RegisterPubSubServer(s *grpc.Server, srv PubSubServer)
- type AppInfo
- func (*AppInfo) Descriptor() ([]byte, []int)
- func (m *AppInfo) GetAppid() string
- func (m *AppInfo) GetCamid() string
- func (*AppInfo) ProtoMessage()
- func (m *AppInfo) Reset()
- func (m *AppInfo) String() string
- func (m *AppInfo) XXX_DiscardUnknown()
- func (m *AppInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AppInfo) XXX_Merge(src proto.Message)
- func (m *AppInfo) XXX_Size() int
- func (m *AppInfo) XXX_Unmarshal(b []byte) error
- type CameraInfo
- func (*CameraInfo) Descriptor() ([]byte, []int)
- func (m *CameraInfo) GetCamid() []string
- func (*CameraInfo) ProtoMessage()
- func (m *CameraInfo) Reset()
- func (m *CameraInfo) String() string
- func (m *CameraInfo) XXX_DiscardUnknown()
- func (m *CameraInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CameraInfo) XXX_Merge(src proto.Message)
- func (m *CameraInfo) XXX_Size() int
- func (m *CameraInfo) XXX_Unmarshal(b []byte) error
- type CameraParameters
- func (*CameraParameters) Descriptor() ([]byte, []int)
- func (*CameraParameters) ProtoMessage()
- func (m *CameraParameters) Reset()
- func (m *CameraParameters) String() string
- func (m *CameraParameters) XXX_DiscardUnknown()
- func (m *CameraParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CameraParameters) XXX_Merge(src proto.Message)
- func (m *CameraParameters) XXX_Size() int
- func (m *CameraParameters) XXX_Unmarshal(b []byte) error
- type Id
- func (*Id) Descriptor() ([]byte, []int)
- func (m *Id) GetId() string
- func (*Id) ProtoMessage()
- func (m *Id) Reset()
- func (m *Id) String() string
- func (m *Id) XXX_DiscardUnknown()
- func (m *Id) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Id) XXX_Merge(src proto.Message)
- func (m *Id) XXX_Size() int
- func (m *Id) XXX_Unmarshal(b []byte) error
- type Image
- func (*Image) Descriptor() ([]byte, []int)
- func (m *Image) GetImage() []byte
- func (m *Image) GetTimestamp() string
- func (*Image) ProtoMessage()
- func (m *Image) Reset()
- func (m *Image) String() string
- func (m *Image) XXX_DiscardUnknown()
- func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Image) XXX_Merge(src proto.Message)
- func (m *Image) XXX_Size() int
- func (m *Image) XXX_Unmarshal(b []byte) error
- type ImageStreamParameters
- func (*ImageStreamParameters) Descriptor() ([]byte, []int)
- func (m *ImageStreamParameters) GetAccuracy() string
- func (m *ImageStreamParameters) GetAppid() string
- func (m *ImageStreamParameters) GetCamid() string
- func (m *ImageStreamParameters) GetLatency() string
- func (m *ImageStreamParameters) GetStart() string
- func (m *ImageStreamParameters) GetStop() string
- func (*ImageStreamParameters) ProtoMessage()
- func (m *ImageStreamParameters) Reset()
- func (m *ImageStreamParameters) String() string
- func (m *ImageStreamParameters) XXX_DiscardUnknown()
- func (m *ImageStreamParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ImageStreamParameters) XXX_Merge(src proto.Message)
- func (m *ImageStreamParameters) XXX_Size() int
- func (m *ImageStreamParameters) XXX_Unmarshal(b []byte) error
- type NodeInfo
- func (*NodeInfo) Descriptor() ([]byte, []int)
- func (m *NodeInfo) GetCamid() string
- func (m *NodeInfo) GetIpaddr() string
- func (*NodeInfo) ProtoMessage()
- func (m *NodeInfo) Reset()
- func (m *NodeInfo) String() string
- func (m *NodeInfo) XXX_DiscardUnknown()
- func (m *NodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeInfo) XXX_Merge(src proto.Message)
- func (m *NodeInfo) XXX_Size() int
- func (m *NodeInfo) XXX_Unmarshal(b []byte) error
- type PubSubClient
- type PubSubServer
- type PubSub_SubscribeClient
- type PubSub_SubscribeServer
- type Status
- func (*Status) Descriptor() ([]byte, []int)
- func (m *Status) GetStatus() bool
- func (*Status) ProtoMessage()
- func (m *Status) Reset()
- func (m *Status) String() string
- func (m *Status) XXX_DiscardUnknown()
- func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Status) XXX_Merge(src proto.Message)
- func (m *Status) XXX_Size() int
- func (m *Status) XXX_Unmarshal(b []byte) error
- type Url
- func (*Url) Descriptor() ([]byte, []int)
- func (m *Url) GetAddress() string
- func (*Url) ProtoMessage()
- func (m *Url) Reset()
- func (m *Url) String() string
- func (m *Url) XXX_DiscardUnknown()
- func (m *Url) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Url) XXX_Merge(src proto.Message)
- func (m *Url) XXX_Size() int
- func (m *Url) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPubSubServer ¶
func RegisterPubSubServer(s *grpc.Server, srv PubSubServer)
Types ¶
type AppInfo ¶
type AppInfo struct { Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"` Camid string `protobuf:"bytes,2,opt,name=camid,proto3" json:"camid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AppInfo) Descriptor ¶
func (*AppInfo) ProtoMessage ¶
func (*AppInfo) ProtoMessage()
func (*AppInfo) XXX_DiscardUnknown ¶
func (m *AppInfo) XXX_DiscardUnknown()
func (*AppInfo) XXX_Marshal ¶
func (*AppInfo) XXX_Unmarshal ¶
type CameraInfo ¶
type CameraInfo struct { Camid []string `protobuf:"bytes,1,rep,name=camid,proto3" json:"camid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CameraInfo) Descriptor ¶
func (*CameraInfo) Descriptor() ([]byte, []int)
func (*CameraInfo) GetCamid ¶
func (m *CameraInfo) GetCamid() []string
func (*CameraInfo) ProtoMessage ¶
func (*CameraInfo) ProtoMessage()
func (*CameraInfo) Reset ¶
func (m *CameraInfo) Reset()
func (*CameraInfo) String ¶
func (m *CameraInfo) String() string
func (*CameraInfo) XXX_DiscardUnknown ¶
func (m *CameraInfo) XXX_DiscardUnknown()
func (*CameraInfo) XXX_Marshal ¶
func (m *CameraInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CameraInfo) XXX_Merge ¶
func (m *CameraInfo) XXX_Merge(src proto.Message)
func (*CameraInfo) XXX_Size ¶
func (m *CameraInfo) XXX_Size() int
func (*CameraInfo) XXX_Unmarshal ¶
func (m *CameraInfo) XXX_Unmarshal(b []byte) error
type CameraParameters ¶
type CameraParameters struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CameraParameters) Descriptor ¶
func (*CameraParameters) Descriptor() ([]byte, []int)
func (*CameraParameters) ProtoMessage ¶
func (*CameraParameters) ProtoMessage()
func (*CameraParameters) Reset ¶
func (m *CameraParameters) Reset()
func (*CameraParameters) String ¶
func (m *CameraParameters) String() string
func (*CameraParameters) XXX_DiscardUnknown ¶
func (m *CameraParameters) XXX_DiscardUnknown()
func (*CameraParameters) XXX_Marshal ¶
func (m *CameraParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CameraParameters) XXX_Merge ¶
func (m *CameraParameters) XXX_Merge(src proto.Message)
func (*CameraParameters) XXX_Size ¶
func (m *CameraParameters) XXX_Size() int
func (*CameraParameters) XXX_Unmarshal ¶
func (m *CameraParameters) XXX_Unmarshal(b []byte) error
type Id ¶
type Id struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Id) Descriptor ¶
func (*Id) ProtoMessage ¶
func (*Id) ProtoMessage()
func (*Id) XXX_DiscardUnknown ¶
func (m *Id) XXX_DiscardUnknown()
func (*Id) XXX_Unmarshal ¶
type Image ¶
type Image struct { Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Image) Descriptor ¶
func (*Image) GetTimestamp ¶
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) XXX_DiscardUnknown ¶
func (m *Image) XXX_DiscardUnknown()
func (*Image) XXX_Marshal ¶
func (*Image) XXX_Unmarshal ¶
type ImageStreamParameters ¶
type ImageStreamParameters struct { Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"` Camid string `protobuf:"bytes,2,opt,name=camid,proto3" json:"camid,omitempty"` Latency string `protobuf:"bytes,3,opt,name=latency,proto3" json:"latency,omitempty"` Accuracy string `protobuf:"bytes,4,opt,name=accuracy,proto3" json:"accuracy,omitempty"` Start string `protobuf:"bytes,5,opt,name=start,proto3" json:"start,omitempty"` Stop string `protobuf:"bytes,6,opt,name=stop,proto3" json:"stop,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ImageStreamParameters) Descriptor ¶
func (*ImageStreamParameters) Descriptor() ([]byte, []int)
func (*ImageStreamParameters) GetAccuracy ¶
func (m *ImageStreamParameters) GetAccuracy() string
func (*ImageStreamParameters) GetAppid ¶
func (m *ImageStreamParameters) GetAppid() string
func (*ImageStreamParameters) GetCamid ¶
func (m *ImageStreamParameters) GetCamid() string
func (*ImageStreamParameters) GetLatency ¶
func (m *ImageStreamParameters) GetLatency() string
func (*ImageStreamParameters) GetStart ¶
func (m *ImageStreamParameters) GetStart() string
func (*ImageStreamParameters) GetStop ¶
func (m *ImageStreamParameters) GetStop() string
func (*ImageStreamParameters) ProtoMessage ¶
func (*ImageStreamParameters) ProtoMessage()
func (*ImageStreamParameters) Reset ¶
func (m *ImageStreamParameters) Reset()
func (*ImageStreamParameters) String ¶
func (m *ImageStreamParameters) String() string
func (*ImageStreamParameters) XXX_DiscardUnknown ¶
func (m *ImageStreamParameters) XXX_DiscardUnknown()
func (*ImageStreamParameters) XXX_Marshal ¶
func (m *ImageStreamParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ImageStreamParameters) XXX_Merge ¶
func (m *ImageStreamParameters) XXX_Merge(src proto.Message)
func (*ImageStreamParameters) XXX_Size ¶
func (m *ImageStreamParameters) XXX_Size() int
func (*ImageStreamParameters) XXX_Unmarshal ¶
func (m *ImageStreamParameters) XXX_Unmarshal(b []byte) error
type NodeInfo ¶
type NodeInfo struct { Ipaddr string `protobuf:"bytes,1,opt,name=ipaddr,proto3" json:"ipaddr,omitempty"` Camid string `protobuf:"bytes,2,opt,name=camid,proto3" json:"camid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NodeInfo) Descriptor ¶
func (*NodeInfo) ProtoMessage ¶
func (*NodeInfo) ProtoMessage()
func (*NodeInfo) XXX_DiscardUnknown ¶
func (m *NodeInfo) XXX_DiscardUnknown()
func (*NodeInfo) XXX_Marshal ¶
func (*NodeInfo) XXX_Unmarshal ¶
type PubSubClient ¶
type PubSubClient interface { Connect(ctx context.Context, in *Url, opts ...grpc.CallOption) (*Id, error) Register(ctx context.Context, in *NodeInfo, opts ...grpc.CallOption) (*Status, error) Unregister(ctx context.Context, in *NodeInfo, opts ...grpc.CallOption) (*Status, error) GetCameraInfo(ctx context.Context, in *CameraParameters, opts ...grpc.CallOption) (*CameraInfo, error) Subscribe(ctx context.Context, in *ImageStreamParameters, opts ...grpc.CallOption) (PubSub_SubscribeClient, error) Unsubscribe(ctx context.Context, in *AppInfo, opts ...grpc.CallOption) (*Status, error) }
PubSubClient is the client API for PubSub service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPubSubClient ¶
func NewPubSubClient(cc *grpc.ClientConn) PubSubClient
type PubSubServer ¶
type PubSubServer interface { Connect(context.Context, *Url) (*Id, error) Register(context.Context, *NodeInfo) (*Status, error) Unregister(context.Context, *NodeInfo) (*Status, error) GetCameraInfo(context.Context, *CameraParameters) (*CameraInfo, error) Subscribe(*ImageStreamParameters, PubSub_SubscribeServer) error Unsubscribe(context.Context, *AppInfo) (*Status, error) }
PubSubServer is the server API for PubSub service.
type PubSub_SubscribeClient ¶
type PubSub_SubscribeClient interface { Recv() (*Image, error) grpc.ClientStream }
type PubSub_SubscribeServer ¶
type PubSub_SubscribeServer interface { Send(*Image) error grpc.ServerStream }
type Status ¶
type Status struct { Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Status) Descriptor ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) XXX_DiscardUnknown ¶
func (m *Status) XXX_DiscardUnknown()
func (*Status) XXX_Marshal ¶
func (*Status) XXX_Unmarshal ¶
type Url ¶
type Url struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Url) Descriptor ¶
func (*Url) GetAddress ¶
func (*Url) ProtoMessage ¶
func (*Url) ProtoMessage()
func (*Url) XXX_DiscardUnknown ¶
func (m *Url) XXX_DiscardUnknown()
func (*Url) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.