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:
Leonard Lyubich 2020-08-22 12:28:33 +03:00 committed by Stanislav Bogatyrev
parent ecb0a4be67
commit 55a6509e8f
6 changed files with 148 additions and 112 deletions

View file

@ -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
}