Skip to content

Instantly share code, notes, and snippets.

@supersym
Forked from jeluard/Diagrams.md
Last active December 11, 2015 05:49
Show Gist options
  • Save supersym/4555319 to your computer and use it in GitHub Desktop.
Save supersym/4555319 to your computer and use it in GitHub Desktop.
@startuml
== Initialisation ==
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
== Repetition ==
Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
@enduml
@startuml
class Car
Driver - Car : drives >
Car *- Wheel : have 4 >
Car -- Person : < owns
@enduml
@startuml
Alice -> Bob: Authentication Request
alt successful case
Bob -> Alice: Authentication Accepted
else some kind of failure
Bob -> Alice: Authentication Failure
group My own label
Alice -> Log : Log attack start
loop 1000 times
Alice -> Bob: DNS Attack
end
Alice -> Log : Log attack end
end
else Another type of failure
Bob -> Alice: Please repeat
end
@enduml
@startuml
scale 400*300
actor Developer
boundary "HTTP(S) Server" as http
control Agent
entity Domain
entity DocPad
Developer -> https : To boundary
Developer -> Agent : To control
Developer -> Domain : To entity
@enduml
@startuml
Alice -> Bob: Authentication Request
alt successful case
Bob -> Alice: Authentication Accepted
else some kind of failure
Bob -> Alice: Authentication Failure
group My own label
Alice -> Log : Log attack start
loop 1000 times
Alice -> Bob: DNS Attack
end
Alice -> Log : Log attack end
end
else Another type of failure
Bob -> Alice: Please repeat
end
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment