protocol.go 459 Bytes
Newer Older
ale's avatar
ale committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package keystore

type OpenRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
	TTL      int    `json:"ttl"`
}

type OpenResponse struct{}

type GetRequest struct {
	Username  string `json:"username"`
	SSOTicket string `json:"sso_ticket"`
}

type GetResponse struct {
17 18
	HasKey bool   `json:"has_key"`
	Key    []byte `json:"key"`
ale's avatar
ale committed
19 20 21 22 23 24 25
}

type CloseRequest struct {
	Username string `json:"username"`
}

type CloseResponse struct{}