Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrCodeParseError = -32700 ErrCodeInvalidRequest = -32600 ErrCodeMethodNotFound = -32601 ErrCodeInvalidParams = -32602 ErrCodeInternalError = -32603 )
Variables ¶
This section is empty.
Functions ¶
func ValidateUnixSocketPerms ¶
Types ¶
type ConfigGetter ¶
type ConfigSetter ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler( tokenResolver TokenResolver, proxyStatus ProxyStatusProvider, configGetter ConfigGetter, configSetter ConfigSetter, shutdownFn func(), ) *Handler
func (*Handler) RegisterMethods ¶
type MethodHandler ¶
type MethodHandler func(ctx context.Context, params json.RawMessage) (interface{}, error)
type ProxyStatusProvider ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ActiveConnections ¶
func (*Server) RegisterMethod ¶
func (s *Server) RegisterMethod(name string, handler MethodHandler)
type ServerConfig ¶
func DefaultConfig ¶
func DefaultConfig() ServerConfig
type SocketServer ¶
type TokenResolver ¶
type UnixTransport ¶
type UnixTransport struct {
// contains filtered or unexported fields
}
func NewUnixTransport ¶
func NewUnixTransport(path string, perm uint32) *UnixTransport
func (*UnixTransport) Path ¶
func (t *UnixTransport) Path() string
Click to show internal directories.
Click to hide internal directories.