mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
add support for auth plugins
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// Package notifier defines the implementation for event notifier plugins.
|
||||
// Notifier plugins allow to receive filesystem events such as file uploads,
|
||||
// downloads etc. and user events such as add, update, delete.
|
||||
// Notifier plugins allow to receive notifications for supported filesystem
|
||||
// events such as file uploads, downloads etc. and user events such as add,
|
||||
// update, delete.
|
||||
package notifier
|
||||
|
||||
import (
|
||||
|
||||
@@ -144,7 +144,7 @@ type UserEvent struct {
|
||||
|
||||
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||||
Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
|
||||
User []byte `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` // SFTPGo user json serialized
|
||||
User []byte `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` // SFTPGo user JSON serialized
|
||||
}
|
||||
|
||||
func (x *UserEvent) Reset() {
|
||||
|
||||
@@ -21,7 +21,7 @@ message FsEvent {
|
||||
message UserEvent {
|
||||
google.protobuf.Timestamp timestamp = 1;
|
||||
string action = 2;
|
||||
bytes user = 3; // SFTPGo user json serialized
|
||||
bytes user = 3; // SFTPGo user JSON serialized
|
||||
}
|
||||
|
||||
service Notifier {
|
||||
|
||||
Reference in New Issue
Block a user