proto

package
v0.0.0-...-dcf5b65 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_users_proto protoreflect.FileDescriptor
View Source
var UsersService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "users.UsersService",
	HandlerType: (*UsersServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _UsersService_CreateUser_Handler,
		},
		{
			MethodName: "GetUserByID",
			Handler:    _UsersService_GetUserByID_Handler,
		},
		{
			MethodName: "GetUsers",
			Handler:    _UsersService_GetUsers_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UsersService_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UsersService_DeleteUser_Handler,
		},
		{
			MethodName: "CreateBadge",
			Handler:    _UsersService_CreateBadge_Handler,
		},
		{
			MethodName: "GetBadgeByID",
			Handler:    _UsersService_GetBadgeByID_Handler,
		},
		{
			MethodName: "GetBadges",
			Handler:    _UsersService_GetBadges_Handler,
		},
		{
			MethodName: "UpdateBadge",
			Handler:    _UsersService_UpdateBadge_Handler,
		},
		{
			MethodName: "DeleteBadge",
			Handler:    _UsersService_DeleteBadge_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/users.proto",
}

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

Functions

func RegisterUsersServiceServer

func RegisterUsersServiceServer(s grpc.ServiceRegistrar, srv UsersServiceServer)

Types

type Badge

type Badge struct {
	CurrentLevel                  int64                  `protobuf:"varint,1,opt,name=current_level,json=currentLevel,proto3" json:"current_level,omitempty"`
	DisplayName                   string                 `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	Id                            string                 `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Points                        int64                  `protobuf:"varint,4,opt,name=points,proto3" json:"points,omitempty"`
	ProgressPercentageToNextLevel int64                  `` /* 155-byte string literal not displayed */
	LinesOfCodeToNextLevel        int64                  `` /* 136-byte string literal not displayed */
	TimeCreated                   *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=time_created,json=timeCreated,proto3" json:"time_created,omitempty"`
	TimeUpdated                   *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=time_updated,json=timeUpdated,proto3" json:"time_updated,omitempty"`
	UserId                        string                 `protobuf:"bytes,9,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Badge) Descriptor deprecated

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

Deprecated: Use Badge.ProtoReflect.Descriptor instead.

func (*Badge) GetCurrentLevel

func (x *Badge) GetCurrentLevel() int64

func (*Badge) GetDisplayName

func (x *Badge) GetDisplayName() string

func (*Badge) GetId

func (x *Badge) GetId() string

func (*Badge) GetLinesOfCodeToNextLevel

func (x *Badge) GetLinesOfCodeToNextLevel() int64

func (*Badge) GetPoints

func (x *Badge) GetPoints() int64

func (*Badge) GetProgressPercentageToNextLevel

func (x *Badge) GetProgressPercentageToNextLevel() int64

func (*Badge) GetTimeCreated

func (x *Badge) GetTimeCreated() *timestamppb.Timestamp

func (*Badge) GetTimeUpdated

func (x *Badge) GetTimeUpdated() *timestamppb.Timestamp

func (*Badge) GetUserId

func (x *Badge) GetUserId() string

func (*Badge) ProtoMessage

func (*Badge) ProtoMessage()

func (*Badge) ProtoReflect

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

func (*Badge) Reset

func (x *Badge) Reset()

func (*Badge) String

func (x *Badge) String() string

type CursorCheckpoints

type CursorCheckpoints struct {
	PullRequests string `protobuf:"bytes,1,opt,name=pull_requests,json=pullRequests,proto3" json:"pull_requests,omitempty"`
	// contains filtered or unexported fields
}

func (*CursorCheckpoints) Descriptor deprecated

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

Deprecated: Use CursorCheckpoints.ProtoReflect.Descriptor instead.

func (*CursorCheckpoints) GetPullRequests

func (x *CursorCheckpoints) GetPullRequests() string

func (*CursorCheckpoints) ProtoMessage

func (*CursorCheckpoints) ProtoMessage()

func (*CursorCheckpoints) ProtoReflect

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

func (*CursorCheckpoints) Reset

func (x *CursorCheckpoints) Reset()

func (*CursorCheckpoints) String

func (x *CursorCheckpoints) String() string

type GetBadgesRequest

type GetBadgesRequest struct {
	Before *string  `protobuf:"bytes,1,opt,name=before,proto3,oneof" json:"before,omitempty"`
	After  *string  `protobuf:"bytes,2,opt,name=after,proto3,oneof" json:"after,omitempty"`
	First  *int64   `protobuf:"varint,3,opt,name=first,proto3,oneof" json:"first,omitempty"`
	Last   *int64   `protobuf:"varint,4,opt,name=last,proto3,oneof" json:"last,omitempty"`
	Ids    []string `protobuf:"bytes,5,rep,name=ids,proto3" json:"ids,omitempty"`
	UserId *string  `protobuf:"bytes,6,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBadgesRequest) Descriptor deprecated

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

Deprecated: Use GetBadgesRequest.ProtoReflect.Descriptor instead.

func (*GetBadgesRequest) GetAfter

func (x *GetBadgesRequest) GetAfter() string

func (*GetBadgesRequest) GetBefore

func (x *GetBadgesRequest) GetBefore() string

func (*GetBadgesRequest) GetFirst

func (x *GetBadgesRequest) GetFirst() int64

func (*GetBadgesRequest) GetIds

func (x *GetBadgesRequest) GetIds() []string

func (*GetBadgesRequest) GetLast

func (x *GetBadgesRequest) GetLast() int64

func (*GetBadgesRequest) GetUserId

func (x *GetBadgesRequest) GetUserId() string

func (*GetBadgesRequest) ProtoMessage

func (*GetBadgesRequest) ProtoMessage()

func (*GetBadgesRequest) ProtoReflect

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

func (*GetBadgesRequest) Reset

func (x *GetBadgesRequest) Reset()

func (*GetBadgesRequest) String

func (x *GetBadgesRequest) String() string

type GetBadgesResponse

type GetBadgesResponse struct {
	HasNext     bool     `protobuf:"varint,1,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"`
	HasPrevious bool     `protobuf:"varint,2,opt,name=has_previous,json=hasPrevious,proto3" json:"has_previous,omitempty"`
	FirstCursor string   `protobuf:"bytes,3,opt,name=first_cursor,json=firstCursor,proto3" json:"first_cursor,omitempty"`
	LastCursor  string   `protobuf:"bytes,4,opt,name=last_cursor,json=lastCursor,proto3" json:"last_cursor,omitempty"`
	Data        []*Badge `protobuf:"bytes,5,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBadgesResponse) Descriptor deprecated

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

Deprecated: Use GetBadgesResponse.ProtoReflect.Descriptor instead.

func (*GetBadgesResponse) GetData

func (x *GetBadgesResponse) GetData() []*Badge

func (*GetBadgesResponse) GetFirstCursor

func (x *GetBadgesResponse) GetFirstCursor() string

func (*GetBadgesResponse) GetHasNext

func (x *GetBadgesResponse) GetHasNext() bool

func (*GetBadgesResponse) GetHasPrevious

func (x *GetBadgesResponse) GetHasPrevious() bool

func (*GetBadgesResponse) GetLastCursor

func (x *GetBadgesResponse) GetLastCursor() string

func (*GetBadgesResponse) ProtoMessage

func (*GetBadgesResponse) ProtoMessage()

func (*GetBadgesResponse) ProtoReflect

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

func (*GetBadgesResponse) Reset

func (x *GetBadgesResponse) Reset()

func (*GetBadgesResponse) String

func (x *GetBadgesResponse) String() string

type GetUsersRequest

type GetUsersRequest struct {
	Before *string  `protobuf:"bytes,1,opt,name=before,proto3,oneof" json:"before,omitempty"`
	After  *string  `protobuf:"bytes,2,opt,name=after,proto3,oneof" json:"after,omitempty"`
	First  *int64   `protobuf:"varint,3,opt,name=first,proto3,oneof" json:"first,omitempty"`
	Last   *int64   `protobuf:"varint,4,opt,name=last,proto3,oneof" json:"last,omitempty"`
	Ids    []string `protobuf:"bytes,5,rep,name=ids,proto3" json:"ids,omitempty"`
	Search *string  `protobuf:"bytes,6,opt,name=search,proto3,oneof" json:"search,omitempty"`
	Handle *string  `protobuf:"bytes,7,opt,name=handle,proto3,oneof" json:"handle,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersRequest) Descriptor deprecated

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

Deprecated: Use GetUsersRequest.ProtoReflect.Descriptor instead.

func (*GetUsersRequest) GetAfter

func (x *GetUsersRequest) GetAfter() string

func (*GetUsersRequest) GetBefore

func (x *GetUsersRequest) GetBefore() string

func (*GetUsersRequest) GetFirst

func (x *GetUsersRequest) GetFirst() int64

func (*GetUsersRequest) GetHandle

func (x *GetUsersRequest) GetHandle() string

func (*GetUsersRequest) GetIds

func (x *GetUsersRequest) GetIds() []string

func (*GetUsersRequest) GetLast

func (x *GetUsersRequest) GetLast() int64

func (*GetUsersRequest) GetSearch

func (x *GetUsersRequest) GetSearch() string

func (*GetUsersRequest) ProtoMessage

func (*GetUsersRequest) ProtoMessage()

func (*GetUsersRequest) ProtoReflect

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

func (*GetUsersRequest) Reset

func (x *GetUsersRequest) Reset()

func (*GetUsersRequest) String

func (x *GetUsersRequest) String() string

type GetUsersResponse

type GetUsersResponse struct {
	HasNext     bool    `protobuf:"varint,1,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"`
	HasPrevious bool    `protobuf:"varint,2,opt,name=has_previous,json=hasPrevious,proto3" json:"has_previous,omitempty"`
	FirstCursor string  `protobuf:"bytes,3,opt,name=first_cursor,json=firstCursor,proto3" json:"first_cursor,omitempty"`
	LastCursor  string  `protobuf:"bytes,4,opt,name=last_cursor,json=lastCursor,proto3" json:"last_cursor,omitempty"`
	Data        []*User `protobuf:"bytes,5,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersResponse) Descriptor deprecated

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

Deprecated: Use GetUsersResponse.ProtoReflect.Descriptor instead.

func (*GetUsersResponse) GetData

func (x *GetUsersResponse) GetData() []*User

func (*GetUsersResponse) GetFirstCursor

func (x *GetUsersResponse) GetFirstCursor() string

func (*GetUsersResponse) GetHasNext

func (x *GetUsersResponse) GetHasNext() bool

func (*GetUsersResponse) GetHasPrevious

func (x *GetUsersResponse) GetHasPrevious() bool

func (*GetUsersResponse) GetLastCursor

func (x *GetUsersResponse) GetLastCursor() string

func (*GetUsersResponse) ProtoMessage

func (*GetUsersResponse) ProtoMessage()

func (*GetUsersResponse) ProtoReflect

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

func (*GetUsersResponse) Reset

func (x *GetUsersResponse) Reset()

func (*GetUsersResponse) String

func (x *GetUsersResponse) String() string

type RefByIDRequest

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

func (*RefByIDRequest) Descriptor deprecated

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

Deprecated: Use RefByIDRequest.ProtoReflect.Descriptor instead.

func (*RefByIDRequest) GetId

func (x *RefByIDRequest) GetId() string

func (*RefByIDRequest) ProtoMessage

func (*RefByIDRequest) ProtoMessage()

func (*RefByIDRequest) ProtoReflect

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

func (*RefByIDRequest) Reset

func (x *RefByIDRequest) Reset()

func (*RefByIDRequest) String

func (x *RefByIDRequest) String() string

type StatusResponse

type StatusResponse struct {
	Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusResponse) Descriptor deprecated

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

Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.

func (*StatusResponse) GetStatus

func (x *StatusResponse) GetStatus() bool

func (*StatusResponse) ProtoMessage

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) ProtoReflect

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

func (*StatusResponse) Reset

func (x *StatusResponse) Reset()

func (*StatusResponse) String

func (x *StatusResponse) String() string

type Tags

type Tags struct {
	Languages   []string `protobuf:"bytes,1,rep,name=languages,proto3" json:"languages,omitempty"`
	RecentRepos []string `protobuf:"bytes,2,rep,name=recent_repos,json=recentRepos,proto3" json:"recent_repos,omitempty"`
	Topics      []string `protobuf:"bytes,3,rep,name=topics,proto3" json:"topics,omitempty"`
	// contains filtered or unexported fields
}

func (*Tags) Descriptor deprecated

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

Deprecated: Use Tags.ProtoReflect.Descriptor instead.

func (*Tags) GetLanguages

func (x *Tags) GetLanguages() []string

func (*Tags) GetRecentRepos

func (x *Tags) GetRecentRepos() []string

func (*Tags) GetTopics

func (x *Tags) GetTopics() []string

func (*Tags) ProtoMessage

func (*Tags) ProtoMessage()

func (*Tags) ProtoReflect

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

func (*Tags) Reset

func (x *Tags) Reset()

func (*Tags) String

func (x *Tags) String() string

type Token

type Token struct {
	AccessToken  string                 `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	Expiry       *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiry,proto3" json:"expiry,omitempty"`
	RefreshToken string                 `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	TokenType    string                 `protobuf:"bytes,4,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"`
	// contains filtered or unexported fields
}

func (*Token) Descriptor deprecated

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

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetAccessToken

func (x *Token) GetAccessToken() string

func (*Token) GetExpiry

func (x *Token) GetExpiry() *timestamppb.Timestamp

func (*Token) GetRefreshToken

func (x *Token) GetRefreshToken() string

func (*Token) GetTokenType

func (x *Token) GetTokenType() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

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

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type UnimplementedUsersServiceServer

type UnimplementedUsersServiceServer struct {
}

UnimplementedUsersServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUsersServiceServer) CreateBadge

func (UnimplementedUsersServiceServer) CreateUser

func (UnimplementedUsersServiceServer) DeleteBadge

func (UnimplementedUsersServiceServer) DeleteUser

func (UnimplementedUsersServiceServer) GetBadgeByID

func (UnimplementedUsersServiceServer) GetBadges

func (UnimplementedUsersServiceServer) GetUserByID

func (UnimplementedUsersServiceServer) GetUsers

func (UnimplementedUsersServiceServer) UpdateBadge

func (UnimplementedUsersServiceServer) UpdateUser

type UnsafeUsersServiceServer

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

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

type UpdateBadgeRequest

type UpdateBadgeRequest struct {
	Id                            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CurrentLevel                  *int64                 `protobuf:"varint,2,opt,name=current_level,json=currentLevel,proto3,oneof" json:"current_level,omitempty"`
	Points                        *int64                 `protobuf:"varint,3,opt,name=points,proto3,oneof" json:"points,omitempty"`
	ProgressPercentageToNextLevel *int64                 `` /* 161-byte string literal not displayed */
	LinesOfCodeToNextLevel        *int64                 `` /* 142-byte string literal not displayed */
	TimeUpdated                   *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=time_updated,json=timeUpdated,proto3,oneof" json:"time_updated,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateBadgeRequest) Descriptor deprecated

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

Deprecated: Use UpdateBadgeRequest.ProtoReflect.Descriptor instead.

func (*UpdateBadgeRequest) GetCurrentLevel

func (x *UpdateBadgeRequest) GetCurrentLevel() int64

func (*UpdateBadgeRequest) GetId

func (x *UpdateBadgeRequest) GetId() string

func (*UpdateBadgeRequest) GetLinesOfCodeToNextLevel

func (x *UpdateBadgeRequest) GetLinesOfCodeToNextLevel() int64

func (*UpdateBadgeRequest) GetPoints

func (x *UpdateBadgeRequest) GetPoints() int64

func (*UpdateBadgeRequest) GetProgressPercentageToNextLevel

func (x *UpdateBadgeRequest) GetProgressPercentageToNextLevel() int64

func (*UpdateBadgeRequest) GetTimeUpdated

func (x *UpdateBadgeRequest) GetTimeUpdated() *timestamppb.Timestamp

func (*UpdateBadgeRequest) ProtoMessage

func (*UpdateBadgeRequest) ProtoMessage()

func (*UpdateBadgeRequest) ProtoReflect

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

func (*UpdateBadgeRequest) Reset

func (x *UpdateBadgeRequest) Reset()

func (*UpdateBadgeRequest) String

func (x *UpdateBadgeRequest) String() string

type UpdateUserRequest

type UpdateUserRequest struct {
	Id                string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CursorCheckpoints *CursorCheckpoints     `protobuf:"bytes,2,opt,name=cursor_checkpoints,json=cursorCheckpoints,proto3,oneof" json:"cursor_checkpoints,omitempty"`
	Name              *string                `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Tags              *Tags                  `protobuf:"bytes,4,opt,name=tags,proto3,oneof" json:"tags,omitempty"`
	TimeUpdated       *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=time_updated,json=timeUpdated,proto3,oneof" json:"time_updated,omitempty"`
	Token             *Token                 `protobuf:"bytes,6,opt,name=token,proto3,oneof" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetCursorCheckpoints

func (x *UpdateUserRequest) GetCursorCheckpoints() *CursorCheckpoints

func (*UpdateUserRequest) GetId

func (x *UpdateUserRequest) GetId() string

func (*UpdateUserRequest) GetName

func (x *UpdateUserRequest) GetName() string

func (*UpdateUserRequest) GetTags

func (x *UpdateUserRequest) GetTags() *Tags

func (*UpdateUserRequest) GetTimeUpdated

func (x *UpdateUserRequest) GetTimeUpdated() *timestamppb.Timestamp

func (*UpdateUserRequest) GetToken

func (x *UpdateUserRequest) GetToken() *Token

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type User

type User struct {
	CursorCheckpoints *CursorCheckpoints     `protobuf:"bytes,1,opt,name=cursor_checkpoints,json=cursorCheckpoints,proto3" json:"cursor_checkpoints,omitempty"`
	Handle            string                 `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"`
	Id                string                 `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Name              string                 `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Tags              *Tags                  `protobuf:"bytes,5,opt,name=tags,proto3" json:"tags,omitempty"`
	TimeCreated       *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=time_created,json=timeCreated,proto3" json:"time_created,omitempty"`
	TimeUpdated       *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=time_updated,json=timeUpdated,proto3" json:"time_updated,omitempty"`
	Token             *Token                 `protobuf:"bytes,8,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCursorCheckpoints

func (x *User) GetCursorCheckpoints() *CursorCheckpoints

func (*User) GetHandle

func (x *User) GetHandle() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetTags

func (x *User) GetTags() *Tags

func (*User) GetTimeCreated

func (x *User) GetTimeCreated() *timestamppb.Timestamp

func (*User) GetTimeUpdated

func (x *User) GetTimeUpdated() *timestamppb.Timestamp

func (*User) GetToken

func (x *User) GetToken() *Token

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UsersServiceClient

type UsersServiceClient interface {
	// users crud operations
	CreateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error)
	GetUserByID(ctx context.Context, in *RefByIDRequest, opts ...grpc.CallOption) (*User, error)
	GetUsers(ctx context.Context, in *GetUsersRequest, opts ...grpc.CallOption) (*GetUsersResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*StatusResponse, error)
	DeleteUser(ctx context.Context, in *RefByIDRequest, opts ...grpc.CallOption) (*StatusResponse, error)
	// badges crud operations
	CreateBadge(ctx context.Context, in *Badge, opts ...grpc.CallOption) (*Badge, error)
	GetBadgeByID(ctx context.Context, in *RefByIDRequest, opts ...grpc.CallOption) (*Badge, error)
	GetBadges(ctx context.Context, in *GetBadgesRequest, opts ...grpc.CallOption) (*GetBadgesResponse, error)
	UpdateBadge(ctx context.Context, in *UpdateBadgeRequest, opts ...grpc.CallOption) (*StatusResponse, error)
	DeleteBadge(ctx context.Context, in *RefByIDRequest, opts ...grpc.CallOption) (*StatusResponse, error)
}

UsersServiceClient is the client API for UsersService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UsersServiceServer

type UsersServiceServer interface {
	// users crud operations
	CreateUser(context.Context, *User) (*User, error)
	GetUserByID(context.Context, *RefByIDRequest) (*User, error)
	GetUsers(context.Context, *GetUsersRequest) (*GetUsersResponse, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*StatusResponse, error)
	DeleteUser(context.Context, *RefByIDRequest) (*StatusResponse, error)
	// badges crud operations
	CreateBadge(context.Context, *Badge) (*Badge, error)
	GetBadgeByID(context.Context, *RefByIDRequest) (*Badge, error)
	GetBadges(context.Context, *GetBadgesRequest) (*GetBadgesResponse, error)
	UpdateBadge(context.Context, *UpdateBadgeRequest) (*StatusResponse, error)
	DeleteBadge(context.Context, *RefByIDRequest) (*StatusResponse, error)
	// contains filtered or unexported methods
}

UsersServiceServer is the server API for UsersService service. All implementations must embed UnimplementedUsersServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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