Documentation ¶
Index ¶
- Constants
- Variables
- type CError
- type CInstance
- type CParamSetResult
- type Cntlr
- func (c *Cntlr) AddInstanceReq(ctx context.Context, req *cntlrgrpc.AddInstanceReqData) (*cntlrgrpc.AddInstanceResData, error)
- func (c *Cntlr) Cli()
- func (c *Cntlr) DeleteInstanceReq(ctx context.Context, p *cntlrgrpc.DeleteInstanceReqData) (*cntlrgrpc.ReqResult, error)
- func (c *Cntlr) GetDatamodelReq(ctx context.Context, p *cntlrgrpc.GetDatamodelReqData) (*cntlrgrpc.ReqResult, error)
- func (c *Cntlr) GetInfo(ctx context.Context, p *cntlrgrpc.None) (*cntlrgrpc.InfoData, error)
- func (c *Cntlr) GetInstancesReq(ctx context.Context, p *cntlrgrpc.GetInstancesReqData) (*cntlrgrpc.ReqResult, error)
- func (c *Cntlr) GetParamReq(ctx context.Context, p *cntlrgrpc.GetParamReqData) (*cntlrgrpc.ReqResult, error)
- func (c *Cntlr) GrpcServerThread(port string, exit chan int32)
- func (c *Cntlr) Init() error
- func (c *Cntlr) MtpReceiveThread()
- func (c *Cntlr) MtpStart() error
- func (c *Cntlr) OperateReq(ctx context.Context, p *cntlrgrpc.OperateReqData) (*cntlrgrpc.OperateResData, error)
- func (c *Cntlr) Run() (chan int32, error)
- func (c *Cntlr) SetParamReq(ctx context.Context, p *cntlrgrpc.SetParamReqData) (*cntlrgrpc.SetParamResData, error)
- func (c *Cntlr) WaitForExit(exit chan int32)
- type MsgType
- type NotifyType
Constants ¶
View Source
const ( SERVER_MODE_NORMAL = iota SERVER_MODE_TLS SERVER_MODE_NORMAL_AND_TLS )
View Source
const ( COAP_SERVER = iota GRPC_SERVER COAP_SERVER_DTLS STOMP_SERVER_TLS )
View Source
const SetLogHelp = "setlog <on|off> <all|date|time|long|short>"
Variables ¶
View Source
var ( DmObjAccessString = map[int32]string{ 0: "OBJ_READ_ONLY", 1: "OBJ_ADD_DELETE", 2: "OBJ_ADD_ONLY", 3: "OBJ_DELETE_ONLY", } DmObjAccessInt = map[string]int32{ "OBJ_READ_ONLY": 0, "OBJ_ADD_DELETE": 1, "OBJ_ADD_ONLY": 2, "OBJ_DELETE_ONLY": 3, } DmParamAccessString = map[int32]string{ 0: "PARAM_READ_ONLY", 1: "PARAM_READ_WRITE", 2: "PARAM_WRITE_ONLY", } DmParamAccessInt = map[string]int32{ "PARAM_READ_ONLY": 0, "PARAM_READ_WRITE": 1, "PARAM_WRITE_ONLY": 2, } )
Functions ¶
This section is empty.
Types ¶
type CParamSetResult ¶
type Cntlr ¶
type Cntlr struct { cntlrgrpc.UnimplementedGrpcServer // contains filtered or unexported fields }
func (*Cntlr) AddInstanceReq ¶
func (c *Cntlr) AddInstanceReq(ctx context.Context, req *cntlrgrpc.AddInstanceReqData) (*cntlrgrpc.AddInstanceResData, error)
func (*Cntlr) DeleteInstanceReq ¶
func (*Cntlr) GetDatamodelReq ¶
func (*Cntlr) GetInstancesReq ¶
func (*Cntlr) GetParamReq ¶
func (c *Cntlr) GetParamReq(ctx context.Context, p *cntlrgrpc.GetParamReqData) (*cntlrgrpc.ReqResult, error)
USP releated services
func (*Cntlr) GrpcServerThread ¶
func (*Cntlr) MtpReceiveThread ¶
func (c *Cntlr) MtpReceiveThread()
func (*Cntlr) OperateReq ¶
func (c *Cntlr) OperateReq(ctx context.Context, p *cntlrgrpc.OperateReqData) (*cntlrgrpc.OperateResData, error)
func (*Cntlr) SetParamReq ¶
func (c *Cntlr) SetParamReq(ctx context.Context, p *cntlrgrpc.SetParamReqData) (*cntlrgrpc.SetParamResData, error)
func (*Cntlr) WaitForExit ¶
type NotifyType ¶
type NotifyType byte
const ( NotifyEvent NotifyType = iota NotifyValueChange NotifyObjCreation NotifyObjDeletion NotifyOpComplete NotifyOnBoardReq )
Click to show internal directories.
Click to hide internal directories.