Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)
- type AccountServiceClient
- type AccountServiceServer
- type MockAccountServiceClient
- type MockAccountServiceClientMockRecorder
- type MockAccountServiceServer
- type MockAccountServiceServerMockRecorder
- type UnimplementedAccountServiceServer
- type UnsafeAccountServiceServer
Constants ¶
const (
AccountService_WhoAmI_FullMethodName = "/user.AccountService/WhoAmI"
)
Variables ¶
var AccountService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.AccountService", HandlerType: (*AccountServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "WhoAmI", Handler: _AccountService_WhoAmI_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "domain/user/biz/user.proto", }
AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_domain_user_biz_user_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountServiceServer ¶
func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)
Types ¶
type AccountServiceClient ¶
type AccountServiceClient interface {
WhoAmI(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*model.Account, error)
}
AccountServiceClient is the client API for AccountService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAccountServiceClient ¶
func NewAccountServiceClient(cc grpc.ClientConnInterface) AccountServiceClient
type AccountServiceServer ¶
type AccountServiceServer interface {
WhoAmI(context.Context, *emptypb.Empty) (*model.Account, error)
}
AccountServiceServer is the server API for AccountService service. All implementations should embed UnimplementedAccountServiceServer for forward compatibility.
type MockAccountServiceClient ¶
type MockAccountServiceClient struct {
// contains filtered or unexported fields
}
MockAccountServiceClient is a mock of AccountServiceClient interface.
func NewMockAccountServiceClient ¶
func NewMockAccountServiceClient(ctrl *gomock.Controller) *MockAccountServiceClient
NewMockAccountServiceClient creates a new mock instance.
func (*MockAccountServiceClient) EXPECT ¶
func (m *MockAccountServiceClient) EXPECT() *MockAccountServiceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAccountServiceClientMockRecorder ¶
type MockAccountServiceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountServiceClientMockRecorder is the mock recorder for MockAccountServiceClient.
func (*MockAccountServiceClientMockRecorder) WhoAmI ¶
func (mr *MockAccountServiceClientMockRecorder) WhoAmI(ctx, in interface{}, opts ...interface{}) *gomock.Call
WhoAmI indicates an expected call of WhoAmI.
type MockAccountServiceServer ¶
type MockAccountServiceServer struct {
// contains filtered or unexported fields
}
MockAccountServiceServer is a mock of AccountServiceServer interface.
func NewMockAccountServiceServer ¶
func NewMockAccountServiceServer(ctrl *gomock.Controller) *MockAccountServiceServer
NewMockAccountServiceServer creates a new mock instance.
func (*MockAccountServiceServer) EXPECT ¶
func (m *MockAccountServiceServer) EXPECT() *MockAccountServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAccountServiceServerMockRecorder ¶
type MockAccountServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountServiceServerMockRecorder is the mock recorder for MockAccountServiceServer.
func (*MockAccountServiceServerMockRecorder) WhoAmI ¶
func (mr *MockAccountServiceServerMockRecorder) WhoAmI(ctx, in interface{}) *gomock.Call
WhoAmI indicates an expected call of WhoAmI.
type UnimplementedAccountServiceServer ¶
type UnimplementedAccountServiceServer struct{}
UnimplementedAccountServiceServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
type UnsafeAccountServiceServer ¶
type UnsafeAccountServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAccountServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServiceServer will result in compilation errors.