55a6509e8f
Define interfaces that reflect service (Accounting, Container, Session) declarations in the API. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
25 lines
397 B
Go
25 lines
397 B
Go
package session
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Service interface {
|
|
Create(context.Context, *CreateRequest) (*CreateResponse, error)
|
|
}
|
|
|
|
type CreateRequest struct {
|
|
body *CreateRequestBody
|
|
|
|
metaHeader *RequestMetaHeader
|
|
|
|
verifyHeader *RequestVerificationHeader
|
|
}
|
|
|
|
type CreateResponse struct {
|
|
body *CreateResponseBody
|
|
|
|
metaHeader *ResponseMetaHeader
|
|
|
|
verifyHeader *ResponseVerificationHeader
|
|
}
|