Documentation ¶
Index ¶
- type SessionServiceClient
- func (_m *SessionServiceClient) Create(ctx context.Context, in *session.SessionCreateRequest, opts ...grpc.CallOption) (*session.SessionResponse, error)
- func (_m *SessionServiceClient) Delete(ctx context.Context, in *session.SessionDeleteRequest, opts ...grpc.CallOption) (*session.SessionResponse, error)
- func (_m *SessionServiceClient) GetUserInfo(ctx context.Context, in *session.GetUserInfoRequest, opts ...grpc.CallOption) (*session.GetUserInfoResponse, error)
- type SessionServiceServer
- func (_m *SessionServiceServer) Create(_a0 context.Context, _a1 *session.SessionCreateRequest) (*session.SessionResponse, error)
- func (_m *SessionServiceServer) Delete(_a0 context.Context, _a1 *session.SessionDeleteRequest) (*session.SessionResponse, error)
- func (_m *SessionServiceServer) GetUserInfo(_a0 context.Context, _a1 *session.GetUserInfoRequest) (*session.GetUserInfoResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionServiceClient ¶
SessionServiceClient is an autogenerated mock type for the SessionServiceClient type
func NewSessionServiceClient ¶ added in v2.12.0
func NewSessionServiceClient(t interface { mock.TestingT Cleanup(func()) }) *SessionServiceClient
NewSessionServiceClient creates a new instance of SessionServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SessionServiceClient) Create ¶
func (_m *SessionServiceClient) Create(ctx context.Context, in *session.SessionCreateRequest, opts ...grpc.CallOption) (*session.SessionResponse, error)
Create provides a mock function with given fields: ctx, in, opts
func (*SessionServiceClient) Delete ¶
func (_m *SessionServiceClient) Delete(ctx context.Context, in *session.SessionDeleteRequest, opts ...grpc.CallOption) (*session.SessionResponse, error)
Delete provides a mock function with given fields: ctx, in, opts
func (*SessionServiceClient) GetUserInfo ¶ added in v2.12.0
func (_m *SessionServiceClient) GetUserInfo(ctx context.Context, in *session.GetUserInfoRequest, opts ...grpc.CallOption) (*session.GetUserInfoResponse, error)
GetUserInfo provides a mock function with given fields: ctx, in, opts
type SessionServiceServer ¶
SessionServiceServer is an autogenerated mock type for the SessionServiceServer type
func NewSessionServiceServer ¶ added in v2.12.0
func NewSessionServiceServer(t interface { mock.TestingT Cleanup(func()) }) *SessionServiceServer
NewSessionServiceServer creates a new instance of SessionServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SessionServiceServer) Create ¶
func (_m *SessionServiceServer) Create(_a0 context.Context, _a1 *session.SessionCreateRequest) (*session.SessionResponse, error)
Create provides a mock function with given fields: _a0, _a1
func (*SessionServiceServer) Delete ¶
func (_m *SessionServiceServer) Delete(_a0 context.Context, _a1 *session.SessionDeleteRequest) (*session.SessionResponse, error)
Delete provides a mock function with given fields: _a0, _a1
func (*SessionServiceServer) GetUserInfo ¶ added in v2.12.0
func (_m *SessionServiceServer) GetUserInfo(_a0 context.Context, _a1 *session.GetUserInfoRequest) (*session.GetUserInfoResponse, error)
GetUserInfo provides a mock function with given fields: _a0, _a1