We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93808d2 commit 26774b3Copy full SHA for 26774b3
pkg/tcpserver/tcpserver.go
@@ -22,3 +22,8 @@ type TCPServer struct {
22
func New(options *Options) (*TCPServer, error) {
23
return &TCPServer{options: options}, nil
24
}
25
+
26
+func (t *TCPServer) AddRule(rule Rule) error {
27
+ t.options.rules = append(t.options.rules, rule)
28
+ return nil
29
+}
0 commit comments