github.com/cnotch/ipchub@v1.1.0/provider/route/memory.go (about)

     1  // Copyright (c) 2019,CAOHONGJU All rights reserved.
     2  // Use of this source code is governed by a MIT-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package route
     6  
     7  type memProvider struct {
     8  }
     9  
    10  func (p *memProvider) Name() string {
    11  	return "memory"
    12  }
    13  
    14  func (p *memProvider) Configure(config map[string]interface{}) error {
    15  	return nil
    16  }
    17  
    18  func (p *memProvider) LoadAll() ([]*Route, error) {
    19  	return nil, nil
    20  }
    21  
    22  func (p *memProvider) Flush(full []*Route, saves []*Route, removes []*Route) error {
    23  	return nil
    24  }