mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-21 09:46:40 +00:00
Try without cgo
This commit is contained in:
17
management/server/activity/mock.go
Normal file
17
management/server/activity/mock.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package activity
|
||||
|
||||
type NoopEventStore struct {
|
||||
}
|
||||
|
||||
func (store *NoopEventStore) Save(event *Event) (*Event, error) {
|
||||
event.ID = -1
|
||||
return event, nil
|
||||
}
|
||||
|
||||
func (store *NoopEventStore) Get(accountID string, offset, limit int, descending bool) ([]*Event, error) {
|
||||
return []*Event{}, nil
|
||||
}
|
||||
|
||||
func (store *NoopEventStore) Close() error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user