Documentation
¶
Index ¶
- type Config
- type Server
- func (s *Server) AddUser(user, pass string, addrs ...string) error
- func (s *Server) Close() error
- func (s *Server) DeleteUser(user string)
- func (s *Server) GetFingerprint() string
- func (s *Server) ResetUsers(users []*settings.User)
- func (s *Server) Run(host, port string) error
- func (s *Server) Start(host, port string) error
- func (s *Server) StartContext(ctx context.Context, host, port string) error
- func (s *Server) Wait() error
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
KeySeed string `` /* 404-byte string literal not displayed */
KeyFile string `` /* 454-byte string literal not displayed */
AuthFile string `` /* 1158-byte string literal not displayed */
Auth string `` /* 249-byte string literal not displayed */
Proxy string `` /* 217-byte string literal not displayed */
Socks5 bool `` /* 131-byte string literal not displayed */
Reverse bool `opts:"name=reverse,short=-" help:"Allow clients to specify reverse port forwarding remotes in addition to normal remotes."`
KeepAlive time.Duration `` /* 317-byte string literal not displayed */
TLS TLSConfig `opts:"mode=embedded"`
}
Config is the configuration for the chisel service
type Server ¶
Server represent a chisel service
func (*Server) DeleteUser ¶
DeleteUser removes a user from the server user index
func (*Server) GetFingerprint ¶
GetFingerprint is used to access the server fingerprint
func (*Server) ResetUsers ¶ added in v1.7.0
ResetUsers in the server user index. Use nil to remove all.
func (*Server) Run ¶
Run is responsible for starting the chisel service. Internally this calls Start then Wait.
func (*Server) StartContext ¶ added in v1.7.0
StartContext is responsible for kicking off the http server, and can be closed by cancelling the provided context
type TLSConfig ¶ added in v1.7.0
type TLSConfig struct {
Key string `` /* 193-byte string literal not displayed */
Cert string `` /* 193-byte string literal not displayed */
Domains []string `` /* 513-byte string literal not displayed */
CA string `` /* 315-byte string literal not displayed */
}
TLSConfig enables configures TLS
Click to show internal directories.
Click to hide internal directories.