protocol

package
v0.0.0-...-4c581ce Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserServiceServer

func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)

Types

type RegisterUserRequestType

type RegisterUserRequestType struct {
	Email                string   `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RegisterUserRequestType) Descriptor

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

func (*RegisterUserRequestType) GetEmail

func (m *RegisterUserRequestType) GetEmail() string

func (*RegisterUserRequestType) ProtoMessage

func (*RegisterUserRequestType) ProtoMessage()

func (*RegisterUserRequestType) Reset

func (m *RegisterUserRequestType) Reset()

func (*RegisterUserRequestType) String

func (m *RegisterUserRequestType) String() string

func (*RegisterUserRequestType) XXX_DiscardUnknown

func (m *RegisterUserRequestType) XXX_DiscardUnknown()

func (*RegisterUserRequestType) XXX_Marshal

func (m *RegisterUserRequestType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterUserRequestType) XXX_Merge

func (m *RegisterUserRequestType) XXX_Merge(src proto.Message)

func (*RegisterUserRequestType) XXX_Size

func (m *RegisterUserRequestType) XXX_Size() int

func (*RegisterUserRequestType) XXX_Unmarshal

func (m *RegisterUserRequestType) XXX_Unmarshal(b []byte) error

type RegisterUserResponseType

type RegisterUserResponseType struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RegisterUserResponseType) Descriptor

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

func (*RegisterUserResponseType) GetMessage

func (m *RegisterUserResponseType) GetMessage() string

func (*RegisterUserResponseType) ProtoMessage

func (*RegisterUserResponseType) ProtoMessage()

func (*RegisterUserResponseType) Reset

func (m *RegisterUserResponseType) Reset()

func (*RegisterUserResponseType) String

func (m *RegisterUserResponseType) String() string

func (*RegisterUserResponseType) XXX_DiscardUnknown

func (m *RegisterUserResponseType) XXX_DiscardUnknown()

func (*RegisterUserResponseType) XXX_Marshal

func (m *RegisterUserResponseType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegisterUserResponseType) XXX_Merge

func (m *RegisterUserResponseType) XXX_Merge(src proto.Message)

func (*RegisterUserResponseType) XXX_Size

func (m *RegisterUserResponseType) XXX_Size() int

func (*RegisterUserResponseType) XXX_Unmarshal

func (m *RegisterUserResponseType) XXX_Unmarshal(b []byte) error

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServiceServer) RegisterUser

type User

type User struct {
	ID    uuid.UUID
	Email string
}

type UserServiceClient

type UserServiceClient interface {
	RegisterUser(ctx context.Context, in *RegisterUserRequestType, opts ...grpc.CallOption) (*RegisterUserResponseType, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUserServiceClient

func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient

type UserServiceServer

type UserServiceServer interface {
	RegisterUser(context.Context, *RegisterUserRequestType) (*RegisterUserResponseType, error)
}

UserServiceServer is the server API for UserService service.

Jump to

Keyboard shortcuts

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