bouncer/internal/store/layer_repository.go

13 lines
550 B
Go

package store
import "context"
type LayerRepository interface {
AddLayer(ctx context.Context, proxyName ProxyName, layerType LayerType, layerName string, postion int) error
MoveLayer(ctx context.Context, proxyName ProxyName, layerType LayerType, layerName string, position int) error
RemoveLayer(ctx context.Context, proxyName ProxyName, LayerType, layerName string) error
GetLayer(ctx context.Context, proxyName ProxyName, LayerType, layerName string) (*Layer, error)
GetLayers(ctx context.Context, proxyName ProxyName) ([]*Layer, string)
}