mago

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_magopb_mago_proto protoreflect.FileDescriptor
View Source
var MagoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "mago.MagoService",
	HandlerType: (*MagoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _MagoService_CreateUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "magopb/mago.proto",
}

MagoService_ServiceDesc is the grpc.ServiceDesc for MagoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMagoServiceServer

func RegisterMagoServiceServer(s grpc.ServiceRegistrar, srv MagoServiceServer)

Types

type CreateUserRequest

type CreateUserRequest struct {
	Phone     string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"`
	FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName  string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

func (*CreateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetFirstName

func (x *CreateUserRequest) GetFirstName() string

func (*CreateUserRequest) GetLastName

func (x *CreateUserRequest) GetLastName() string

func (*CreateUserRequest) GetPhone

func (x *CreateUserRequest) GetPhone() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

func (x *CreateUserRequest) ProtoReflect() protoreflect.Message

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type CreateUserResponse

type CreateUserResponse struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserResponse) Descriptor deprecated

func (*CreateUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetUserId

func (x *CreateUserResponse) GetUserId() string

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect

func (x *CreateUserResponse) ProtoReflect() protoreflect.Message

func (*CreateUserResponse) Reset

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (x *CreateUserResponse) String() string

type MagoServiceClient

type MagoServiceClient interface {
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
}

MagoServiceClient is the client API for MagoService 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 MagoServiceServer

type MagoServiceServer interface {
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
	// contains filtered or unexported methods
}

MagoServiceServer is the server API for MagoService service. All implementations must embed UnimplementedMagoServiceServer for forward compatibility

type UnimplementedMagoServiceServer

type UnimplementedMagoServiceServer struct {
}

UnimplementedMagoServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMagoServiceServer) CreateUser

type UnsafeMagoServiceServer

type UnsafeMagoServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeMagoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MagoServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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