19 lines
512 B
Go
19 lines
512 B
Go
// Copyright (c) Mainflux
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package opcua
|
|
|
|
import "context"
|
|
|
|
// RouteMapRepository store route-map between the OPC-UA Server and Mainflux.
|
|
type RouteMapRepository interface {
|
|
// Save stores/routes pair OPC-UA Server & Mainflux.
|
|
Save(context.Context, string, string) error
|
|
|
|
// Get returns the stored Mainflux route-map for a given OPC-UA pair.
|
|
Get(context.Context, string) (string, error)
|
|
|
|
// Remove Remove route-map from cache.
|
|
Remove(context.Context, string) error
|
|
}
|