psijl

package
v0.0.0-...-6aa0dfc Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protobufs_sijl_sijl_proto protoreflect.FileDescriptor
View Source
var Profile_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sijl.Profile",
	HandlerType: (*ProfileServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _Profile_Get_Handler,
		},
		{
			MethodName: "GetById",
			Handler:    _Profile_GetById_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Profile_Update_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protobufs/sijl/sijl.proto",
}

Profile_ServiceDesc is the grpc.ServiceDesc for Profile 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 Sijl_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sijl.Sijl",
	HandlerType: (*SijlServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _Sijl_Register_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _Sijl_Login_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protobufs/sijl/sijl.proto",
}

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

Functions

func RegisterProfileServer

func RegisterProfileServer(s grpc.ServiceRegistrar, srv ProfileServer)

func RegisterSijlServer

func RegisterSijlServer(s grpc.ServiceRegistrar, srv SijlServer)

Types

type Details

type Details struct {
	Username  string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"`
	Joined    int64  `protobuf:"varint,2,opt,name=Joined,proto3" json:"Joined,omitempty"` // Join date in UNIX seconds
	Github    string `protobuf:"bytes,3,opt,name=Github,proto3" json:"Github,omitempty"`
	Home      string `protobuf:"bytes,4,opt,name=Home,proto3" json:"Home,omitempty"`
	Twitter   string `protobuf:"bytes,5,opt,name=Twitter,proto3" json:"Twitter,omitempty"`
	Avatar    []byte `protobuf:"bytes,6,opt,name=Avatar,proto3" json:"Avatar,omitempty"`
	FirstName string `protobuf:"bytes,7,opt,name=FirstName,proto3" json:"FirstName,omitempty"`
	LastName  string `protobuf:"bytes,8,opt,name=LastName,proto3" json:"LastName,omitempty"`
	About     string `protobuf:"bytes,9,opt,name=About,proto3" json:"About,omitempty"`
	Age       int32  `protobuf:"varint,10,opt,name=Age,proto3" json:"Age,omitempty"`
	// contains filtered or unexported fields
}

func (*Details) Descriptor deprecated

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

Deprecated: Use Details.ProtoReflect.Descriptor instead.

func (*Details) GetAbout

func (x *Details) GetAbout() string

func (*Details) GetAge

func (x *Details) GetAge() int32

func (*Details) GetAvatar

func (x *Details) GetAvatar() []byte

func (*Details) GetFirstName

func (x *Details) GetFirstName() string

func (*Details) GetGithub

func (x *Details) GetGithub() string

func (*Details) GetHome

func (x *Details) GetHome() string

func (*Details) GetJoined

func (x *Details) GetJoined() int64

func (*Details) GetLastName

func (x *Details) GetLastName() string

func (*Details) GetTwitter

func (x *Details) GetTwitter() string

func (*Details) GetUsername

func (x *Details) GetUsername() string

func (*Details) ProtoMessage

func (*Details) ProtoMessage()

func (*Details) ProtoReflect

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

func (*Details) Reset

func (x *Details) Reset()

func (*Details) String

func (x *Details) String() string

type GetProfileRequest

type GetProfileRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProfileRequest) Descriptor deprecated

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

Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.

func (*GetProfileRequest) GetUsername

func (x *GetProfileRequest) GetUsername() string

func (*GetProfileRequest) ProtoMessage

func (*GetProfileRequest) ProtoMessage()

func (*GetProfileRequest) ProtoReflect

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

func (*GetProfileRequest) Reset

func (x *GetProfileRequest) Reset()

func (*GetProfileRequest) String

func (x *GetProfileRequest) String() string

type GetProfileRequestId

