Documentation ¶
Overview ¶
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- 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 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 RegisterUserSvcHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserSvcHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserSvcClient) error
- func RegisterUserSvcHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserSvcHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserSvcServer) error
- func RegisterUserSvcServer(s grpc.ServiceRegistrar, srv UserSvcServer)
- type AddAuthReq
- type AddCommentResp
- type AddPostReq
- func (*AddPostReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddPostReq) GetBody() string
- func (x *AddPostReq) GetTitle() string
- func (x *AddPostReq) GetTypeId() string
- func (*AddPostReq) ProtoMessage()
- func (x *AddPostReq) ProtoReflect() protoreflect.Message
- func (x *AddPostReq) Reset()
- func (x *AddPostReq) String() string
- type AddRoleReq
- type AddTypeReq
- type AddUserReq
- func (*AddUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddUserReq) GetAltmail() string
- func (x *AddUserReq) GetAltmailHold() bool
- func (x *AddUserReq) GetAvatar() string
- func (x *AddUserReq) GetEmail() string
- func (x *AddUserReq) GetEmailHold() bool
- func (x *AddUserReq) GetFullName() string
- func (x *AddUserReq) GetPassword() string
- func (x *AddUserReq) GetRoleIds() []string
- func (x *AddUserReq) GetUsername() string
- func (*AddUserReq) ProtoMessage()
- func (x *AddUserReq) ProtoReflect() protoreflect.Message
- func (x *AddUserReq) Reset()
- func (x *AddUserReq) String() string
- type AddVoucherReq
- func (*AddVoucherReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddVoucherReq) GetEmail() string
- func (x *AddVoucherReq) GetNotify() bool
- func (x *AddVoucherReq) GetPassword() bool
- func (*AddVoucherReq) ProtoMessage()
- func (x *AddVoucherReq) ProtoReflect() protoreflect.Message
- func (x *AddVoucherReq) Reset()
- func (x *AddVoucherReq) String() string
- type AddVoucherResp
- type AuthClient
- type AuthResp
- type AuthServer
- type CommentResp
- type FndPostsReq
- func (*FndPostsReq) Descriptor() ([]byte, []int)deprecated
- func (x *FndPostsReq) GetCreated() *timestamppb.Timestamp
- func (x *FndPostsReq) GetDeleted() *timestamppb.Timestamp
- func (x *FndPostsReq) GetKeywords() []string
- func (x *FndPostsReq) GetUpdated() *timestamppb.Timestamp
- func (*FndPostsReq) ProtoMessage()
- func (x *FndPostsReq) ProtoReflect() protoreflect.Message
- func (x *FndPostsReq) Reset()
- func (x *FndPostsReq) String() string
- type FndRolesReq
- func (*FndRolesReq) Descriptor() ([]byte, []int)deprecated
- func (x *FndRolesReq) GetLapse() uint32
- func (x *FndRolesReq) GetLimit() uint32
- func (x *FndRolesReq) GetRoleIds() []string
- func (x *FndRolesReq) GetRoleNames() []string
- func (*FndRolesReq) ProtoMessage()
- func (x *FndRolesReq) ProtoReflect() protoreflect.Message
- func (x *FndRolesReq) Reset()
- func (x *FndRolesReq) String() string
- type FndTypesReq
- type FndUsersReq
- func (*FndUsersReq) Descriptor() ([]byte, []int)deprecated
- func (x *FndUsersReq) GetAltmail() string
- func (x *FndUsersReq) GetAltmailHold() bool
- func (x *FndUsersReq) GetCreatedDesc() bool
- func (x *FndUsersReq) GetCreatedFinal() *timestamppb.Timestamp
- func (x *FndUsersReq) GetCreatedFirst() *timestamppb.Timestamp
- func (x *FndUsersReq) GetEmail() string
- func (x *FndUsersReq) GetEmailHold() bool
- func (x *FndUsersReq) GetLapse() uint32
- func (x *FndUsersReq) GetLimit() uint32
- func (x *FndUsersReq) GetRoleIds() []string
- func (*FndUsersReq) ProtoMessage()
- func (x *FndUsersReq) ProtoReflect() protoreflect.Message
- func (x *FndUsersReq) Reset()
- func (x *FndUsersReq) String() string
- type OvrPostReq
- type OvrUserReq
- type PostClient
- type PostResp
- func (*PostResp) Descriptor() ([]byte, []int)deprecated
- func (x *PostResp) GetBlocked() *timestamppb.Timestamp
- func (x *PostResp) GetBody() string
- func (x *PostResp) GetCreated() *timestamppb.Timestamp
- func (x *PostResp) GetDeleted() *timestamppb.Timestamp
- func (x *PostResp) GetId() string
- func (x *PostResp) GetSlug() string
- func (x *PostResp) GetTitle() string
- func (x *PostResp) GetTypeId() string
- func (x *PostResp) GetUpdated() *timestamppb.Timestamp
- func (*PostResp) ProtoMessage()
- func (x *PostResp) ProtoReflect() protoreflect.Message
- func (x *PostResp) Reset()
- func (x *PostResp) String() string
- type PostServer
- type PostsResp
- type RmvAuthReq
- type RmvAuthResp
- type RmvPostReq
- type RmvPostResp
- type RmvUserReq
- type RmvUserResp
- type RoleResp
- type RolesResp
- type TypeResp
- type TypesResp
- type UnimplementedAuthServer
- type UnimplementedPostServer
- func (UnimplementedPostServer) AddPost(context.Context, *AddPostReq) (*PostResp, error)
- func (UnimplementedPostServer) AddType(context.Context, *AddTypeReq) (*TypeResp, error)
- func (UnimplementedPostServer) FndPosts(context.Context, *FndPostsReq) (*PostsResp, error)
- func (UnimplementedPostServer) FndTypes(context.Context, *FndTypesReq) (*TypesResp, error)
- func (UnimplementedPostServer) OvrPost(context.Context, *OvrPostReq) (*PostResp, error)
- func (UnimplementedPostServer) RmvPost(context.Context, *RmvPostReq) (*RmvPostResp, error)
- type UnimplementedUserSvcServer
- func (UnimplementedUserSvcServer) AddRole(context.Context, *AddRoleReq) (*RoleResp, error)
- func (UnimplementedUserSvcServer) AddUser(context.Context, *AddUserReq) (*UserResp, error)
- func (UnimplementedUserSvcServer) FndRoles(context.Context, *FndRolesReq) (*RolesResp, error)
- func (UnimplementedUserSvcServer) FndUsers(context.Context, *FndUsersReq) (*UsersResp, error)
- func (UnimplementedUserSvcServer) OvrUser(context.Context, *OvrUserReq) (*UserResp, error)
- func (UnimplementedUserSvcServer) RmvUser(context.Context, *RmvUserReq) (*RmvUserResp, error)
- type UnsafeAuthServer
- type UnsafePostServer
- type UnsafeUserSvcServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAltmail() string
- func (x *User) GetAltmailHold() bool
- func (x *User) GetAvatar() string
- func (x *User) GetBlocked() *timestamppb.Timestamp
- func (x *User) GetCreated() *timestamppb.Timestamp
- func (x *User) GetDeleted() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetEmailHold() bool
- func (x *User) GetFullName() string
- func (x *User) GetId() string
- func (x *User) GetLastLogin() *timestamppb.Timestamp
- func (x *User) GetRoles() []*RoleResp
- func (x *User) GetUpdated() *timestamppb.Timestamp
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserResp
- type UserSvcClient
- type UserSvcServer
- type UsersResp
Constants ¶
This section is empty.
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddAuth", Handler: _Auth_AddAuth_Handler, }, { MethodName: "RmvAuth", Handler: _Auth_RmvAuth_Handler, }, { MethodName: "AddVoucher", Handler: _Auth_AddVoucher_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_post_proto protoreflect.FileDescriptor
var File_user_proto protoreflect.FileDescriptor
var Post_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.Post", HandlerType: (*PostServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddType", Handler: _Post_AddType_Handler, }, { MethodName: "FndTypes", Handler: _Post_FndTypes_Handler, }, { MethodName: "AddPost", Handler: _Post_AddPost_Handler, }, { MethodName: "FndPosts", Handler: _Post_FndPosts_Handler, }, { MethodName: "OvrPost", Handler: _Post_OvrPost_Handler, }, { MethodName: "RmvPost", Handler: _Post_RmvPost_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 UserSvc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.UserSvc", HandlerType: (*UserSvcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddRole", Handler: _UserSvc_AddRole_Handler, }, { MethodName: "FndRoles", Handler: _UserSvc_FndRoles_Handler, }, { MethodName: "AddUser", Handler: _UserSvc_AddUser_Handler, }, { MethodName: "OvrUser", Handler: _UserSvc_OvrUser_Handler, }, { MethodName: "FndUsers", Handler: _UserSvc_FndUsers_Handler, }, { MethodName: "RmvUser", Handler: _UserSvc_RmvUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user.proto", }
UserSvc_ServiceDesc is the grpc.ServiceDesc for UserSvc 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 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 RegisterUserSvcHandler ¶
func RegisterUserSvcHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUserSvcHandler registers the http handlers for service UserSvc to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserSvcHandlerClient ¶
func RegisterUserSvcHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserSvcClient) error
RegisterUserSvcHandlerClient registers the http handlers for service UserSvc to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserSvcClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserSvcClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserSvcClient" to call the correct interceptors.
func RegisterUserSvcHandlerFromEndpoint ¶
func RegisterUserSvcHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserSvcHandlerFromEndpoint is same as RegisterUserSvcHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserSvcHandlerServer ¶
func RegisterUserSvcHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserSvcServer) error
RegisterUserSvcHandlerServer registers the http handlers for service UserSvc to "mux". UnaryRPC :call UserSvcServer 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 RegisterUserSvcHandlerFromEndpoint instead.
func RegisterUserSvcServer ¶
func RegisterUserSvcServer(s grpc.ServiceRegistrar, srv UserSvcServer)
Types ¶
type AddAuthReq ¶
type AddAuthReq 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 (*AddAuthReq) Descriptor
deprecated
func (*AddAuthReq) Descriptor() ([]byte, []int)
Deprecated: Use AddAuthReq.ProtoReflect.Descriptor instead.
func (*AddAuthReq) GetPassword ¶
func (x *AddAuthReq) GetPassword() string
func (*AddAuthReq) GetUsername ¶
func (x *AddAuthReq) GetUsername() string
func (*AddAuthReq) ProtoMessage ¶
func (*AddAuthReq) ProtoMessage()
func (*AddAuthReq) ProtoReflect ¶
func (x *AddAuthReq) ProtoReflect() protoreflect.Message
func (*AddAuthReq) Reset ¶
func (x *AddAuthReq) Reset()
func (*AddAuthReq) String ¶
func (x *AddAuthReq) String() string
type AddCommentResp ¶
type AddCommentResp struct {
// contains filtered or unexported fields
}
func (*AddCommentResp) Descriptor
deprecated
func (*AddCommentResp) Descriptor() ([]byte, []int)
Deprecated: Use AddCommentResp.ProtoReflect.Descriptor instead.
func (*AddCommentResp) ProtoMessage ¶
func (*AddCommentResp) ProtoMessage()
func (*AddCommentResp) ProtoReflect ¶
func (x *AddCommentResp) ProtoReflect() protoreflect.Message
func (*AddCommentResp) Reset ¶
func (x *AddCommentResp) Reset()
func (*AddCommentResp) String ¶
func (x *AddCommentResp) String() string
type AddPostReq ¶
type AddPostReq struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` TypeId string `protobuf:"bytes,3,opt,name=typeId,proto3" json:"typeId,omitempty"` // contains filtered or unexported fields }
func (*AddPostReq) Descriptor
deprecated
func (*AddPostReq) Descriptor() ([]byte, []int)
Deprecated: Use AddPostReq.ProtoReflect.Descriptor instead.
func (*AddPostReq) GetBody ¶
func (x *AddPostReq) GetBody() string
func (*AddPostReq) GetTitle ¶
func (x *AddPostReq) GetTitle() string
func (*AddPostReq) GetTypeId ¶
func (x *AddPostReq) GetTypeId() string
func (*AddPostReq) ProtoMessage ¶
func (*AddPostReq) ProtoMessage()
func (*AddPostReq) ProtoReflect ¶
func (x *AddPostReq) ProtoReflect() protoreflect.Message
func (*AddPostReq) Reset ¶
func (x *AddPostReq) Reset()
func (*AddPostReq) String ¶
func (x *AddPostReq) String() string
type AddRoleReq ¶
type AddRoleReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*AddRoleReq) Descriptor
deprecated
func (*AddRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use AddRoleReq.ProtoReflect.Descriptor instead.
func (*AddRoleReq) GetName ¶
func (x *AddRoleReq) GetName() string
func (*AddRoleReq) ProtoMessage ¶
func (*AddRoleReq) ProtoMessage()
func (*AddRoleReq) ProtoReflect ¶
func (x *AddRoleReq) ProtoReflect() protoreflect.Message
func (*AddRoleReq) Reset ¶
func (x *AddRoleReq) Reset()
func (*AddRoleReq) String ¶
func (x *AddRoleReq) String() string
type AddTypeReq ¶
type AddTypeReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*AddTypeReq) Descriptor
deprecated
func (*AddTypeReq) Descriptor() ([]byte, []int)
Deprecated: Use AddTypeReq.ProtoReflect.Descriptor instead.
func (*AddTypeReq) GetName ¶
func (x *AddTypeReq) GetName() string
func (*AddTypeReq) ProtoMessage ¶
func (*AddTypeReq) ProtoMessage()
func (*AddTypeReq) ProtoReflect ¶
func (x *AddTypeReq) ProtoReflect() protoreflect.Message
func (*AddTypeReq) Reset ¶
func (x *AddTypeReq) Reset()
func (*AddTypeReq) String ¶
func (x *AddTypeReq) String() string
type AddUserReq ¶
type AddUserReq struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` EmailHold bool `protobuf:"varint,3,opt,name=emailHold,proto3" json:"emailHold,omitempty"` Altmail string `protobuf:"bytes,4,opt,name=altmail,proto3" json:"altmail,omitempty"` AltmailHold bool `protobuf:"varint,5,opt,name=altmailHold,proto3" json:"altmailHold,omitempty"` FullName string `protobuf:"bytes,6,opt,name=fullName,proto3" json:"fullName,omitempty"` Avatar string `protobuf:"bytes,7,opt,name=avatar,proto3" json:"avatar,omitempty"` Password string `protobuf:"bytes,8,opt,name=password,proto3" json:"password,omitempty"` RoleIds []string `protobuf:"bytes,9,rep,name=roleIds,proto3" json:"roleIds,omitempty"` // contains filtered or unexported fields }
func (*AddUserReq) Descriptor
deprecated
func (*AddUserReq) Descriptor() ([]byte, []int)
Deprecated: Use AddUserReq.ProtoReflect.Descriptor instead.
func (*AddUserReq) GetAltmail ¶
func (x *AddUserReq) GetAltmail() string
func (*AddUserReq) GetAltmailHold ¶
func (x *AddUserReq) GetAltmailHold() bool
func (*AddUserReq) GetAvatar ¶
func (x *AddUserReq) GetAvatar() string
func (*AddUserReq) GetEmail ¶
func (x *AddUserReq) GetEmail() string
func (*AddUserReq) GetEmailHold ¶
func (x *AddUserReq) GetEmailHold() bool
func (*AddUserReq) GetFullName ¶
func (x *AddUserReq) GetFullName() string
func (*AddUserReq) GetPassword ¶
func (x *AddUserReq) GetPassword() string
func (*AddUserReq) GetRoleIds ¶
func (x *AddUserReq) GetRoleIds() []string
func (*AddUserReq) GetUsername ¶
func (x *AddUserReq) GetUsername() string
func (*AddUserReq) ProtoMessage ¶
func (*AddUserReq) ProtoMessage()
func (*AddUserReq) ProtoReflect ¶
func (x *AddUserReq) ProtoReflect() protoreflect.Message
func (*AddUserReq) Reset ¶
func (x *AddUserReq) Reset()
func (*AddUserReq) String ¶
func (x *AddUserReq) String() string
type AddVoucherReq ¶
type AddVoucherReq struct { Notify bool `protobuf:"varint,1,opt,name=notify,proto3" json:"notify,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password bool `protobuf:"varint,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*AddVoucherReq) Descriptor
deprecated
func (*AddVoucherReq) Descriptor() ([]byte, []int)
Deprecated: Use AddVoucherReq.ProtoReflect.Descriptor instead.
func (*AddVoucherReq) GetEmail ¶
func (x *AddVoucherReq) GetEmail() string
func (*AddVoucherReq) GetNotify ¶
func (x *AddVoucherReq) GetNotify() bool
func (*AddVoucherReq) GetPassword ¶
func (x *AddVoucherReq) GetPassword() bool
func (*AddVoucherReq) ProtoMessage ¶
func (*AddVoucherReq) ProtoMessage()
func (*AddVoucherReq) ProtoReflect ¶
func (x *AddVoucherReq) ProtoReflect() protoreflect.Message
func (*AddVoucherReq) Reset ¶
func (x *AddVoucherReq) Reset()
func (*AddVoucherReq) String ¶
func (x *AddVoucherReq) String() string
type AddVoucherResp ¶
type AddVoucherResp struct {
// contains filtered or unexported fields
}
func (*AddVoucherResp) Descriptor
deprecated
func (*AddVoucherResp) Descriptor() ([]byte, []int)
Deprecated: Use AddVoucherResp.ProtoReflect.Descriptor instead.
func (*AddVoucherResp) ProtoMessage ¶
func (*AddVoucherResp) ProtoMessage()
func (*AddVoucherResp) ProtoReflect ¶
func (x *AddVoucherResp) ProtoReflect() protoreflect.Message
func (*AddVoucherResp) Reset ¶
func (x *AddVoucherResp) Reset()
func (*AddVoucherResp) String ¶
func (x *AddVoucherResp) String() string
type AuthClient ¶
type AuthClient interface { AddAuth(ctx context.Context, in *AddAuthReq, opts ...grpc.CallOption) (*AuthResp, error) RmvAuth(ctx context.Context, in *RmvAuthReq, opts ...grpc.CallOption) (*RmvAuthResp, error) AddVoucher(ctx context.Context, in *AddVoucherReq, opts ...grpc.CallOption) (*AddVoucherResp, 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 AuthResp ¶
type AuthResp struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*AuthResp) Descriptor
deprecated
func (*AuthResp) ProtoMessage ¶
func (*AuthResp) ProtoMessage()
func (*AuthResp) ProtoReflect ¶
func (x *AuthResp) ProtoReflect() protoreflect.Message
type AuthServer ¶
type AuthServer interface { AddAuth(context.Context, *AddAuthReq) (*AuthResp, error) RmvAuth(context.Context, *RmvAuthReq) (*RmvAuthResp, error) AddVoucher(context.Context, *AddVoucherReq) (*AddVoucherResp, error) }
AuthServer is the server API for Auth service. All implementations should embed UnimplementedAuthServer for forward compatibility
type CommentResp ¶
type CommentResp struct {
// contains filtered or unexported fields
}
func (*CommentResp) Descriptor
deprecated
func (*CommentResp) Descriptor() ([]byte, []int)
Deprecated: Use CommentResp.ProtoReflect.Descriptor instead.
func (*CommentResp) ProtoMessage ¶
func (*CommentResp) ProtoMessage()
func (*CommentResp) ProtoReflect ¶
func (x *CommentResp) ProtoReflect() protoreflect.Message
func (*CommentResp) Reset ¶
func (x *CommentResp) Reset()
func (*CommentResp) String ¶
func (x *CommentResp) String() string
type FndPostsReq ¶
type FndPostsReq struct { Keywords []string `protobuf:"bytes,1,rep,name=keywords,proto3" json:"keywords,omitempty"` Created *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created,proto3" json:"created,omitempty"` Updated *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated,proto3" json:"updated,omitempty"` Deleted *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=deleted,proto3" json:"deleted,omitempty"` // contains filtered or unexported fields }
func (*FndPostsReq) Descriptor
deprecated
func (*FndPostsReq) Descriptor() ([]byte, []int)
Deprecated: Use FndPostsReq.ProtoReflect.Descriptor instead.
func (*FndPostsReq) GetCreated ¶
func (x *FndPostsReq) GetCreated() *timestamppb.Timestamp
func (*FndPostsReq) GetDeleted ¶
func (x *FndPostsReq) GetDeleted() *timestamppb.Timestamp
func (*FndPostsReq) GetKeywords ¶
func (x *FndPostsReq) GetKeywords() []string
func (*FndPostsReq) GetUpdated ¶
func (x *FndPostsReq) GetUpdated() *timestamppb.Timestamp
func (*FndPostsReq) ProtoMessage ¶
func (*FndPostsReq) ProtoMessage()
func (*FndPostsReq) ProtoReflect ¶
func (x *FndPostsReq) ProtoReflect() protoreflect.Message
func (*FndPostsReq) Reset ¶
func (x *FndPostsReq) Reset()
func (*FndPostsReq) String ¶
func (x *FndPostsReq) String() string
type FndRolesReq ¶
type FndRolesReq struct { RoleIds []string `protobuf:"bytes,1,rep,name=roleIds,proto3" json:"roleIds,omitempty"` RoleNames []string `protobuf:"bytes,2,rep,name=roleNames,proto3" json:"roleNames,omitempty"` Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` Lapse uint32 `protobuf:"varint,4,opt,name=lapse,proto3" json:"lapse,omitempty"` // contains filtered or unexported fields }
func (*FndRolesReq) Descriptor
deprecated
func (*FndRolesReq) Descriptor() ([]byte, []int)
Deprecated: Use FndRolesReq.ProtoReflect.Descriptor instead.
func (*FndRolesReq) GetLapse ¶
func (x *FndRolesReq) GetLapse() uint32
func (*FndRolesReq) GetLimit ¶
func (x *FndRolesReq) GetLimit() uint32
func (*FndRolesReq) GetRoleIds ¶
func (x *FndRolesReq) GetRoleIds() []string
func (*FndRolesReq) GetRoleNames ¶
func (x *FndRolesReq) GetRoleNames() []string
func (*FndRolesReq) ProtoMessage ¶
func (*FndRolesReq) ProtoMessage()
func (*FndRolesReq) ProtoReflect ¶
func (x *FndRolesReq) ProtoReflect() protoreflect.Message
func (*FndRolesReq) Reset ¶
func (x *FndRolesReq) Reset()
func (*FndRolesReq) String ¶
func (x *FndRolesReq) String() string
type FndTypesReq ¶
type FndTypesReq struct { Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Lapse uint32 `protobuf:"varint,2,opt,name=lapse,proto3" json:"lapse,omitempty"` // contains filtered or unexported fields }
func (*FndTypesReq) Descriptor
deprecated
func (*FndTypesReq) Descriptor() ([]byte, []int)
Deprecated: Use FndTypesReq.ProtoReflect.Descriptor instead.
func (*FndTypesReq) GetLapse ¶
func (x *FndTypesReq) GetLapse() uint32
func (*FndTypesReq) GetLimit ¶
func (x *FndTypesReq) GetLimit() uint32
func (*FndTypesReq) ProtoMessage ¶
func (*FndTypesReq) ProtoMessage()
func (*FndTypesReq) ProtoReflect ¶
func (x *FndTypesReq) ProtoReflect() protoreflect.Message
func (*FndTypesReq) Reset ¶
func (x *FndTypesReq) Reset()
func (*FndTypesReq) String ¶
func (x *FndTypesReq) String() string
type FndUsersReq ¶
type FndUsersReq struct { RoleIds []string `protobuf:"bytes,1,rep,name=roleIds,proto3" json:"roleIds,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` EmailHold bool `protobuf:"varint,3,opt,name=emailHold,proto3" json:"emailHold,omitempty"` Altmail string `protobuf:"bytes,4,opt,name=altmail,proto3" json:"altmail,omitempty"` AltmailHold bool `protobuf:"varint,5,opt,name=altmailHold,proto3" json:"altmailHold,omitempty"` CreatedFirst *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=createdFirst,proto3" json:"createdFirst,omitempty"` CreatedFinal *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=createdFinal,proto3" json:"createdFinal,omitempty"` CreatedDesc bool `protobuf:"varint,8,opt,name=createdDesc,proto3" json:"createdDesc,omitempty"` Limit uint32 `protobuf:"varint,9,opt,name=limit,proto3" json:"limit,omitempty"` Lapse uint32 `protobuf:"varint,10,opt,name=lapse,proto3" json:"lapse,omitempty"` // contains filtered or unexported fields }
func (*FndUsersReq) Descriptor
deprecated
func (*FndUsersReq) Descriptor() ([]byte, []int)
Deprecated: Use FndUsersReq.ProtoReflect.Descriptor instead.
func (*FndUsersReq) GetAltmail ¶
func (x *FndUsersReq) GetAltmail() string
func (*FndUsersReq) GetAltmailHold ¶
func (x *FndUsersReq) GetAltmailHold() bool
func (*FndUsersReq) GetCreatedDesc ¶
func (x *FndUsersReq) GetCreatedDesc() bool
func (*FndUsersReq) GetCreatedFinal ¶
func (x *FndUsersReq) GetCreatedFinal() *timestamppb.Timestamp
func (*FndUsersReq) GetCreatedFirst ¶
func (x *FndUsersReq) GetCreatedFirst() *timestamppb.Timestamp
func (*FndUsersReq) GetEmail ¶
func (x *FndUsersReq) GetEmail() string
func (*FndUsersReq) GetEmailHold ¶
func (x *FndUsersReq) GetEmailHold() bool
func (*FndUsersReq) GetLapse ¶
func (x *FndUsersReq) GetLapse() uint32
func (*FndUsersReq) GetLimit ¶
func (x *FndUsersReq) GetLimit() uint32
func (*FndUsersReq) GetRoleIds ¶
func (x *FndUsersReq) GetRoleIds() []string
func (*FndUsersReq) ProtoMessage ¶
func (*FndUsersReq) ProtoMessage()
func (*FndUsersReq) ProtoReflect ¶
func (x *FndUsersReq) ProtoReflect() protoreflect.Message
func (*FndUsersReq) Reset ¶
func (x *FndUsersReq) Reset()
func (*FndUsersReq) String ¶
func (x *FndUsersReq) String() string
type OvrPostReq ¶
type OvrPostReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Req *AddPostReq `protobuf:"bytes,2,opt,name=req,proto3" json:"req,omitempty"` // contains filtered or unexported fields }
func (*OvrPostReq) Descriptor
deprecated
func (*OvrPostReq) Descriptor() ([]byte, []int)
Deprecated: Use OvrPostReq.ProtoReflect.Descriptor instead.
func (*OvrPostReq) GetId ¶
func (x *OvrPostReq) GetId() string
func (*OvrPostReq) GetReq ¶
func (x *OvrPostReq) GetReq() *AddPostReq
func (*OvrPostReq) ProtoMessage ¶
func (*OvrPostReq) ProtoMessage()
func (*OvrPostReq) ProtoReflect ¶
func (x *OvrPostReq) ProtoReflect() protoreflect.Message
func (*OvrPostReq) Reset ¶
func (x *OvrPostReq) Reset()
func (*OvrPostReq) String ¶
func (x *OvrPostReq) String() string
type OvrUserReq ¶
type OvrUserReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Req *AddUserReq `protobuf:"bytes,2,opt,name=req,proto3" json:"req,omitempty"` // contains filtered or unexported fields }
func (*OvrUserReq) Descriptor
deprecated
func (*OvrUserReq) Descriptor() ([]byte, []int)
Deprecated: Use OvrUserReq.ProtoReflect.Descriptor instead.
func (*OvrUserReq) GetId ¶
func (x *OvrUserReq) GetId() string
func (*OvrUserReq) GetReq ¶
func (x *OvrUserReq) GetReq() *AddUserReq
func (*OvrUserReq) ProtoMessage ¶
func (*OvrUserReq) ProtoMessage()
func (*OvrUserReq) ProtoReflect ¶
func (x *OvrUserReq) ProtoReflect() protoreflect.Message
func (*OvrUserReq) Reset ¶
func (x *OvrUserReq) Reset()
func (*OvrUserReq) String ¶
func (x *OvrUserReq) String() string
type PostClient ¶
type PostClient interface { AddType(ctx context.Context, in *AddTypeReq, opts ...grpc.CallOption) (*TypeResp, error) FndTypes(ctx context.Context, in *FndTypesReq, opts ...grpc.CallOption) (*TypesResp, error) AddPost(ctx context.Context, in *AddPostReq, opts ...grpc.CallOption) (*PostResp, error) FndPosts(ctx context.Context, in *FndPostsReq, opts ...grpc.CallOption) (*PostsResp, error) OvrPost(ctx context.Context, in *OvrPostReq, opts ...grpc.CallOption) (*PostResp, error) RmvPost(ctx context.Context, in *RmvPostReq, opts ...grpc.CallOption) (*RmvPostResp, 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 PostResp ¶
type PostResp struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` TypeId string `protobuf:"bytes,5,opt,name=typeId,proto3" json:"typeId,omitempty"` Created *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"` Updated *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated,proto3" json:"updated,omitempty"` Deleted *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=deleted,proto3" json:"deleted,omitempty"` Blocked *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=blocked,proto3" json:"blocked,omitempty"` // contains filtered or unexported fields }
func (*PostResp) Descriptor
deprecated
func (*PostResp) GetBlocked ¶
func (x *PostResp) GetBlocked() *timestamppb.Timestamp
func (*PostResp) GetCreated ¶
func (x *PostResp) GetCreated() *timestamppb.Timestamp
func (*PostResp) GetDeleted ¶
func (x *PostResp) GetDeleted() *timestamppb.Timestamp
func (*PostResp) GetUpdated ¶
func (x *PostResp) GetUpdated() *timestamppb.Timestamp
func (*PostResp) ProtoMessage ¶
func (*PostResp) ProtoMessage()
func (*PostResp) ProtoReflect ¶
func (x *PostResp) ProtoReflect() protoreflect.Message
type PostServer ¶
type PostServer interface { AddType(context.Context, *AddTypeReq) (*TypeResp, error) FndTypes(context.Context, *FndTypesReq) (*TypesResp, error) AddPost(context.Context, *AddPostReq) (*PostResp, error) FndPosts(context.Context, *FndPostsReq) (*PostsResp, error) OvrPost(context.Context, *OvrPostReq) (*PostResp, error) RmvPost(context.Context, *RmvPostReq) (*RmvPostResp, error) }
PostServer is the server API for Post service. All implementations should embed UnimplementedPostServer for forward compatibility
type PostsResp ¶
type PostsResp struct { Posts []*PostResp `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"` Total uint32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*PostsResp) Descriptor
deprecated
func (*PostsResp) ProtoMessage ¶
func (*PostsResp) ProtoMessage()
func (*PostsResp) ProtoReflect ¶
func (x *PostsResp) ProtoReflect() protoreflect.Message
type RmvAuthReq ¶
type RmvAuthReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*RmvAuthReq) Descriptor
deprecated
func (*RmvAuthReq) Descriptor() ([]byte, []int)
Deprecated: Use RmvAuthReq.ProtoReflect.Descriptor instead.
func (*RmvAuthReq) GetToken ¶
func (x *RmvAuthReq) GetToken() string
func (*RmvAuthReq) ProtoMessage ¶
func (*RmvAuthReq) ProtoMessage()
func (*RmvAuthReq) ProtoReflect ¶
func (x *RmvAuthReq) ProtoReflect() protoreflect.Message
func (*RmvAuthReq) Reset ¶
func (x *RmvAuthReq) Reset()
func (*RmvAuthReq) String ¶
func (x *RmvAuthReq) String() string
type RmvAuthResp ¶
type RmvAuthResp struct {
// contains filtered or unexported fields
}
func (*RmvAuthResp) Descriptor
deprecated
func (*RmvAuthResp) Descriptor() ([]byte, []int)
Deprecated: Use RmvAuthResp.ProtoReflect.Descriptor instead.
func (*RmvAuthResp) ProtoMessage ¶
func (*RmvAuthResp) ProtoMessage()
func (*RmvAuthResp) ProtoReflect ¶
func (x *RmvAuthResp) ProtoReflect() protoreflect.Message
func (*RmvAuthResp) Reset ¶
func (x *RmvAuthResp) Reset()
func (*RmvAuthResp) String ¶
func (x *RmvAuthResp) String() string
type RmvPostReq ¶
type RmvPostReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RmvPostReq) Descriptor
deprecated
func (*RmvPostReq) Descriptor() ([]byte, []int)
Deprecated: Use RmvPostReq.ProtoReflect.Descriptor instead.
func (*RmvPostReq) GetId ¶
func (x *RmvPostReq) GetId() string
func (*RmvPostReq) ProtoMessage ¶
func (*RmvPostReq) ProtoMessage()
func (*RmvPostReq) ProtoReflect ¶
func (x *RmvPostReq) ProtoReflect() protoreflect.Message
func (*RmvPostReq) Reset ¶
func (x *RmvPostReq) Reset()
func (*RmvPostReq) String ¶
func (x *RmvPostReq) String() string
type RmvPostResp ¶
type RmvPostResp struct {
// contains filtered or unexported fields
}
func (*RmvPostResp) Descriptor
deprecated
func (*RmvPostResp) Descriptor() ([]byte, []int)
Deprecated: Use RmvPostResp.ProtoReflect.Descriptor instead.
func (*RmvPostResp) ProtoMessage ¶
func (*RmvPostResp) ProtoMessage()
func (*RmvPostResp) ProtoReflect ¶
func (x *RmvPostResp) ProtoReflect() protoreflect.Message
func (*RmvPostResp) Reset ¶
func (x *RmvPostResp) Reset()
func (*RmvPostResp) String ¶
func (x *RmvPostResp) String() string
type RmvUserReq ¶
type RmvUserReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RmvUserReq) Descriptor
deprecated
func (*RmvUserReq) Descriptor() ([]byte, []int)
Deprecated: Use RmvUserReq.ProtoReflect.Descriptor instead.
func (*RmvUserReq) GetId ¶
func (x *RmvUserReq) GetId() string
func (*RmvUserReq) ProtoMessage ¶
func (*RmvUserReq) ProtoMessage()
func (*RmvUserReq) ProtoReflect ¶
func (x *RmvUserReq) ProtoReflect() protoreflect.Message
func (*RmvUserReq) Reset ¶
func (x *RmvUserReq) Reset()
func (*RmvUserReq) String ¶
func (x *RmvUserReq) String() string
type RmvUserResp ¶
type RmvUserResp struct {
// contains filtered or unexported fields
}
func (*RmvUserResp) Descriptor
deprecated
func (*RmvUserResp) Descriptor() ([]byte, []int)
Deprecated: Use RmvUserResp.ProtoReflect.Descriptor instead.
func (*RmvUserResp) ProtoMessage ¶
func (*RmvUserResp) ProtoMessage()
func (*RmvUserResp) ProtoReflect ¶
func (x *RmvUserResp) ProtoReflect() protoreflect.Message
func (*RmvUserResp) Reset ¶
func (x *RmvUserResp) Reset()
func (*RmvUserResp) String ¶
func (x *RmvUserResp) String() string
type RoleResp ¶
type RoleResp struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*RoleResp) Descriptor
deprecated
func (*RoleResp) ProtoMessage ¶
func (*RoleResp) ProtoMessage()
func (*RoleResp) ProtoReflect ¶
func (x *RoleResp) ProtoReflect() protoreflect.Message
type RolesResp ¶
type RolesResp struct { Items []*RoleResp `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Total uint32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*RolesResp) Descriptor
deprecated
func (*RolesResp) ProtoMessage ¶
func (*RolesResp) ProtoMessage()
func (*RolesResp) ProtoReflect ¶
func (x *RolesResp) ProtoReflect() protoreflect.Message
type TypeResp ¶
type TypeResp struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*TypeResp) Descriptor
deprecated
func (*TypeResp) ProtoMessage ¶
func (*TypeResp) ProtoMessage()
func (*TypeResp) ProtoReflect ¶
func (x *TypeResp) ProtoReflect() protoreflect.Message
type TypesResp ¶
type TypesResp struct { Items []*TypeResp `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Total uint32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*TypesResp) Descriptor
deprecated
func (*TypesResp) ProtoMessage ¶
func (*TypesResp) ProtoMessage()
func (*TypesResp) ProtoReflect ¶
func (x *TypesResp) ProtoReflect() protoreflect.Message
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer should be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) AddAuth ¶
func (UnimplementedAuthServer) AddAuth(context.Context, *AddAuthReq) (*AuthResp, error)
func (UnimplementedAuthServer) AddVoucher ¶
func (UnimplementedAuthServer) AddVoucher(context.Context, *AddVoucherReq) (*AddVoucherResp, error)
func (UnimplementedAuthServer) RmvAuth ¶
func (UnimplementedAuthServer) RmvAuth(context.Context, *RmvAuthReq) (*RmvAuthResp, error)
type UnimplementedPostServer ¶
type UnimplementedPostServer struct { }
UnimplementedPostServer should be embedded to have forward compatible implementations.
func (UnimplementedPostServer) AddPost ¶
func (UnimplementedPostServer) AddPost(context.Context, *AddPostReq) (*PostResp, error)
func (UnimplementedPostServer) AddType ¶
func (UnimplementedPostServer) AddType(context.Context, *AddTypeReq) (*TypeResp, error)
func (UnimplementedPostServer) FndPosts ¶
func (UnimplementedPostServer) FndPosts(context.Context, *FndPostsReq) (*PostsResp, error)
func (UnimplementedPostServer) FndTypes ¶
func (UnimplementedPostServer) FndTypes(context.Context, *FndTypesReq) (*TypesResp, error)
func (UnimplementedPostServer) OvrPost ¶
func (UnimplementedPostServer) OvrPost(context.Context, *OvrPostReq) (*PostResp, error)
func (UnimplementedPostServer) RmvPost ¶
func (UnimplementedPostServer) RmvPost(context.Context, *RmvPostReq) (*RmvPostResp, error)
type UnimplementedUserSvcServer ¶
type UnimplementedUserSvcServer struct { }
UnimplementedUserSvcServer should be embedded to have forward compatible implementations.
func (UnimplementedUserSvcServer) AddRole ¶
func (UnimplementedUserSvcServer) AddRole(context.Context, *AddRoleReq) (*RoleResp, error)
func (UnimplementedUserSvcServer) AddUser ¶
func (UnimplementedUserSvcServer) AddUser(context.Context, *AddUserReq) (*UserResp, error)
func (UnimplementedUserSvcServer) FndRoles ¶
func (UnimplementedUserSvcServer) FndRoles(context.Context, *FndRolesReq) (*RolesResp, error)
func (UnimplementedUserSvcServer) FndUsers ¶
func (UnimplementedUserSvcServer) FndUsers(context.Context, *FndUsersReq) (*UsersResp, error)
func (UnimplementedUserSvcServer) OvrUser ¶
func (UnimplementedUserSvcServer) OvrUser(context.Context, *OvrUserReq) (*UserResp, error)
func (UnimplementedUserSvcServer) RmvUser ¶
func (UnimplementedUserSvcServer) RmvUser(context.Context, *RmvUserReq) (*RmvUserResp, 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 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 UnsafeUserSvcServer ¶
type UnsafeUserSvcServer interface {
// contains filtered or unexported methods
}
UnsafeUserSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserSvcServer will result in compilation errors.
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` EmailHold bool `protobuf:"varint,4,opt,name=emailHold,proto3" json:"emailHold,omitempty"` Altmail string `protobuf:"bytes,5,opt,name=altmail,proto3" json:"altmail,omitempty"` AltmailHold bool `protobuf:"varint,6,opt,name=altmailHold,proto3" json:"altmailHold,omitempty"` FullName string `protobuf:"bytes,7,opt,name=fullName,proto3" json:"fullName,omitempty"` Avatar string `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"` Roles []*RoleResp `protobuf:"bytes,9,rep,name=roles,proto3" json:"roles,omitempty"` LastLogin *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=lastLogin,proto3" json:"lastLogin,omitempty"` Created *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=created,proto3" json:"created,omitempty"` Updated *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=updated,proto3" json:"updated,omitempty"` Deleted *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=deleted,proto3" json:"deleted,omitempty"` Blocked *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=blocked,proto3" json:"blocked,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAltmail ¶
func (*User) GetAltmailHold ¶
func (*User) GetBlocked ¶
func (x *User) GetBlocked() *timestamppb.Timestamp
func (*User) GetCreated ¶
func (x *User) GetCreated() *timestamppb.Timestamp
func (*User) GetDeleted ¶
func (x *User) GetDeleted() *timestamppb.Timestamp
func (*User) GetEmailHold ¶
func (*User) GetFullName ¶
func (*User) GetLastLogin ¶
func (x *User) GetLastLogin() *timestamppb.Timestamp
func (*User) GetUpdated ¶
func (x *User) GetUpdated() *timestamppb.Timestamp
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserResp ¶
type UserResp struct { Item *User `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*UserResp) Descriptor
deprecated
func (*UserResp) ProtoMessage ¶
func (*UserResp) ProtoMessage()
func (*UserResp) ProtoReflect ¶
func (x *UserResp) ProtoReflect() protoreflect.Message
type UserSvcClient ¶
type UserSvcClient interface { AddRole(ctx context.Context, in *AddRoleReq, opts ...grpc.CallOption) (*RoleResp, error) FndRoles(ctx context.Context, in *FndRolesReq, opts ...grpc.CallOption) (*RolesResp, error) AddUser(ctx context.Context, in *AddUserReq, opts ...grpc.CallOption) (*UserResp, error) OvrUser(ctx context.Context, in *OvrUserReq, opts ...grpc.CallOption) (*UserResp, error) FndUsers(ctx context.Context, in *FndUsersReq, opts ...grpc.CallOption) (*UsersResp, error) RmvUser(ctx context.Context, in *RmvUserReq, opts ...grpc.CallOption) (*RmvUserResp, error) }
UserSvcClient is the client API for UserSvc 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 NewUserSvcClient ¶
func NewUserSvcClient(cc grpc.ClientConnInterface) UserSvcClient
type UserSvcServer ¶
type UserSvcServer interface { AddRole(context.Context, *AddRoleReq) (*RoleResp, error) FndRoles(context.Context, *FndRolesReq) (*RolesResp, error) AddUser(context.Context, *AddUserReq) (*UserResp, error) OvrUser(context.Context, *OvrUserReq) (*UserResp, error) FndUsers(context.Context, *FndUsersReq) (*UsersResp, error) RmvUser(context.Context, *RmvUserReq) (*RmvUserResp, error) }
UserSvcServer is the server API for UserSvc service. All implementations should embed UnimplementedUserSvcServer for forward compatibility
type UsersResp ¶
type UsersResp struct { Items []*User `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` Total uint32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*UsersResp) Descriptor
deprecated
func (*UsersResp) ProtoMessage ¶
func (*UsersResp) ProtoMessage()
func (*UsersResp) ProtoReflect ¶
func (x *UsersResp) ProtoReflect() protoreflect.Message