golanglearn/interface/example1/sensor/sensorimpl/rtsp.go

31 lines
402 B
Go

package sensorimpl
import (
"fmt"
"golanglearn/interface/example1/sensor"
)
type Rtsp struct {
Name string
}
func (r *Rtsp) Add() {
fmt.Println("add sensor", r.Name)
}
func (r *Rtsp) Delete() {
panic("implement me")
}
func (r *Rtsp) Update() {
panic("implement me")
}
func (r *Rtsp) Search() {
panic("implement me")
}
func NewRtsp(name string) sensor.Sensor {
return &Rtsp{Name: name}
}