type GetProfileRequestId struct {
	Username int32 `protobuf:"varint,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProfileRequestId) Descriptor deprecated

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

Deprecated: Use GetProfileRequestId.ProtoReflect.Descriptor instead.

func (*GetProfileRequestId) GetUsername

func (x *GetProfileRequestId) GetUsername() int32

func (*GetProfileRequestId) ProtoMessage

func (*GetProfileRequestId) ProtoMessage()

func (*GetProfileRequestId) ProtoReflect

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

func (*GetProfileRequestId) Reset

func (x *GetProfileRequestId) Reset()

func (*GetProfileRequestId) String

func (x *GetProfileRequestId) String() string

type LoginRequest

type LoginRequest struct {
	Username string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (x *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginResponse

type LoginResponse struct {
	Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"`
	Error int32  `protobuf:"varint,2,opt,name=Error,proto3" json:"Error,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetError

func (x *LoginResponse) GetError() int32

func (*LoginResponse) GetToken

func (x *LoginResponse) GetToken() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

type NewUserRequest

type NewUserRequest struct {
	FirstName string `protobuf:"bytes,1,opt,name=FirstName,proto3" json:"FirstName,omitempty"`
	LastName  string `protobuf:"bytes,2,opt,name=LastName,proto3" json:"LastName,omitempty"`
	Email     string `protobuf:"bytes,3,opt,name=Email,proto3" json:"Email,omitempty"`
	Age       int32  `protobuf:"varint,5,opt,name=Age,proto3" json:"Age,omitempty"`
	Username  string `protobuf:"bytes,6,opt,name=Username,proto3" json:"Username,omitempty"`
	Password  string `protobuf:"bytes,7,opt,name=Password,proto3" json:"Password,omitempty"`
	// contains filtered or unexported fields
}

func (*NewUserRequest) Descriptor deprecated

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

Deprecated: Use NewUserRequest.ProtoReflect.Descriptor instead.

func (*NewUserRequest) GetAge

func (x *NewUserRequest) GetAge() int32

func (*NewUserRequest) GetEmail

func (x *NewUserRequest) GetEmail() string

func (*NewUserRequest) GetFirstName

func (x *NewUserRequest) GetFirstName() string

func (*NewUserRequest) GetLastName

func (x *NewUserRequest) GetLastName() string

func (*NewUserRequest) GetPassword

func (x *NewUserRequest) GetPassword() string

func (*NewUserRequest) GetUsername

func (x *NewUserRequest) GetUsername() string

func (*NewUserRequest) ProtoMessage

func (*NewUserRequest) ProtoMessage()

func (*NewUserRequest) ProtoReflect

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

func (*NewUserRequest) Reset

func (x *NewUserRequest) Reset()

func (*NewUserRequest) String

func (x *NewUserRequest) String() string

type ProfileClient

type ProfileClient interface {
	Get(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*ProfileResponse, error)
	GetById(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*ProfileResponse, error)
	Update(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*ProfileResponse, error)
}

ProfileClient is the client API for Profile 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 NewProfileClient

func NewProfileClient(cc grpc.ClientConnInterface) ProfileClient

type ProfileResponse

type ProfileResponse struct {
	Details *Details `protobuf:"bytes,1,opt,name=Details,proto3" json:"Details,omitempty"`
	Error   int32    `protobuf:"varint,2,opt,name=Error,proto3" json:"Error,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfileResponse) Descriptor deprecated

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

Deprecated: Use ProfileResponse.ProtoReflect.Descriptor instead.

func (*ProfileResponse) GetDetails

func (x *ProfileResponse) GetDetails() *Details

func (*ProfileResponse) GetError

func (x *ProfileResponse) GetError() int32

func (*ProfileResponse) ProtoMessage

func (*ProfileResponse) ProtoMessage()

func (*ProfileResponse) ProtoReflect

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

func (*ProfileResponse) Reset

func (x *ProfileResponse) Reset()

func (*ProfileResponse) String

func (x *ProfileResponse) String() string

type ProfileServer

type ProfileServer interface {
	Get(context.Context, *GetProfileRequest) (*ProfileResponse, error)
	GetById(context.Context, *GetProfileRequest) (*ProfileResponse, error)
	Update(context.Context, *UpdateProfileRequest) (*ProfileResponse, error)
	// contains filtered or unexported methods
}

ProfileServer is the server API for Profile service. All implementations must embed UnimplementedProfileServer for forward compatibility

type SijlClient

type SijlClient interface {
	Register(ctx context.Context, in *NewUserRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
}

SijlClient is the client API for Sijl 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 NewSijlClient

func NewSijlClient(cc grpc.ClientConnInterface) SijlClient

type SijlServer

type SijlServer interface {
	Register(context.Context, *NewUserRequest) (*LoginResponse, error)
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	// contains filtered or unexported methods
}

SijlServer is the server API for Sijl service. All implementations must embed UnimplementedSijlServer for forward compatibility

type UnimplementedProfileServer

type UnimplementedProfileServer struct {
}

UnimplementedProfileServer must be embedded to have forward compatible implementations.

func (UnimplementedProfileServer) Get

func (UnimplementedProfileServer) GetById

func (UnimplementedProfileServer) Update

type UnimplementedSijlServer

type UnimplementedSijlServer struct {
}

UnimplementedSijlServer must be embedded to have forward compatible implementations.

func (UnimplementedSijlServer) Login

func (UnimplementedSijlServer) Register

type UnsafeProfileServer

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

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

type UnsafeSijlServer

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

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

type UpdateProfileRequest

type UpdateProfileRequest struct {
	Profile *Details `protobuf:"bytes,1,opt,name=Profile,proto3" json:"Profile,omitempty"`
	Token   string   `protobuf:"bytes,2,opt,name=Token,proto3" json:"Token,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProfileRequest) Descriptor deprecated

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

Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead.

func (*UpdateProfileRequest) GetProfile

func (x *UpdateProfileRequest) GetProfile() *Details

func (*UpdateProfileRequest) GetToken

func (x *UpdateProfileRequest) GetToken() string

func (*UpdateProfileRequest) ProtoMessage

func (*UpdateProfileRequest) ProtoMessage()

func (*UpdateProfileRequest) ProtoReflect

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

func (*UpdateProfileRequest) Reset

func (x *UpdateProfileRequest) Reset()

func (*UpdateProfileRequest) String

func (x *UpdateProfileRequest) String() string

Jump to

Keyboard shortcuts

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