Versions in this module Expand all Collapse all v2 v2.3.3 Mar 12, 2021 Changes in this version + var File_proto_opc_opc_proto protoreflect.FileDescriptor + func NewOpcServiceEndpoints() []*api.Endpoint + func RegisterOpcServiceHandler(s server.Server, hdlr OpcServiceHandler, opts ...server.HandlerOption) error + type FileReq struct + Filebytes []byte + GroupID uint32 + func (*FileReq) Descriptor() ([]byte, []int) + func (*FileReq) ProtoMessage() + func (x *FileReq) GetFilebytes() []byte + func (x *FileReq) GetGroupID() uint32 + func (x *FileReq) ProtoReflect() protoreflect.Message + func (x *FileReq) Reset() + func (x *FileReq) String() string + type Group struct + GroupID uint32 + Name string + Tag string + func (*Group) Descriptor() ([]byte, []int) + func (*Group) ProtoMessage() + func (x *Group) GetGroupID() uint32 + func (x *Group) GetName() string + func (x *Group) GetTag() string + func (x *Group) ProtoReflect() protoreflect.Message + func (x *Group) Reset() + func (x *Group) String() string + type Groups struct + Group []*Group + TotalCount uint32 + func (*Groups) Descriptor() ([]byte, []int) + func (*Groups) ProtoMessage() + func (x *Groups) GetGroup() []*Group + func (x *Groups) GetTotalCount() uint32 + func (x *Groups) ProtoReflect() protoreflect.Message + func (x *Groups) Reset() + func (x *Groups) String() string + type GrpQuery struct + Page uint32 + PerPage uint32 + func (*GrpQuery) Descriptor() ([]byte, []int) + func (*GrpQuery) ProtoMessage() + func (x *GrpQuery) GetPage() uint32 + func (x *GrpQuery) GetPerPage() uint32 + func (x *GrpQuery) ProtoReflect() protoreflect.Message + func (x *GrpQuery) Reset() + func (x *GrpQuery) String() string + type GrpReq struct + GroupID uint32 + func (*GrpReq) Descriptor() ([]byte, []int) + func (*GrpReq) ProtoMessage() + func (x *GrpReq) GetGroupID() uint32 + func (x *GrpReq) ProtoReflect() protoreflect.Message + func (x *GrpReq) Reset() + func (x *GrpReq) String() string + type Item struct + Address string + ClientAccess string + Datatype string + GroupID uint32 + ItemID uint32 + Name string + RespectDataType uint32 + ScanRate uint32 + func (*Item) Descriptor() ([]byte, []int) + func (*Item) ProtoMessage() + func (x *Item) GetAddress() string + func (x *Item) GetClientAccess() string + func (x *Item) GetDatatype() string + func (x *Item) GetGroupID() uint32 + func (x *Item) GetItemID() uint32 + func (x *Item) GetName() string + func (x *Item) GetRespectDataType() uint32 + func (x *Item) GetScanRate() uint32 + func (x *Item) ProtoReflect() protoreflect.Message + func (x *Item) Reset() + func (x *Item) String() string + type ItemFilter struct + AddressLike []string + And []*ItemFilter + GroupIn []uint32 + ItemIn []uint32 + NameLike []string + Or []*ItemFilter + func (*ItemFilter) Descriptor() ([]byte, []int) + func (*ItemFilter) ProtoMessage() + func (x *ItemFilter) GetAddressLike() []string + func (x *ItemFilter) GetAnd() []*ItemFilter + func (x *ItemFilter) GetGroupIn() []uint32 + func (x *ItemFilter) GetItemIn() []uint32 + func (x *ItemFilter) GetNameLike() []string + func (x *ItemFilter) GetOr() []*ItemFilter + func (x *ItemFilter) ProtoReflect() protoreflect.Message + func (x *ItemFilter) Reset() + func (x *ItemFilter) String() string + type ItemQuery struct + Filter *ItemFilter + Page uint32 + PerPage uint32 + func (*ItemQuery) Descriptor() ([]byte, []int) + func (*ItemQuery) ProtoMessage() + func (x *ItemQuery) GetFilter() *ItemFilter + func (x *ItemQuery) GetPage() uint32 + func (x *ItemQuery) GetPerPage() uint32 + func (x *ItemQuery) ProtoReflect() protoreflect.Message + func (x *ItemQuery) Reset() + func (x *ItemQuery) String() string + type ItemReq struct + GroupID uint32 + ItemID uint32 + func (*ItemReq) Descriptor() ([]byte, []int) + func (*ItemReq) ProtoMessage() + func (x *ItemReq) GetGroupID() uint32 + func (x *ItemReq) GetItemID() uint32 + func (x *ItemReq) ProtoReflect() protoreflect.Message + func (x *ItemReq) Reset() + func (x *ItemReq) String() string + type ItemValueReq struct + GroupID uint32 + ItemID uint32 + Value int32 + func (*ItemValueReq) Descriptor() ([]byte, []int) + func (*ItemValueReq) ProtoMessage() + func (x *ItemValueReq) GetGroupID() uint32 + func (x *ItemValueReq) GetItemID() uint32 + func (x *ItemValueReq) GetValue() int32 + func (x *ItemValueReq) ProtoReflect() protoreflect.Message + func (x *ItemValueReq) Reset() + func (x *ItemValueReq) String() string + type ItemValueResp struct + Quality bool + Value int32 + func (*ItemValueResp) Descriptor() ([]byte, []int) + func (*ItemValueResp) ProtoMessage() + func (x *ItemValueResp) GetQuality() bool + func (x *ItemValueResp) GetValue() int32 + func (x *ItemValueResp) ProtoReflect() protoreflect.Message + func (x *ItemValueResp) Reset() + func (x *ItemValueResp) String() string + type Items struct + Item []*Item + TotalCount uint32 + func (*Items) Descriptor() ([]byte, []int) + func (*Items) ProtoMessage() + func (x *Items) GetItem() []*Item + func (x *Items) GetTotalCount() uint32 + func (x *Items) ProtoReflect() protoreflect.Message + func (x *Items) Reset() + func (x *Items) String() string + type LogLevelRequest struct + func (*LogLevelRequest) Descriptor() ([]byte, []int) + func (*LogLevelRequest) ProtoMessage() + func (x *LogLevelRequest) ProtoReflect() protoreflect.Message + func (x *LogLevelRequest) Reset() + func (x *LogLevelRequest) String() string + type LogResponse struct + Name string + func (*LogResponse) Descriptor() ([]byte, []int) + func (*LogResponse) ProtoMessage() + func (x *LogResponse) GetName() string + func (x *LogResponse) ProtoReflect() protoreflect.Message + func (x *LogResponse) Reset() + func (x *LogResponse) String() string + type Loglevel struct + Level uint32 + Name string + func (*Loglevel) Descriptor() ([]byte, []int) + func (*Loglevel) ProtoMessage() + func (x *Loglevel) GetLevel() uint32 + func (x *Loglevel) GetName() string + func (x *Loglevel) ProtoReflect() protoreflect.Message + func (x *Loglevel) Reset() + func (x *Loglevel) String() string + type OpcService interface + AddGroup func(ctx context.Context, in *Group, opts ...client.CallOption) (*Response, error) + AddItem func(ctx context.Context, in *Item, opts ...client.CallOption) (*Response, error) + DeleteGroup func(ctx context.Context, in *Group, opts ...client.CallOption) (*Response, error) + DeleteItem func(ctx context.Context, in *Item, opts ...client.CallOption) (*Response, error) + GetGroup func(ctx context.Context, in *GrpReq, opts ...client.CallOption) (*Group, error) + GetGroups func(ctx context.Context, in *GrpQuery, opts ...client.CallOption) (*Groups, error) + GetItem func(ctx context.Context, in *ItemReq, opts ...client.CallOption) (*Item, error) + GetItems func(ctx context.Context, in *ItemQuery, opts ...client.CallOption) (*Items, error) + GetLogLevel func(ctx context.Context, in *LogLevelRequest, opts ...client.CallOption) (*Loglevel, error) + GetServer func(ctx context.Context, in *SrvReq, opts ...client.CallOption) (*Server, error) + ReadItem func(ctx context.Context, in *ItemReq, opts ...client.CallOption) (*ItemValueResp, error) + SetLogLevel func(ctx context.Context, in *Loglevel, opts ...client.CallOption) (*LogResponse, error) + UpdateFile func(ctx context.Context, in *FileReq, opts ...client.CallOption) (*Response, error) + UpdateGroup func(ctx context.Context, in *Group, opts ...client.CallOption) (*Response, error) + UpdateItem func(ctx context.Context, in *Item, opts ...client.CallOption) (*Response, error) + UpdateServer func(ctx context.Context, in *Server, opts ...client.CallOption) (*Response, error) + WriteItem func(ctx context.Context, in *ItemValueReq, opts ...client.CallOption) (*Response, error) + func NewOpcService(name string, c client.Client) OpcService + type OpcServiceHandler interface + AddGroup func(context.Context, *Group, *Response) error + AddItem func(context.Context, *Item, *Response) error + DeleteGroup func(context.Context, *Group, *Response) error + DeleteItem func(context.Context, *Item, *Response) error + GetGroup func(context.Context, *GrpReq, *Group) error + GetGroups func(context.Context, *GrpQuery, *Groups) error + GetItem func(context.Context, *ItemReq, *Item) error + GetItems func(context.Context, *ItemQuery, *Items) error + GetLogLevel func(context.Context, *LogLevelRequest, *Loglevel) error + GetServer func(context.Context, *SrvReq, *Server) error + ReadItem func(context.Context, *ItemReq, *ItemValueResp) error + SetLogLevel func(context.Context, *Loglevel, *LogResponse) error + UpdateFile func(context.Context, *FileReq, *Response) error + UpdateGroup func(context.Context, *Group, *Response) error + UpdateItem func(context.Context, *Item, *Response) error + UpdateServer func(context.Context, *Server, *Response) error + WriteItem func(context.Context, *ItemValueReq, *Response) error + type Response struct + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (x *Response) ProtoReflect() protoreflect.Message + func (x *Response) Reset() + func (x *Response) String() string + type Server struct + Ip string + Name string + Tag string + func (*Server) Descriptor() ([]byte, []int) + func (*Server) ProtoMessage() + func (x *Server) GetIp() string + func (x *Server) GetName() string + func (x *Server) GetTag() string + func (x *Server) ProtoReflect() protoreflect.Message + func (x *Server) Reset() + func (x *Server) String() string + type Servers struct + Server []*Server + TotalCount uint32 + func (*Servers) Descriptor() ([]byte, []int) + func (*Servers) ProtoMessage() + func (x *Servers) GetServer() []*Server + func (x *Servers) GetTotalCount() uint32 + func (x *Servers) ProtoReflect() protoreflect.Message + func (x *Servers) Reset() + func (x *Servers) String() string + type SrvQuery struct + Page uint32 + PerPage uint32 + func (*SrvQuery) Descriptor() ([]byte, []int) + func (*SrvQuery) ProtoMessage() + func (x *SrvQuery) GetPage() uint32 + func (x *SrvQuery) GetPerPage() uint32 + func (x *SrvQuery) ProtoReflect() protoreflect.Message + func (x *SrvQuery) Reset() + func (x *SrvQuery) String() string + type SrvReq struct + func (*SrvReq) Descriptor() ([]byte, []int) + func (*SrvReq) ProtoMessage() + func (x *SrvReq) ProtoReflect() protoreflect.Message + func (x *SrvReq) Reset() + func (x *SrvReq) String() string