forked from TrueCloudLab/frostfs-api-go
v2: Define API service interfaces
Define interfaces that reflect service (Accounting, Container, Session) declarations in the API. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
ecb0a4be67
commit
55a6509e8f
6 changed files with 148 additions and 112 deletions
|
@ -11,28 +11,12 @@ type CreateRequestBody struct {
|
|||
expiration uint64
|
||||
}
|
||||
|
||||
type CreateRequest struct {
|
||||
body *CreateRequestBody
|
||||
|
||||
metaHeader *RequestMetaHeader
|
||||
|
||||
verifyHeader *RequestVerificationHeader
|
||||
}
|
||||
|
||||
type CreateResponseBody struct {
|
||||
id []byte
|
||||
|
||||
sessionKey []byte
|
||||
}
|
||||
|
||||
type CreateResponse struct {
|
||||
body *CreateResponseBody
|
||||
|
||||
metaHeader *ResponseMetaHeader
|
||||
|
||||
verifyHeader *ResponseVerificationHeader
|
||||
}
|
||||
|
||||
type XHeader struct {
|
||||
key, val string
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue