We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96cf931 commit 3973cf5Copy full SHA for 3973cf5
server.go
@@ -16,6 +16,8 @@ type Logger interface {
16
Printf(string, ...interface{})
17
}
18
19
+type AuthOpenFunc func() (interface{}, error)
20
+
21
// A Server defines parameters for running a 9P server. The
22
// zero value of a Server is usable as a 9P server, and will
23
// use the defaults set by the styx package.
@@ -42,6 +44,9 @@ type Server struct {
42
44
// authentication is disabled.
43
45
Auth AuthFunc
46
47
+ // OpenAuth is used to open file to authentication agent
48
+ OpenAuth AuthOpenFunc
49
50
// If not nil, ErrorLog will be used to log unexpected
51
// errors accepting or handling connections. TraceLog,
52
// if not nil, will receive detailed protocol tracing
0 commit comments