Documentation
¶
Overview ¶
Package server is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package server is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package server is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package server is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterAuthHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthClient) error
- func RegisterAuthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServer) error
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- func RegisterInviteHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInviteHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InviteClient) error
- func RegisterInviteHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInviteHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InviteServer) error
- func RegisterInviteServer(s grpc.ServiceRegistrar, srv InviteServer)
- func RegisterPostHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPostHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PostClient) error
- func RegisterPostHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPostHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PostServer) error
- func RegisterPostServer(s grpc.ServiceRegistrar, srv PostServer)
- func RegisterUserHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserClient) error
- func RegisterUserHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServer) error
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type AuthClient
- type AuthServer
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetBody() string
- func (x *CreateRequest) GetIsPublished() bool
- func (x *CreateRequest) GetShort() string
- func (x *CreateRequest) GetTags() []string
- func (x *CreateRequest) GetTitle() string
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- type EditRequest
- func (*EditRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EditRequest) GetBody() string
- func (x *EditRequest) GetId() int64
- func (x *EditRequest) GetIsPublished() bool
- func (x *EditRequest) GetShort() string
- func (x *EditRequest) GetTags() []string
- func (x *EditRequest) GetTitle() string
- func (*EditRequest) ProtoMessage()
- func (x *EditRequest) ProtoReflect() protoreflect.Message
- func (x *EditRequest) Reset()
- func (x *EditRequest) String() string
- type EditResponse
- type FeedRequest
- func (*FeedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FeedRequest) GetLimit() int32
- func (x *FeedRequest) GetPage() int32
- func (x *FeedRequest) GetQuery() string
- func (*FeedRequest) ProtoMessage()
- func (x *FeedRequest) ProtoReflect() protoreflect.Message
- func (x *FeedRequest) Reset()
- func (x *FeedRequest) String() string
- type FeedResponse
- type GenerateResponse
- type GetRequest
- type GetResponse
- type InviteClient
- type InviteServer
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetLimit() int32
- func (x *ListRequest) GetPage() int32
- func (x *ListRequest) GetQuery() string
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type ListResponse
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type PasswordRequest
- func (*PasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PasswordRequest) GetNewPassword() string
- func (x *PasswordRequest) GetOldPassword() string
- func (*PasswordRequest) ProtoMessage()
- func (x *PasswordRequest) ProtoReflect() protoreflect.Message
- func (x *PasswordRequest) Reset()
- func (x *PasswordRequest) String() string
- type PostClient
- type PostObject
- func (*PostObject) Descriptor() ([]byte, []int)deprecated
- func (x *PostObject) GetBody() string
- func (x *PostObject) GetCreatedAt() *timestamppb.Timestamp
- func (x *PostObject) GetId() int64
- func (x *PostObject) GetIsPublished() bool
- func (x *PostObject) GetShort() string
- func (x *PostObject) GetTags() []string
- func (x *PostObject) GetTitle() string
- func (x *PostObject) GetUser() *PublicUserObject
- func (x *PostObject) GetUserId() int64
- func (*PostObject) ProtoMessage()
- func (x *PostObject) ProtoReflect() protoreflect.Message
- func (x *PostObject) Reset()
- func (x *PostObject) String() string
- type PostServer
- type PrivateUserObject
- func (*PrivateUserObject) Descriptor() ([]byte, []int)deprecated
- func (x *PrivateUserObject) GetCreatedAt() *timestamppb.Timestamp
- func (x *PrivateUserObject) GetDisplayedName() string
- func (x *PrivateUserObject) GetEmail() string
- func (x *PrivateUserObject) GetId() int64
- func (x *PrivateUserObject) GetInvitedByUserId() int64
- func (x *PrivateUserObject) GetUsername() string
- func (*PrivateUserObject) ProtoMessage()
- func (x *PrivateUserObject) ProtoReflect() protoreflect.Message
- func (x *PrivateUserObject) Reset()
- func (x *PrivateUserObject) String() string
- type ProfileRequest
- func (*ProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProfileRequest) GetDisplayedName() string
- func (x *ProfileRequest) GetEmail() string
- func (*ProfileRequest) ProtoMessage()
- func (x *ProfileRequest) ProtoReflect() protoreflect.Message
- func (x *ProfileRequest) Reset()
- func (x *ProfileRequest) String() string
- type PublicGetRequest
- type PublicGetResponse
- type PublicUserObject
- func (*PublicUserObject) Descriptor() ([]byte, []int)deprecated
- func (x *PublicUserObject) GetCreatedAt() *timestamppb.Timestamp
- func (x *PublicUserObject) GetDisplayedName() string
- func (x *PublicUserObject) GetId() int64
- func (x *PublicUserObject) GetInvitedByUserId() int64
- func (*PublicUserObject) ProtoMessage()
- func (x *PublicUserObject) ProtoReflect() protoreflect.Message
- func (x *PublicUserObject) Reset()
- func (x *PublicUserObject) String() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetDisplayedName() string
- func (x *RegisterRequest) GetInvite() string
- func (x *RegisterRequest) GetPassword() string
- func (x *RegisterRequest) GetUsername() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) Login(context.Context, *LoginRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) Logout(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) Register(context.Context, *RegisterRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) User(context.Context, *emptypb.Empty) (*UserResponse, error)
- type UnimplementedInviteServer
- type UnimplementedPostServer
- func (UnimplementedPostServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedPostServer) Edit(context.Context, *EditRequest) (*EditResponse, error)
- func (UnimplementedPostServer) Feed(context.Context, *FeedRequest) (*FeedResponse, error)
- func (UnimplementedPostServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedPostServer) PublicGet(context.Context, *PublicGetRequest) (*PublicGetResponse, error)
- type UnimplementedUserServer
- type UnsafeAuthServer
- type UnsafeInviteServer
- type UnsafePostServer
- type UnsafeUserServer
- type UserClient
- type UserResponse
- func (*UserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *UserResponse) GetDisplayedName() string
- func (x *UserResponse) GetEmail() string
- func (x *UserResponse) GetId() int64
- func (x *UserResponse) GetInvitedByUserId() int64
- func (x *UserResponse) GetUsername() string
- func (*UserResponse) ProtoMessage()
- func (x *UserResponse) ProtoReflect() protoreflect.Message
- func (x *UserResponse) Reset()
- func (x *UserResponse) String() string
- type UserServer
Constants ¶
const ( Auth_Register_FullMethodName = "/gateway.Auth/Register" Auth_Login_FullMethodName = "/gateway.Auth/Login" Auth_User_FullMethodName = "/gateway.Auth/User" Auth_Logout_FullMethodName = "/gateway.Auth/Logout" )
const ( Invite_Generate_FullMethodName = "/gateway.Invite/Generate" Invite_Revoke_FullMethodName = "/gateway.Invite/Revoke" )
const ( Post_Feed_FullMethodName = "/gateway.Post/Feed" Post_PublicGet_FullMethodName = "/gateway.Post/PublicGet" Post_Create_FullMethodName = "/gateway.Post/Create" Post_Edit_FullMethodName = "/gateway.Post/Edit" Post_List_FullMethodName = "/gateway.Post/List" )
const ( User_Get_FullMethodName = "/gateway.User/Get" User_Password_FullMethodName = "/gateway.User/Password" User_Profile_FullMethodName = "/gateway.User/Profile" )
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gateway.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _Auth_Register_Handler, }, { MethodName: "Login", Handler: _Auth_Login_Handler, }, { MethodName: "User", Handler: _Auth_User_Handler, }, { MethodName: "Logout", Handler: _Auth_Logout_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_proto protoreflect.FileDescriptor
var File_invite_proto protoreflect.FileDescriptor
var File_post_proto protoreflect.FileDescriptor
var File_server_proto protoreflect.FileDescriptor
var File_user_proto protoreflect.FileDescriptor
var Invite_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gateway.Invite", HandlerType: (*InviteServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Generate", Handler: _Invite_Generate_Handler, }, { MethodName: "Revoke", Handler: _Invite_Revoke_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "invite.proto", }
Invite_ServiceDesc is the grpc.ServiceDesc for Invite service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Post_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gateway.Post", HandlerType: (*PostServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Feed", Handler: _Post_Feed_Handler, }, { MethodName: "PublicGet", Handler: _Post_PublicGet_Handler, }, { MethodName: "Create", Handler: _Post_Create_Handler, }, { MethodName: "Edit", Handler: _Post_Edit_Handler, }, { MethodName: "List", Handler: _Post_List_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "post.proto", }
Post_ServiceDesc is the grpc.ServiceDesc for Post service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gateway.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _User_Get_Handler, }, { MethodName: "Password", Handler: _User_Password_Handler, }, { MethodName: "Profile", Handler: _User_Profile_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthHandler ¶
RegisterAuthHandler registers the http handlers for service Auth to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthHandlerClient ¶
RegisterAuthHandlerClient registers the http handlers for service Auth to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthClient" to call the correct interceptors.
func RegisterAuthHandlerFromEndpoint ¶
func RegisterAuthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthHandlerFromEndpoint is same as RegisterAuthHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthHandlerServer ¶
RegisterAuthHandlerServer registers the http handlers for service Auth to "mux". UnaryRPC :call AuthServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthHandlerFromEndpoint instead.
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
func RegisterInviteHandler ¶
RegisterInviteHandler registers the http handlers for service Invite to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterInviteHandlerClient ¶
func RegisterInviteHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InviteClient) error
RegisterInviteHandlerClient registers the http handlers for service Invite to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InviteClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InviteClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InviteClient" to call the correct interceptors.
func RegisterInviteHandlerFromEndpoint ¶
func RegisterInviteHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterInviteHandlerFromEndpoint is same as RegisterInviteHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterInviteHandlerServer ¶
func RegisterInviteHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InviteServer) error
RegisterInviteHandlerServer registers the http handlers for service Invite to "mux". UnaryRPC :call InviteServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterInviteHandlerFromEndpoint instead.
func RegisterInviteServer ¶
func RegisterInviteServer(s grpc.ServiceRegistrar, srv InviteServer)
func RegisterPostHandler ¶
RegisterPostHandler registers the http handlers for service Post to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPostHandlerClient ¶
RegisterPostHandlerClient registers the http handlers for service Post to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PostClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PostClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PostClient" to call the correct interceptors.
func RegisterPostHandlerFromEndpoint ¶
func RegisterPostHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPostHandlerFromEndpoint is same as RegisterPostHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPostHandlerServer ¶
RegisterPostHandlerServer registers the http handlers for service Post to "mux". UnaryRPC :call PostServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPostHandlerFromEndpoint instead.
func RegisterPostServer ¶
func RegisterPostServer(s grpc.ServiceRegistrar, srv PostServer)
func RegisterUserHandler ¶
RegisterUserHandler registers the http handlers for service User to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserHandlerClient ¶
RegisterUserHandlerClient registers the http handlers for service User to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserClient" to call the correct interceptors.
func RegisterUserHandlerFromEndpoint ¶
func RegisterUserHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserHandlerFromEndpoint is same as RegisterUserHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserHandlerServer ¶
RegisterUserHandlerServer registers the http handlers for service User to "mux". UnaryRPC :call UserServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserHandlerFromEndpoint instead.
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type AuthClient ¶
type AuthClient interface { // Registration form Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Login form Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Getting information about the current user User(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserResponse, error) // Logout Logout(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) }
AuthClient is the client API for Auth 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 NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthServer ¶
type AuthServer interface { // Registration form Register(context.Context, *RegisterRequest) (*emptypb.Empty, error) // Login form Login(context.Context, *LoginRequest) (*emptypb.Empty, error) // Getting information about the current user User(context.Context, *emptypb.Empty) (*UserResponse, error) // Logout Logout(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type CreateRequest ¶
type CreateRequest struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Short string `protobuf:"bytes,2,opt,name=short,proto3" json:"short,omitempty"` Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` IsPublished bool `protobuf:"varint,5,opt,name=is_published,json=isPublished,proto3" json:"is_published,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetBody ¶
func (x *CreateRequest) GetBody() string
func (*CreateRequest) GetIsPublished ¶
func (x *CreateRequest) GetIsPublished() bool
func (*CreateRequest) GetShort ¶
func (x *CreateRequest) GetShort() string
func (*CreateRequest) GetTags ¶
func (x *CreateRequest) GetTags() []string
func (*CreateRequest) GetTitle ¶
func (x *CreateRequest) GetTitle() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { Data *PostObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetData ¶
func (x *CreateResponse) GetData() *PostObject
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type EditRequest ¶
type EditRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Short string `protobuf:"bytes,3,opt,name=short,proto3" json:"short,omitempty"` Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` IsPublished bool `protobuf:"varint,6,opt,name=is_published,json=isPublished,proto3" json:"is_published,omitempty"` // contains filtered or unexported fields }
func (*EditRequest) Descriptor
deprecated
func (*EditRequest) Descriptor() ([]byte, []int)
Deprecated: Use EditRequest.ProtoReflect.Descriptor instead.
func (*EditRequest) GetBody ¶
func (x *EditRequest) GetBody() string
func (*EditRequest) GetId ¶
func (x *EditRequest) GetId() int64
func (*EditRequest) GetIsPublished ¶
func (x *EditRequest) GetIsPublished() bool
func (*EditRequest) GetShort ¶
func (x *EditRequest) GetShort() string
func (*EditRequest) GetTags ¶
func (x *EditRequest) GetTags() []string
func (*EditRequest) GetTitle ¶
func (x *EditRequest) GetTitle() string
func (*EditRequest) ProtoMessage ¶
func (*EditRequest) ProtoMessage()
func (*EditRequest) ProtoReflect ¶
func (x *EditRequest) ProtoReflect() protoreflect.Message
func (*EditRequest) Reset ¶
func (x *EditRequest) Reset()
func (*EditRequest) String ¶
func (x *EditRequest) String() string
type EditResponse ¶
type EditResponse struct { Data *PostObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*EditResponse) Descriptor
deprecated
func (*EditResponse) Descriptor() ([]byte, []int)
Deprecated: Use EditResponse.ProtoReflect.Descriptor instead.
func (*EditResponse) GetData ¶
func (x *EditResponse) GetData() *PostObject
func (*EditResponse) ProtoMessage ¶
func (*EditResponse) ProtoMessage()
func (*EditResponse) ProtoReflect ¶
func (x *EditResponse) ProtoReflect() protoreflect.Message
func (*EditResponse) Reset ¶
func (x *EditResponse) Reset()
func (*EditResponse) String ¶
func (x *EditResponse) String() string
type FeedRequest ¶
type FeedRequest struct { Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*FeedRequest) Descriptor
deprecated
func (*FeedRequest) Descriptor() ([]byte, []int)
Deprecated: Use FeedRequest.ProtoReflect.Descriptor instead.
func (*FeedRequest) GetLimit ¶
func (x *FeedRequest) GetLimit() int32
func (*FeedRequest) GetPage ¶
func (x *FeedRequest) GetPage() int32
func (*FeedRequest) GetQuery ¶
func (x *FeedRequest) GetQuery() string
func (*FeedRequest) ProtoMessage ¶
func (*FeedRequest) ProtoMessage()
func (*FeedRequest) ProtoReflect ¶
func (x *FeedRequest) ProtoReflect() protoreflect.Message
func (*FeedRequest) Reset ¶
func (x *FeedRequest) Reset()
func (*FeedRequest) String ¶
func (x *FeedRequest) String() string
type FeedResponse ¶
type FeedResponse struct { Data []*PostObject `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*FeedResponse) Descriptor
deprecated
func (*FeedResponse) Descriptor() ([]byte, []int)
Deprecated: Use FeedResponse.ProtoReflect.Descriptor instead.
func (*FeedResponse) GetData ¶
func (x *FeedResponse) GetData() []*PostObject
func (*FeedResponse) ProtoMessage ¶
func (*FeedResponse) ProtoMessage()
func (*FeedResponse) ProtoReflect ¶
func (x *FeedResponse) ProtoReflect() protoreflect.Message
func (*FeedResponse) Reset ¶
func (x *FeedResponse) Reset()
func (*FeedResponse) String ¶
func (x *FeedResponse) String() string
type GenerateResponse ¶
type GenerateResponse struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GenerateResponse) Descriptor
deprecated
func (*GenerateResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateResponse.ProtoReflect.Descriptor instead.
func (*GenerateResponse) GetData ¶
func (x *GenerateResponse) GetData() string
func (*GenerateResponse) ProtoMessage ¶
func (*GenerateResponse) ProtoMessage()
func (*GenerateResponse) ProtoReflect ¶
func (x *GenerateResponse) ProtoReflect() protoreflect.Message
func (*GenerateResponse) Reset ¶
func (x *GenerateResponse) Reset()
func (*GenerateResponse) String ¶
func (x *GenerateResponse) String() string
type GetRequest ¶
type GetRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetId ¶
func (x *GetRequest) GetId() int64
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Data *PrivateUserObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetData ¶
func (x *GetResponse) GetData() *PrivateUserObject
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type InviteClient ¶
type InviteClient interface { // Generate a new invitation code Generate(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GenerateResponse, error) // Revoke the generated invitation code Revoke(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) }
InviteClient is the client API for Invite 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 NewInviteClient ¶
func NewInviteClient(cc grpc.ClientConnInterface) InviteClient
type InviteServer ¶
type InviteServer interface { // Generate a new invitation code Generate(context.Context, *emptypb.Empty) (*GenerateResponse, error) // Revoke the generated invitation code Revoke(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // contains filtered or unexported methods }
InviteServer is the server API for Invite service. All implementations must embed UnimplementedInviteServer for forward compatibility
type ListRequest ¶
type ListRequest struct { Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetLimit ¶
func (x *ListRequest) GetLimit() int32
func (*ListRequest) GetPage ¶
func (x *ListRequest) GetPage() int32
func (*ListRequest) GetQuery ¶
func (x *ListRequest) GetQuery() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { Data []*PostObject `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetData ¶
func (x *ListResponse) GetData() []*PostObject
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) 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 PasswordRequest ¶
type PasswordRequest struct { OldPassword string `protobuf:"bytes,1,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"` NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` // contains filtered or unexported fields }
func (*PasswordRequest) Descriptor
deprecated
func (*PasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use PasswordRequest.ProtoReflect.Descriptor instead.
func (*PasswordRequest) GetNewPassword ¶
func (x *PasswordRequest) GetNewPassword() string
func (*PasswordRequest) GetOldPassword ¶
func (x *PasswordRequest) GetOldPassword() string
func (*PasswordRequest) ProtoMessage ¶
func (*PasswordRequest) ProtoMessage()
func (*PasswordRequest) ProtoReflect ¶
func (x *PasswordRequest) ProtoReflect() protoreflect.Message
func (*PasswordRequest) Reset ¶
func (x *PasswordRequest) Reset()
func (*PasswordRequest) String ¶
func (x *PasswordRequest) String() string
type PostClient ¶
type PostClient interface { // Get feed Feed(ctx context.Context, in *FeedRequest, opts ...grpc.CallOption) (*FeedResponse, error) // Get public post PublicGet(ctx context.Context, in *PublicGetRequest, opts ...grpc.CallOption) (*PublicGetResponse, error) // Post creation form Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) // Edit post form Edit(ctx context.Context, in *EditRequest, opts ...grpc.CallOption) (*EditResponse, error) // Get a list of posts for the current user List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) }
PostClient is the client API for Post 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 NewPostClient ¶
func NewPostClient(cc grpc.ClientConnInterface) PostClient
type PostObject ¶
type PostObject struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` User *PublicUserObject `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` Short string `protobuf:"bytes,5,opt,name=short,proto3" json:"short,omitempty"` Body string `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"` IsPublished bool `protobuf:"varint,8,opt,name=is_published,json=isPublished,proto3" json:"is_published,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*PostObject) Descriptor
deprecated
func (*PostObject) Descriptor() ([]byte, []int)
Deprecated: Use PostObject.ProtoReflect.Descriptor instead.
func (*PostObject) GetBody ¶
func (x *PostObject) GetBody() string
func (*PostObject) GetCreatedAt ¶
func (x *PostObject) GetCreatedAt() *timestamppb.Timestamp
func (*PostObject) GetId ¶
func (x *PostObject) GetId() int64
func (*PostObject) GetIsPublished ¶
func (x *PostObject) GetIsPublished() bool
func (*PostObject) GetShort ¶
func (x *PostObject) GetShort() string
func (*PostObject) GetTags ¶
func (x *PostObject) GetTags() []string
func (*PostObject) GetTitle ¶
func (x *PostObject) GetTitle() string
func (*PostObject) GetUser ¶
func (x *PostObject) GetUser() *PublicUserObject
func (*PostObject) GetUserId ¶
func (x *PostObject) GetUserId() int64
func (*PostObject) ProtoMessage ¶
func (*PostObject) ProtoMessage()
func (*PostObject) ProtoReflect ¶
func (x *PostObject) ProtoReflect() protoreflect.Message
func (*PostObject) Reset ¶
func (x *PostObject) Reset()
func (*PostObject) String ¶
func (x *PostObject) String() string
type PostServer ¶
type PostServer interface { // Get feed Feed(context.Context, *FeedRequest) (*FeedResponse, error) // Get public post PublicGet(context.Context, *PublicGetRequest) (*PublicGetResponse, error) // Post creation form Create(context.Context, *CreateRequest) (*CreateResponse, error) // Edit post form Edit(context.Context, *EditRequest) (*EditResponse, error) // Get a list of posts for the current user List(context.Context, *ListRequest) (*ListResponse, error) // contains filtered or unexported methods }
PostServer is the server API for Post service. All implementations must embed UnimplementedPostServer for forward compatibility
type PrivateUserObject ¶
type PrivateUserObject struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` DisplayedName string `protobuf:"bytes,3,opt,name=displayed_name,json=displayedName,proto3" json:"displayed_name,omitempty"` Email *string `protobuf:"bytes,4,opt,name=email,proto3,oneof" json:"email,omitempty"` InvitedByUserId int64 `protobuf:"varint,5,opt,name=invited_by_user_id,json=invitedByUserId,proto3" json:"invited_by_user_id,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*PrivateUserObject) Descriptor
deprecated
func (*PrivateUserObject) Descriptor() ([]byte, []int)
Deprecated: Use PrivateUserObject.ProtoReflect.Descriptor instead.
func (*PrivateUserObject) GetCreatedAt ¶
func (x *PrivateUserObject) GetCreatedAt() *timestamppb.Timestamp
func (*PrivateUserObject) GetDisplayedName ¶
func (x *PrivateUserObject) GetDisplayedName() string
func (*PrivateUserObject) GetEmail ¶
func (x *PrivateUserObject) GetEmail() string
func (*PrivateUserObject) GetId ¶
func (x *PrivateUserObject) GetId() int64
func (*PrivateUserObject) GetInvitedByUserId ¶
func (x *PrivateUserObject) GetInvitedByUserId() int64
func (*PrivateUserObject) GetUsername ¶
func (x *PrivateUserObject) GetUsername() string
func (*PrivateUserObject) ProtoMessage ¶
func (*PrivateUserObject) ProtoMessage()
func (*PrivateUserObject) ProtoReflect ¶
func (x *PrivateUserObject) ProtoReflect() protoreflect.Message
func (*PrivateUserObject) Reset ¶
func (x *PrivateUserObject) Reset()
func (*PrivateUserObject) String ¶
func (x *PrivateUserObject) String() string
type ProfileRequest ¶
type ProfileRequest struct { DisplayedName string `protobuf:"bytes,1,opt,name=displayed_name,json=displayedName,proto3" json:"displayed_name,omitempty"` Email *string `protobuf:"bytes,2,opt,name=email,proto3,oneof" json:"email,omitempty"` // contains filtered or unexported fields }
func (*ProfileRequest) Descriptor
deprecated
func (*ProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProfileRequest.ProtoReflect.Descriptor instead.
func (*ProfileRequest) GetDisplayedName ¶
func (x *ProfileRequest) GetDisplayedName() string
func (*ProfileRequest) GetEmail ¶
func (x *ProfileRequest) GetEmail() string
func (*ProfileRequest) ProtoMessage ¶
func (*ProfileRequest) ProtoMessage()
func (*ProfileRequest) ProtoReflect ¶
func (x *ProfileRequest) ProtoReflect() protoreflect.Message
func (*ProfileRequest) Reset ¶
func (x *ProfileRequest) Reset()
func (*ProfileRequest) String ¶
func (x *ProfileRequest) String() string
type PublicGetRequest ¶
type PublicGetRequest struct { Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*PublicGetRequest) Descriptor
deprecated
func (*PublicGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublicGetRequest.ProtoReflect.Descriptor instead.
func (*PublicGetRequest) GetId ¶
func (x *PublicGetRequest) GetId() int64
func (*PublicGetRequest) ProtoMessage ¶
func (*PublicGetRequest) ProtoMessage()
func (*PublicGetRequest) ProtoReflect ¶
func (x *PublicGetRequest) ProtoReflect() protoreflect.Message
func (*PublicGetRequest) Reset ¶
func (x *PublicGetRequest) Reset()
func (*PublicGetRequest) String ¶
func (x *PublicGetRequest) String() string
type PublicGetResponse ¶
type PublicGetResponse struct { Data *PostObject `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*PublicGetResponse) Descriptor
deprecated
func (*PublicGetResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublicGetResponse.ProtoReflect.Descriptor instead.
func (*PublicGetResponse) GetData ¶
func (x *PublicGetResponse) GetData() *PostObject
func (*PublicGetResponse) ProtoMessage ¶
func (*PublicGetResponse) ProtoMessage()
func (*PublicGetResponse) ProtoReflect ¶
func (x *PublicGetResponse) ProtoReflect() protoreflect.Message
func (*PublicGetResponse) Reset ¶
func (x *PublicGetResponse) Reset()
func (*PublicGetResponse) String ¶
func (x *PublicGetResponse) String() string
type PublicUserObject ¶
type PublicUserObject struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` DisplayedName string `protobuf:"bytes,3,opt,name=displayed_name,json=displayedName,proto3" json:"displayed_name,omitempty"` InvitedByUserId int64 `protobuf:"varint,5,opt,name=invited_by_user_id,json=invitedByUserId,proto3" json:"invited_by_user_id,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*PublicUserObject) Descriptor
deprecated
func (*PublicUserObject) Descriptor() ([]byte, []int)
Deprecated: Use PublicUserObject.ProtoReflect.Descriptor instead.
func (*PublicUserObject) GetCreatedAt ¶
func (x *PublicUserObject) GetCreatedAt() *timestamppb.Timestamp
func (*PublicUserObject) GetDisplayedName ¶
func (x *PublicUserObject) GetDisplayedName() string
func (*PublicUserObject) GetId ¶
func (x *PublicUserObject) GetId() int64
func (*PublicUserObject) GetInvitedByUserId ¶
func (x *PublicUserObject) GetInvitedByUserId() int64
func (*PublicUserObject) ProtoMessage ¶
func (*PublicUserObject) ProtoMessage()
func (*PublicUserObject) ProtoReflect ¶
func (x *PublicUserObject) ProtoReflect() protoreflect.Message
func (*PublicUserObject) Reset ¶
func (x *PublicUserObject) Reset()
func (*PublicUserObject) String ¶
func (x *PublicUserObject) String() string
type RegisterRequest ¶
type RegisterRequest 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"` DisplayedName string `protobuf:"bytes,3,opt,name=displayed_name,json=displayedName,proto3" json:"displayed_name,omitempty"` Invite string `protobuf:"bytes,4,opt,name=invite,proto3" json:"invite,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetDisplayedName ¶
func (x *RegisterRequest) GetDisplayedName() string
func (*RegisterRequest) GetInvite ¶
func (x *RegisterRequest) GetInvite() string
func (*RegisterRequest) GetPassword ¶
func (x *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetUsername ¶
func (x *RegisterRequest) GetUsername() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) Login ¶
func (UnimplementedAuthServer) Login(context.Context, *LoginRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) Register ¶
func (UnimplementedAuthServer) Register(context.Context, *RegisterRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) User ¶
func (UnimplementedAuthServer) User(context.Context, *emptypb.Empty) (*UserResponse, error)
type UnimplementedInviteServer ¶
type UnimplementedInviteServer struct { }
UnimplementedInviteServer must be embedded to have forward compatible implementations.
func (UnimplementedInviteServer) Generate ¶
func (UnimplementedInviteServer) Generate(context.Context, *emptypb.Empty) (*GenerateResponse, error)
type UnimplementedPostServer ¶
type UnimplementedPostServer struct { }
UnimplementedPostServer must be embedded to have forward compatible implementations.
func (UnimplementedPostServer) Create ¶
func (UnimplementedPostServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedPostServer) Edit ¶
func (UnimplementedPostServer) Edit(context.Context, *EditRequest) (*EditResponse, error)
func (UnimplementedPostServer) Feed ¶
func (UnimplementedPostServer) Feed(context.Context, *FeedRequest) (*FeedResponse, error)
func (UnimplementedPostServer) List ¶
func (UnimplementedPostServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedPostServer) PublicGet ¶
func (UnimplementedPostServer) PublicGet(context.Context, *PublicGetRequest) (*PublicGetResponse, error)
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) Get ¶
func (UnimplementedUserServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedUserServer) Password ¶
func (UnimplementedUserServer) Password(context.Context, *PasswordRequest) (*emptypb.Empty, error)
func (UnimplementedUserServer) Profile ¶
func (UnimplementedUserServer) Profile(context.Context, *ProfileRequest) (*emptypb.Empty, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.
type UnsafeInviteServer ¶
type UnsafeInviteServer interface {
// contains filtered or unexported methods
}
UnsafeInviteServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InviteServer will result in compilation errors.
type UnsafePostServer ¶
type UnsafePostServer interface {
// contains filtered or unexported methods
}
UnsafePostServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PostServer will result in compilation errors.
type UnsafeUserServer ¶
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UserClient ¶
type UserClient interface { // Getting information about a user by ID Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) // Updating the password for a user Password(ctx context.Context, in *PasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Updating user information Profile(ctx context.Context, in *ProfileRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
UserClient is the client API for User 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 NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserResponse ¶
type UserResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` DisplayedName string `protobuf:"bytes,3,opt,name=displayed_name,json=displayedName,proto3" json:"displayed_name,omitempty"` Email *string `protobuf:"bytes,4,opt,name=email,proto3,oneof" json:"email,omitempty"` InvitedByUserId int64 `protobuf:"varint,5,opt,name=invited_by_user_id,json=invitedByUserId,proto3" json:"invited_by_user_id,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*UserResponse) Descriptor
deprecated
func (*UserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.
func (*UserResponse) GetCreatedAt ¶
func (x *UserResponse) GetCreatedAt() *timestamppb.Timestamp
func (*UserResponse) GetDisplayedName ¶
func (x *UserResponse) GetDisplayedName() string
func (*UserResponse) GetEmail ¶
func (x *UserResponse) GetEmail() string
func (*UserResponse) GetId ¶
func (x *UserResponse) GetId() int64
func (*UserResponse) GetInvitedByUserId ¶
func (x *UserResponse) GetInvitedByUserId() int64
func (*UserResponse) GetUsername ¶
func (x *UserResponse) GetUsername() string
func (*UserResponse) ProtoMessage ¶
func (*UserResponse) ProtoMessage()
func (*UserResponse) ProtoReflect ¶
func (x *UserResponse) ProtoReflect() protoreflect.Message
func (*UserResponse) Reset ¶
func (x *UserResponse) Reset()
func (*UserResponse) String ¶
func (x *UserResponse) String() string
type UserServer ¶
type UserServer interface { // Getting information about a user by ID Get(context.Context, *GetRequest) (*GetResponse, error) // Updating the password for a user Password(context.Context, *PasswordRequest) (*emptypb.Empty, error) // Updating user information Profile(context.Context, *ProfileRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility