etc
[D2] 다이어그램 및 도표 생성(2)
choideu
2023. 1. 25. 14:35
1. 컨테이너 만들기
name = choideu: {
age = 30
height = 170
}
name = choideu1.age = 30
name = choideu1.height = 170
2. 이미지 및 아이콘
my network: {
shape: image
icon: https://icons.terrastruct.com/infra/019-network.svg
}
my network1: {
icon: https://icons.terrastruct.com/infra/019-network.svg
}
3. code
code: |go
printf("hello world");
|
4. SQL table
user: {
shape: sql_table
id: int
passwd: varchar(20)
address: varcahr(100)
}
product: {
shape: sql_table
product_id: int
stock: int
cost: int
}
user <-> product
5. class
add: {
shape: class
a: int
b: int
add(): (a, b)
}
6. sequence diagram
3-way hand shake: {
shape: sequence_diagram
x: client
y: server
x -> y: syn, seq
y -> x: syn, seq1 + ack(=seq + 1)
x -> y: ack(=seq1 + 1)
}
seq와 ack은 sequence number와 acknowledgment number를 의미함