Skip to content

Commit

Permalink
docs: Update graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidz committed Mar 30, 2024
1 parent 3011578 commit 2d064b2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
31 changes: 23 additions & 8 deletions doc/graph/component.pum
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,42 @@ cloud {
}

component "Elin Server" #YellowGreen {
port "vim" as vimPort
port "http" as httpPort
portin " " as vimHostPort
portin " " as anotherHostPort
portin " " as httpPort

package "Hosts" {
component "Vim/Neovim host" as vimHost
component "Another host" as anotherHost
}

component "Vim/Neovim server" as vimServer
component "HTTP server" as httpServer
component Handler
component "nREPL Client" as client
interface Interceptor
}


[nREPL Server] as nrepl

vimPort <--> vimServer

' vim/neovim host
vim <--> vimHostPort : JSON\nMessagePack
vimHostPort <--> vimHost : JSON\nMessagePack
vimHost <--> Handler : elin.protocol.host

' http server
clients <--> httpPort : JSON
httpPort <--> httpServer
vimServer <--> Handler
httpServer <--> Handler

' another host
clients <--> anotherHostPort
anotherHostPort <--> anotherHost
anotherHost <--> Handler : elin.protocol.host

Handler <--> client
client <-- Interceptor
Interceptor --> nrepl

vim <--> vimPort : JSON\nMessagePack
clients <--> httpPort : JSON

@enduml
6 changes: 3 additions & 3 deletions doc/graph/sequence.pum
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ activate vim
activate elin
return Connected

=== Connecting to nREPL Server ===
== Connecting to nREPL Server ==

"user" -> "vim" : Request to connect nREPL server
activate vim
Expand All @@ -49,7 +49,7 @@ activate vim
return
return Connected

=== Evaluating s-expressions ===
== Evaluating s-expressions ==

"user" -> "vim" : Request to evaluate current form
activate vim
Expand All @@ -65,7 +65,7 @@ activate vim
return Result
return Result

=== Leave vim ===
== Leave vim ==

"user" -> "vim" : Exit
activate vim
Expand Down

0 comments on commit 2d064b2

Please sign in to comment.