biz

package
v0.0.0-...-fefde71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountService_WhoAmI_FullMethodName = "/user.AccountService/WhoAmI"
)

Variables

View Source
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)

View Source
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.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAccountServiceClient) WhoAmI

WhoAmI mocks base method.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAccountServiceServer) WhoAmI

WhoAmI mocks base method.

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.

func (UnimplementedAccountServiceServer) WhoAmI

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL