protocol.go 424 Bytes
Newer Older
ale's avatar
ale committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
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 {
	Key []byte `json:"key"`
}

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

type CloseResponse struct{}