Documentation
¶
Overview ¶
Package sgtmpb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterWebAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterWebAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WebAPIClient) error
- func RegisterWebAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterWebAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WebAPIServer) error
- func RegisterWebAPIServer(s grpc.ServiceRegistrar, srv WebAPIServer)
- type Me
- type Me_Request
- type Me_Response
- type Ping
- type Ping_Request
- type Ping_Response
- type Post
- func (p *Post) ApplyDefaults()
- func (p *Post) CanonicalURL() string
- func (*Post) Descriptor() ([]byte, []int)deprecated
- func (p *Post) Filter()
- func (x *Post) GetArtworkURL() string
- func (x *Post) GetAttachmentFilename() string
- func (x *Post) GetAuthor() *User
- func (x *Post) GetAuthorID() int64
- func (x *Post) GetBPM() float64
- func (x *Post) GetBody() string
- func (x *Post) GetCreatedAt() int64
- func (x *Post) GetDeletedAt() int64
- func (x *Post) GetDownloadURL() string
- func (x *Post) GetDuration() uint64
- func (x *Post) GetFileExtension() string
- func (x *Post) GetGenre() stringdeprecated
- func (x *Post) GetID() int64
- func (x *Post) GetIPFSCID() string
- func (x *Post) GetISRC() string
- func (x *Post) GetKeySignature() string
- func (x *Post) GetKind() Post_Kind
- func (x *Post) GetLyrics() string
- func (x *Post) GetMIMEType() string
- func (x *Post) GetProcessingError() string
- func (x *Post) GetProcessingVersion() int64
- func (x *Post) GetProvider() Provider
- func (x *Post) GetProviderCreatedAt() int64
- func (x *Post) GetProviderDescription() string
- func (x *Post) GetProviderMetadata() string
- func (x *Post) GetProviderTitle() string
- func (x *Post) GetProviderUpdatedAt() int64
- func (x *Post) GetRelationshipsAsSource() []*Relationship
- func (x *Post) GetRelationshipsAsTarget() []*Relationship
- func (x *Post) GetSizeBytes() int64
- func (x *Post) GetSlug() string
- func (x *Post) GetSortDate() int64
- func (x *Post) GetSoundCloudID() uint64
- func (x *Post) GetSoundCloudKind() Post_SoundCloudKind
- func (x *Post) GetSoundCloudSecretToken() string
- func (x *Post) GetTags() string
- func (x *Post) GetTargetMetadata() string
- func (x *Post) GetTargetPost() *Post
- func (x *Post) GetTargetPostID() int64
- func (x *Post) GetTargetUser() *User
- func (x *Post) GetTargetUserID() int64
- func (x *Post) GetTitle() string
- func (x *Post) GetURL() string
- func (x *Post) GetUpdatedAt() int64
- func (x *Post) GetVisibility() Visibility
- func (p *Post) GoDuration() time.Duration
- func (p *Post) IsIPFS() bool
- func (p *Post) IsSoundCloud() bool
- func (*Post) ProtoMessage()
- func (x *Post) ProtoReflect() protoreflect.Message
- func (x *Post) Reset()
- func (p *Post) SafeDescription() string
- func (p *Post) SafeLyrics() string
- func (p *Post) SafeTitle() string
- func (x *Post) String() string
- func (p *Post) TagList() []string
- type PostByKind
- type PostList
- type PostList_Request
- type PostList_Response
- type PostSync
- type PostSync_Request
- type PostSync_Response
- type Post_Kind
- type Post_SoundCloudKind
- func (Post_SoundCloudKind) Descriptor() protoreflect.EnumDescriptor
- func (x Post_SoundCloudKind) Enum() *Post_SoundCloudKind
- func (Post_SoundCloudKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x Post_SoundCloudKind) Number() protoreflect.EnumNumber
- func (x Post_SoundCloudKind) String() string
- func (Post_SoundCloudKind) Type() protoreflect.EnumType
- type Provider
- type Register
- type Register_Request
- func (*Register_Request) Descriptor() ([]byte, []int)deprecated
- func (x *Register_Request) GetEmail() string
- func (x *Register_Request) GetFirstname() string
- func (x *Register_Request) GetLastname() string
- func (x *Register_Request) GetSlug() string
- func (*Register_Request) ProtoMessage()
- func (x *Register_Request) ProtoReflect() protoreflect.Message
- func (x *Register_Request) Reset()
- func (x *Register_Request) String() string
- type Register_Response
- type Relationship
- func (*Relationship) Descriptor() ([]byte, []int)deprecated
- func (x *Relationship) GetCreatedAt() int64
- func (x *Relationship) GetDeletedAt() int64
- func (x *Relationship) GetID() int64
- func (x *Relationship) GetKind() Relationship_Kind
- func (x *Relationship) GetMetadata() string
- func (x *Relationship) GetSourcePost() *Post
- func (x *Relationship) GetSourcePostID() int64
- func (x *Relationship) GetSourceRaw() string
- func (x *Relationship) GetSourceUser() *User
- func (x *Relationship) GetSourceUserID() int64
- func (x *Relationship) GetTargetPost() *Post
- func (x *Relationship) GetTargetPostID() int64
- func (x *Relationship) GetTargetRaw() string
- func (x *Relationship) GetTargetUser() *User
- func (x *Relationship) GetTargetUserID() int64
- func (x *Relationship) GetUpdatedAt() int64
- func (*Relationship) ProtoMessage()
- func (x *Relationship) ProtoReflect() protoreflect.Message
- func (x *Relationship) Reset()
- func (x *Relationship) String() string
- type Relationship_Kind
- func (Relationship_Kind) Descriptor() protoreflect.EnumDescriptor
- func (x Relationship_Kind) Enum() *Relationship_Kind
- func (Relationship_Kind) EnumDescriptor() ([]byte, []int)deprecated
- func (x Relationship_Kind) Number() protoreflect.EnumNumber
- func (x Relationship_Kind) String() string
- func (Relationship_Kind) Type() protoreflect.EnumType
- type Session
- type Status
- type Status_Request
- type Status_Response
- func (*Status_Response) Descriptor() ([]byte, []int)deprecated
- func (x *Status_Response) GetEverythingIsOk() bool
- func (x *Status_Response) GetHostname() string
- func (x *Status_Response) GetUptime() int32
- func (*Status_Response) ProtoMessage()
- func (x *Status_Response) ProtoReflect() protoreflect.Message
- func (x *Status_Response) Reset()
- func (x *Status_Response) String() string
- type UnimplementedWebAPIServer
- func (UnimplementedWebAPIServer) Me(context.Context, *Me_Request) (*Me_Response, error)
- func (UnimplementedWebAPIServer) Ping(context.Context, *Ping_Request) (*Ping_Response, error)
- func (UnimplementedWebAPIServer) PostList(context.Context, *PostList_Request) (*PostList_Response, error)
- func (UnimplementedWebAPIServer) Status(context.Context, *Status_Request) (*Status_Response, error)
- func (UnimplementedWebAPIServer) UserList(context.Context, *UserList_Request) (*UserList_Response, error)
- type UnsafeWebAPIServer
- type UploadsByWeek
- func (*UploadsByWeek) Descriptor() ([]byte, []int)deprecated
- func (x *UploadsByWeek) GetQuantity() int64
- func (x *UploadsByWeek) GetWeekday() int64
- func (*UploadsByWeek) ProtoMessage()
- func (x *UploadsByWeek) ProtoReflect() protoreflect.Message
- func (x *UploadsByWeek) Reset()
- func (x *UploadsByWeek) String() string
- type User
- func (u *User) ApplyDefaults()
- func (u *User) CanonicalURL() string
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (u *User) DisplayName() string
- func (u *User) Filter()
- func (u *User) Fullname() string
- func (x *User) GetAvatar() string
- func (x *User) GetBio() string
- func (x *User) GetCreatedAt() int64
- func (x *User) GetDeletedAt() int64
- func (x *User) GetDiscordID() string
- func (x *User) GetDiscordUsername() string
- func (x *User) GetEmail() string
- func (x *User) GetFirstname() string
- func (x *User) GetGears() string
- func (x *User) GetGenres() string
- func (x *User) GetGoals() string
- func (x *User) GetHeadline() string
- func (x *User) GetHomepage() string
- func (x *User) GetID() int64
- func (x *User) GetInspirations() string
- func (x *User) GetLastname() string
- func (x *User) GetLocale() string
- func (x *User) GetLocation() string
- func (x *User) GetOtherLinks() string
- func (x *User) GetProcessingError() string
- func (x *User) GetProcessingVersion() int64
- func (x *User) GetRecentPosts() []*Post
- func (x *User) GetRelationshipsAsSource() []*Relationship
- func (x *User) GetRelationshipsAsTarget() []*Relationship
- func (x *User) GetRole() string
- func (x *User) GetSlug() string
- func (x *User) GetSoundcloudUsername() string
- func (x *User) GetTwitterUsername() string
- func (x *User) GetUpdatedAt() int64
- func (u *User) HasSomethingAroundTheWeb() bool
- func (u *User) OtherLinksList() []string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserList
- type UserList_Request
- type UserList_Response
- type Visibility
- type WebAPIClient
- type WebAPIServer
Constants ¶
This section is empty.
Variables ¶
var ( Visibility_name = map[int32]string{ 0: "UnknownVisibility", 1: "Public", 2: "Draft", } Visibility_value = map[string]int32{ "UnknownVisibility": 0, "Public": 1, "Draft": 2, } )
Enum value maps for Visibility.
var ( Provider_name = map[int32]string{ 0: "UnknownProvider", 1: "SoundCloud", 2: "IPFS", } Provider_value = map[string]int32{ "UnknownProvider": 0, "SoundCloud": 1, "IPFS": 2, } )
Enum value maps for Provider.
var ( Post_SoundCloudKind_name = map[int32]string{ 0: "UnknownSoundCloudKind", 1: "SoundCloudTrack", } Post_SoundCloudKind_value = map[string]int32{ "UnknownSoundCloudKind": 0, "SoundCloudTrack": 1, } )
Enum value maps for Post_SoundCloudKind.
var ( Post_Kind_name = map[int32]string{ 0: "UnknownKind", 1: "TrackKind", 2: "LoginKind", 3: "RegisterKind", 4: "LinkDiscordAccountKind", 5: "ViewProfileKind", 6: "ViewPostKind", 7: "ViewOpenKind", 8: "ViewHomeKind", 9: "CommentKind", } Post_Kind_value = map[string]int32{ "UnknownKind": 0, "TrackKind": 1, "LoginKind": 2, "RegisterKind": 3, "LinkDiscordAccountKind": 4, "ViewProfileKind": 5, "ViewPostKind": 6, "ViewOpenKind": 7, "ViewHomeKind": 8, "CommentKind": 9, } )
Enum value maps for Post_Kind.
var ( Relationship_Kind_name = map[int32]string{ 0: "UnknownKind", 1: "FeaturingUserKind", 2: "RemixOfTrackKind", 3: "NewVersionOfTrackKind", 4: "InspiredByTrackKind", 5: "RemixOfUserKind", } Relationship_Kind_value = map[string]int32{ "UnknownKind": 0, "FeaturingUserKind": 1, "RemixOfTrackKind": 2, "NewVersionOfTrackKind": 3, "InspiredByTrackKind": 4, "RemixOfUserKind": 5, } )
Enum value maps for Relationship_Kind.
var File_sgtm_proto protoreflect.FileDescriptor
Functions ¶
func RegisterWebAPIHandler ¶
RegisterWebAPIHandler registers the http handlers for service WebAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterWebAPIHandlerClient ¶
func RegisterWebAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WebAPIClient) error
RegisterWebAPIHandlerClient registers the http handlers for service WebAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WebAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WebAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WebAPIClient" to call the correct interceptors.
func RegisterWebAPIHandlerFromEndpoint ¶
func RegisterWebAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterWebAPIHandlerFromEndpoint is same as RegisterWebAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterWebAPIHandlerServer ¶
func RegisterWebAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WebAPIServer) error
RegisterWebAPIHandlerServer registers the http handlers for service WebAPI to "mux". UnaryRPC :call WebAPIServer 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 RegisterWebAPIHandlerFromEndpoint instead.
func RegisterWebAPIServer ¶
func RegisterWebAPIServer(s grpc.ServiceRegistrar, srv WebAPIServer)
Types ¶
type Me ¶ added in v1.32.0
type Me struct {
// contains filtered or unexported fields
}
func (*Me) Descriptor
deprecated
added in
v1.32.0
func (*Me) ProtoMessage ¶ added in v1.32.0
func (*Me) ProtoMessage()
func (*Me) ProtoReflect ¶ added in v1.32.0
func (x *Me) ProtoReflect() protoreflect.Message
type Me_Request ¶ added in v1.32.0
type Me_Request struct {
// contains filtered or unexported fields
}
func (*Me_Request) Descriptor
deprecated
added in
v1.32.0
func (*Me_Request) Descriptor() ([]byte, []int)
Deprecated: Use Me_Request.ProtoReflect.Descriptor instead.
func (*Me_Request) ProtoMessage ¶ added in v1.32.0
func (*Me_Request) ProtoMessage()
func (*Me_Request) ProtoReflect ¶ added in v1.32.0
func (x *Me_Request) ProtoReflect() protoreflect.Message
func (*Me_Request) Reset ¶ added in v1.32.0
func (x *Me_Request) Reset()
func (*Me_Request) String ¶ added in v1.32.0
func (x *Me_Request) String() string
type Me_Response ¶ added in v1.32.0
type Me_Response struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*Me_Response) Descriptor
deprecated
added in
v1.32.0
func (*Me_Response) Descriptor() ([]byte, []int)
Deprecated: Use Me_Response.ProtoReflect.Descriptor instead.
func (*Me_Response) GetUser ¶ added in v1.32.0
func (x *Me_Response) GetUser() *User
func (*Me_Response) ProtoMessage ¶ added in v1.32.0
func (*Me_Response) ProtoMessage()
func (*Me_Response) ProtoReflect ¶ added in v1.32.0
func (x *Me_Response) ProtoReflect() protoreflect.Message
func (*Me_Response) Reset ¶ added in v1.32.0
func (x *Me_Response) Reset()
func (*Me_Response) String ¶ added in v1.32.0
func (x *Me_Response) String() string
type Ping ¶
type Ping struct {
// contains filtered or unexported fields
}
func (*Ping) Descriptor
deprecated
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) ProtoReflect ¶
func (x *Ping) ProtoReflect() protoreflect.Message
type Ping_Request ¶
type Ping_Request struct {
// contains filtered or unexported fields
}
func (*Ping_Request) Descriptor
deprecated
func (*Ping_Request) Descriptor() ([]byte, []int)
Deprecated: Use Ping_Request.ProtoReflect.Descriptor instead.
func (*Ping_Request) ProtoMessage ¶
func (*Ping_Request) ProtoMessage()
func (*Ping_Request) ProtoReflect ¶
func (x *Ping_Request) ProtoReflect() protoreflect.Message
func (*Ping_Request) Reset ¶
func (x *Ping_Request) Reset()
func (*Ping_Request) String ¶
func (x *Ping_Request) String() string
type Ping_Response ¶
type Ping_Response struct {
// contains filtered or unexported fields
}
func (*Ping_Response) Descriptor
deprecated
func (*Ping_Response) Descriptor() ([]byte, []int)
Deprecated: Use Ping_Response.ProtoReflect.Descriptor instead.
func (*Ping_Response) ProtoMessage ¶
func (*Ping_Response) ProtoMessage()
func (*Ping_Response) ProtoReflect ¶
func (x *Ping_Response) ProtoReflect() protoreflect.Message
func (*Ping_Response) Reset ¶
func (x *Ping_Response) Reset()
func (*Ping_Response) String ¶
func (x *Ping_Response) String() string
type Post ¶ added in v1.16.1
type Post struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" gorm:"autocreatetime:nano"` UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" gorm:"autoupdatetime:nano"` DeletedAt int64 `protobuf:"varint,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` Author *User `protobuf:"bytes,10,opt,name=author,proto3" json:"author,omitempty"` AuthorID int64 `protobuf:"varint,11,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"` Title string `protobuf:"bytes,12,opt,name=title,proto3" json:"title,omitempty"` Slug string `protobuf:"bytes,13,opt,name=slug,proto3" json:"slug,omitempty"` Kind Post_Kind `protobuf:"varint,14,opt,name=kind,proto3,enum=sgtm.Post_Kind" json:"kind,omitempty"` Visibility Visibility `protobuf:"varint,15,opt,name=visibility,proto3,enum=sgtm.Visibility" json:"visibility,omitempty"` URL string `protobuf:"bytes,16,opt,name=url,proto3" json:"url,omitempty"` Provider Provider `protobuf:"varint,17,opt,name=provider,proto3,enum=sgtm.Provider" json:"provider,omitempty"` Body string `protobuf:"bytes,18,opt,name=body,proto3" json:"body,omitempty"` SortDate int64 `protobuf:"varint,19,opt,name=sort_date,json=sortDate,proto3" json:"sort_date,omitempty"` ProcessingVersion int64 `protobuf:"varint,20,opt,name=processing_version,json=processingVersion,proto3" json:"processing_version,omitempty"` ProcessingError string `protobuf:"bytes,21,opt,name=processing_error,json=processingError,proto3" json:"processing_error,omitempty"` // Deprecated: Do not use. Genre string `protobuf:"bytes,40,opt,name=genre,proto3" json:"genre,omitempty"` // replaced by 'tags' Duration uint64 `protobuf:"varint,41,opt,name=duration,proto3" json:"duration,omitempty"` ArtworkURL string `protobuf:"bytes,42,opt,name=artwork_url,json=artworkUrl,proto3" json:"artwork_url,omitempty"` BPM float64 `protobuf:"fixed64,43,opt,name=bpm,proto3" json:"bpm,omitempty"` KeySignature string `protobuf:"bytes,44,opt,name=key_signature,json=keySignature,proto3" json:"key_signature,omitempty"` ISRC string `protobuf:"bytes,45,opt,name=isrc,proto3" json:"isrc,omitempty"` ProviderTitle string `protobuf:"bytes,53,opt,name=provider_title,json=providerTitle,proto3" json:"provider_title,omitempty"` ProviderDescription string `protobuf:"bytes,46,opt,name=provider_description,json=providerDescription,proto3" json:"provider_description,omitempty"` DownloadURL string `protobuf:"bytes,47,opt,name=provider_download_url,json=providerDownloadUrl,proto3" json:"provider_download_url,omitempty"` ProviderCreatedAt int64 `protobuf:"varint,48,opt,name=provider_created_at,json=providerCreatedAt,proto3" json:"provider_created_at,omitempty"` ProviderUpdatedAt int64 `protobuf:"varint,49,opt,name=provider_updated_at,json=providerUpdatedAt,proto3" json:"provider_updated_at,omitempty"` ProviderMetadata string `protobuf:"bytes,50,opt,name=provider_metadata,json=providerMetadata,proto3" json:"provider_metadata,omitempty"` Tags string `protobuf:"bytes,51,opt,name=tags,proto3" json:"tags,omitempty"` // comma separated list of tags Lyrics string `protobuf:"bytes,52,opt,name=lyrics,proto3" json:"lyrics,omitempty"` SoundCloudSecretToken string `` /* 127-byte string literal not displayed */ SoundCloudID uint64 `protobuf:"varint,81,opt,name=soundcloud_id,json=soundcloudId,proto3" json:"soundcloud_id,omitempty"` SoundCloudKind Post_SoundCloudKind `` /* 135-byte string literal not displayed */ IPFSCID string `protobuf:"bytes,90,opt,name=ipfs_cid,json=ipfsCid,proto3" json:"ipfs_cid,omitempty"` MIMEType string `protobuf:"bytes,91,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` SizeBytes int64 `protobuf:"varint,92,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"` FileExtension string `protobuf:"bytes,93,opt,name=file_extension,json=fileExtension,proto3" json:"file_extension,omitempty"` AttachmentFilename string `protobuf:"bytes,94,opt,name=attachment_filename,json=attachmentFilename,proto3" json:"attachment_filename,omitempty"` TargetUserID int64 `protobuf:"varint,101,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` TargetUser *User `protobuf:"bytes,102,opt,name=target_user,json=targetUser,proto3" json:"target_user,omitempty"` TargetPostID int64 `protobuf:"varint,103,opt,name=target_post_id,json=targetPostId,proto3" json:"target_post_id,omitempty"` TargetPost *Post `protobuf:"bytes,104,opt,name=target_post,json=targetPost,proto3" json:"target_post,omitempty"` TargetMetadata string `protobuf:"bytes,105,opt,name=target_metadata,json=targetMetadata,proto3" json:"target_metadata,omitempty"` RelationshipsAsSource []*Relationship `` /* 159-byte string literal not displayed */ RelationshipsAsTarget []*Relationship `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Post) ApplyDefaults ¶ added in v1.32.0
func (p *Post) ApplyDefaults()
func (*Post) CanonicalURL ¶ added in v1.32.0
func (*Post) Descriptor
deprecated
added in
v1.16.1
func (*Post) GetArtworkURL ¶ added in v1.32.0
func (*Post) GetAttachmentFilename ¶ added in v1.54.2
func (*Post) GetAuthorID ¶ added in v1.16.1
func (*Post) GetCreatedAt ¶ added in v1.16.1
func (*Post) GetDeletedAt ¶ added in v1.16.1
func (*Post) GetDownloadURL ¶ added in v1.32.0
func (*Post) GetDuration ¶ added in v1.32.0
func (*Post) GetFileExtension ¶ added in v1.54.2
func (*Post) GetIPFSCID ¶ added in v1.54.2
func (*Post) GetKeySignature ¶ added in v1.32.0
func (*Post) GetMIMEType ¶ added in v1.54.2
func (*Post) GetProcessingError ¶ added in v1.54.2
func (*Post) GetProcessingVersion ¶ added in v1.54.2
func (*Post) GetProvider ¶ added in v1.32.0
func (*Post) GetProviderCreatedAt ¶ added in v1.32.0
func (*Post) GetProviderDescription ¶ added in v1.32.0
func (*Post) GetProviderMetadata ¶ added in v1.32.0
func (*Post) GetProviderTitle ¶ added in v1.54.2
func (*Post) GetProviderUpdatedAt ¶ added in v1.32.0
func (*Post) GetRelationshipsAsSource ¶ added in v1.54.2
func (x *Post) GetRelationshipsAsSource() []*Relationship
func (*Post) GetRelationshipsAsTarget ¶ added in v1.54.2
func (x *Post) GetRelationshipsAsTarget() []*Relationship
func (*Post) GetSizeBytes ¶ added in v1.54.2
func (*Post) GetSortDate ¶ added in v1.32.0
func (*Post) GetSoundCloudID ¶ added in v1.32.0
func (*Post) GetSoundCloudKind ¶ added in v1.32.0
func (x *Post) GetSoundCloudKind() Post_SoundCloudKind
func (*Post) GetSoundCloudSecretToken ¶ added in v1.32.0
func (*Post) GetTargetMetadata ¶ added in v1.32.0
func (*Post) GetTargetPost ¶ added in v1.32.0
func (*Post) GetTargetPostID ¶ added in v1.32.0
func (*Post) GetTargetUser ¶ added in v1.32.0
func (*Post) GetTargetUserID ¶ added in v1.32.0
func (*Post) GetUpdatedAt ¶ added in v1.16.1
func (*Post) GetVisibility ¶ added in v1.32.0
func (x *Post) GetVisibility() Visibility
func (*Post) GoDuration ¶ added in v1.32.0
func (*Post) IsSoundCloud ¶ added in v1.54.2
func (*Post) ProtoMessage ¶ added in v1.16.1
func (*Post) ProtoMessage()
func (*Post) ProtoReflect ¶ added in v1.16.1
func (x *Post) ProtoReflect() protoreflect.Message
func (*Post) SafeDescription ¶ added in v1.32.0
func (*Post) SafeLyrics ¶ added in v1.54.2
type PostByKind ¶ added in v1.54.2
type PostByKind struct { Quantity int64 `protobuf:"varint,1,opt,name=quantity,proto3" json:"quantity,omitempty"` Kind Post_Kind `protobuf:"varint,2,opt,name=kind,proto3,enum=sgtm.Post_Kind" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*PostByKind) Descriptor
deprecated
added in
v1.54.2
func (*PostByKind) Descriptor() ([]byte, []int)
Deprecated: Use PostByKind.ProtoReflect.Descriptor instead.
func (*PostByKind) GetKind ¶ added in v1.54.2
func (x *PostByKind) GetKind() Post_Kind
func (*PostByKind) GetQuantity ¶ added in v1.54.2
func (x *PostByKind) GetQuantity() int64
func (*PostByKind) ProtoMessage ¶ added in v1.54.2
func (*PostByKind) ProtoMessage()
func (*PostByKind) ProtoReflect ¶ added in v1.54.2
func (x *PostByKind) ProtoReflect() protoreflect.Message
func (*PostByKind) Reset ¶ added in v1.54.2
func (x *PostByKind) Reset()
func (*PostByKind) String ¶ added in v1.54.2
func (x *PostByKind) String() string
type PostList ¶ added in v1.16.1
type PostList struct {
// contains filtered or unexported fields
}
func (*PostList) Descriptor
deprecated
added in
v1.16.1
func (*PostList) ProtoMessage ¶ added in v1.16.1
func (*PostList) ProtoMessage()
func (*PostList) ProtoReflect ¶ added in v1.16.1
func (x *PostList) ProtoReflect() protoreflect.Message
type PostList_Request ¶ added in v1.16.1
type PostList_Request struct {
// contains filtered or unexported fields
}
func (*PostList_Request) Descriptor
deprecated
added in
v1.16.1
func (*PostList_Request) Descriptor() ([]byte, []int)
Deprecated: Use PostList_Request.ProtoReflect.Descriptor instead.
func (*PostList_Request) ProtoMessage ¶ added in v1.16.1
func (*PostList_Request) ProtoMessage()
func (*PostList_Request) ProtoReflect ¶ added in v1.16.1
func (x *PostList_Request) ProtoReflect() protoreflect.Message
func (*PostList_Request) Reset ¶ added in v1.16.1
func (x *PostList_Request) Reset()
func (*PostList_Request) String ¶ added in v1.16.1
func (x *PostList_Request) String() string
type PostList_Response ¶ added in v1.16.1
type PostList_Response struct { Posts []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"` // contains filtered or unexported fields }
func (*PostList_Response) Descriptor
deprecated
added in
v1.16.1
func (*PostList_Response) Descriptor() ([]byte, []int)
Deprecated: Use PostList_Response.ProtoReflect.Descriptor instead.
func (*PostList_Response) GetPosts ¶ added in v1.16.1
func (x *PostList_Response) GetPosts() []*Post
func (*PostList_Response) ProtoMessage ¶ added in v1.16.1
func (*PostList_Response) ProtoMessage()
func (*PostList_Response) ProtoReflect ¶ added in v1.16.1
func (x *PostList_Response) ProtoReflect() protoreflect.Message
func (*PostList_Response) Reset ¶ added in v1.16.1
func (x *PostList_Response) Reset()
func (*PostList_Response) String ¶ added in v1.16.1
func (x *PostList_Response) String() string
type PostSync ¶ added in v1.32.0
type PostSync struct {
// contains filtered or unexported fields
}
func (*PostSync) Descriptor
deprecated
added in
v1.32.0
func (*PostSync) ProtoMessage ¶ added in v1.32.0
func (*PostSync) ProtoMessage()
func (*PostSync) ProtoReflect ¶ added in v1.32.0
func (x *PostSync) ProtoReflect() protoreflect.Message
type PostSync_Request ¶ added in v1.32.0
type PostSync_Request struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*PostSync_Request) Descriptor
deprecated
added in
v1.32.0
func (*PostSync_Request) Descriptor() ([]byte, []int)
Deprecated: Use PostSync_Request.ProtoReflect.Descriptor instead.
func (*PostSync_Request) GetID ¶ added in v1.32.0
func (x *PostSync_Request) GetID() int64
func (*PostSync_Request) ProtoMessage ¶ added in v1.32.0
func (*PostSync_Request) ProtoMessage()
func (*PostSync_Request) ProtoReflect ¶ added in v1.32.0
func (x *PostSync_Request) ProtoReflect() protoreflect.Message
func (*PostSync_Request) Reset ¶ added in v1.32.0
func (x *PostSync_Request) Reset()
func (*PostSync_Request) String ¶ added in v1.32.0
func (x *PostSync_Request) String() string
type PostSync_Response ¶ added in v1.32.0
type PostSync_Response struct {
// contains filtered or unexported fields
}
func (*PostSync_Response) Descriptor
deprecated
added in
v1.32.0
func (*PostSync_Response) Descriptor() ([]byte, []int)
Deprecated: Use PostSync_Response.ProtoReflect.Descriptor instead.
func (*PostSync_Response) ProtoMessage ¶ added in v1.32.0
func (*PostSync_Response) ProtoMessage()
func (*PostSync_Response) ProtoReflect ¶ added in v1.32.0
func (x *PostSync_Response) ProtoReflect() protoreflect.Message
func (*PostSync_Response) Reset ¶ added in v1.32.0
func (x *PostSync_Response) Reset()
func (*PostSync_Response) String ¶ added in v1.32.0
func (x *PostSync_Response) String() string
type Post_Kind ¶ added in v1.16.1
type Post_Kind int32
const ( Post_UnknownKind Post_Kind = 0 Post_TrackKind Post_Kind = 1 Post_LoginKind Post_Kind = 2 Post_RegisterKind Post_Kind = 3 Post_LinkDiscordAccountKind Post_Kind = 4 Post_ViewProfileKind Post_Kind = 5 Post_ViewPostKind Post_Kind = 6 Post_ViewOpenKind Post_Kind = 7 Post_ViewHomeKind Post_Kind = 8 Post_CommentKind Post_Kind = 9 )
func (Post_Kind) Descriptor ¶ added in v1.16.1
func (Post_Kind) Descriptor() protoreflect.EnumDescriptor
func (Post_Kind) EnumDescriptor
deprecated
added in
v1.16.1
func (Post_Kind) Number ¶ added in v1.16.1
func (x Post_Kind) Number() protoreflect.EnumNumber
func (Post_Kind) Type ¶ added in v1.16.1
func (Post_Kind) Type() protoreflect.EnumType
type Post_SoundCloudKind ¶ added in v1.32.0
type Post_SoundCloudKind int32
const ( Post_UnknownSoundCloudKind Post_SoundCloudKind = 0 Post_SoundCloudTrack Post_SoundCloudKind = 1 //SoundCloudPlaylist = 2; )
func (Post_SoundCloudKind) Descriptor ¶ added in v1.32.0
func (Post_SoundCloudKind) Descriptor() protoreflect.EnumDescriptor
func (Post_SoundCloudKind) Enum ¶ added in v1.32.0
func (x Post_SoundCloudKind) Enum() *Post_SoundCloudKind
func (Post_SoundCloudKind) EnumDescriptor
deprecated
added in
v1.32.0
func (Post_SoundCloudKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use Post_SoundCloudKind.Descriptor instead.
func (Post_SoundCloudKind) Number ¶ added in v1.32.0
func (x Post_SoundCloudKind) Number() protoreflect.EnumNumber
func (Post_SoundCloudKind) String ¶ added in v1.32.0
func (x Post_SoundCloudKind) String() string
func (Post_SoundCloudKind) Type ¶ added in v1.32.0
func (Post_SoundCloudKind) Type() protoreflect.EnumType
type Provider ¶ added in v1.32.0
type Provider int32
func (Provider) Descriptor ¶ added in v1.32.0
func (Provider) Descriptor() protoreflect.EnumDescriptor
func (Provider) EnumDescriptor
deprecated
added in
v1.32.0
func (Provider) Number ¶ added in v1.32.0
func (x Provider) Number() protoreflect.EnumNumber
func (Provider) Type ¶ added in v1.32.0
func (Provider) Type() protoreflect.EnumType
type Register ¶ added in v1.16.1
type Register struct {
// contains filtered or unexported fields
}
func (*Register) Descriptor
deprecated
added in
v1.16.1
func (*Register) ProtoMessage ¶ added in v1.16.1
func (*Register) ProtoMessage()
func (*Register) ProtoReflect ¶ added in v1.16.1
func (x *Register) ProtoReflect() protoreflect.Message
type Register_Request ¶ added in v1.16.1
type Register_Request struct { Email string `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty"` Slug string `protobuf:"bytes,11,opt,name=slug,proto3" json:"slug,omitempty"` Firstname string `protobuf:"bytes,12,opt,name=firstname,proto3" json:"firstname,omitempty"` Lastname string `protobuf:"bytes,13,opt,name=lastname,proto3" json:"lastname,omitempty"` // contains filtered or unexported fields }
func (*Register_Request) Descriptor
deprecated
added in
v1.16.1
func (*Register_Request) Descriptor() ([]byte, []int)
Deprecated: Use Register_Request.ProtoReflect.Descriptor instead.
func (*Register_Request) GetEmail ¶ added in v1.16.1
func (x *Register_Request) GetEmail() string
func (*Register_Request) GetFirstname ¶ added in v1.16.1
func (x *Register_Request) GetFirstname() string
func (*Register_Request) GetLastname ¶ added in v1.16.1
func (x *Register_Request) GetLastname() string
func (*Register_Request) GetSlug ¶ added in v1.16.1
func (x *Register_Request) GetSlug() string
func (*Register_Request) ProtoMessage ¶ added in v1.16.1
func (*Register_Request) ProtoMessage()
func (*Register_Request) ProtoReflect ¶ added in v1.16.1
func (x *Register_Request) ProtoReflect() protoreflect.Message
func (*Register_Request) Reset ¶ added in v1.16.1
func (x *Register_Request) Reset()
func (*Register_Request) String ¶ added in v1.16.1
func (x *Register_Request) String() string
type Register_Response ¶ added in v1.16.1
type Register_Response struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*Register_Response) Descriptor
deprecated
added in
v1.16.1
func (*Register_Response) Descriptor() ([]byte, []int)
Deprecated: Use Register_Response.ProtoReflect.Descriptor instead.
func (*Register_Response) GetUser ¶ added in v1.16.1
func (x *Register_Response) GetUser() *User
func (*Register_Response) ProtoMessage ¶ added in v1.16.1
func (*Register_Response) ProtoMessage()
func (*Register_Response) ProtoReflect ¶ added in v1.16.1
func (x *Register_Response) ProtoReflect() protoreflect.Message
func (*Register_Response) Reset ¶ added in v1.16.1
func (x *Register_Response) Reset()
func (*Register_Response) String ¶ added in v1.16.1
func (x *Register_Response) String() string
type Relationship ¶ added in v1.54.2
type Relationship struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" gorm:"autocreatetime:nano"` UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" gorm:"autoupdatetime:nano"` DeletedAt int64 `protobuf:"varint,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` Kind Relationship_Kind `protobuf:"varint,10,opt,name=kind,proto3,enum=sgtm.Relationship_Kind" json:"kind,omitempty"` SourcePostID int64 `protobuf:"varint,11,opt,name=source_post_id,json=sourcePostId,proto3" json:"source_post_id,omitempty"` SourcePost *Post `protobuf:"bytes,12,opt,name=source_post,json=sourcePost,proto3" json:"source_post,omitempty"` TargetPostID int64 `protobuf:"varint,13,opt,name=target_post_id,json=targetPostId,proto3" json:"target_post_id,omitempty"` TargetPost *Post `protobuf:"bytes,14,opt,name=target_post,json=targetPost,proto3" json:"target_post,omitempty"` SourceUserID int64 `protobuf:"varint,15,opt,name=source_user_id,json=sourceUserId,proto3" json:"source_user_id,omitempty"` SourceUser *User `protobuf:"bytes,16,opt,name=source_user,json=sourceUser,proto3" json:"source_user,omitempty"` TargetUserID int64 `protobuf:"varint,17,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` TargetUser *User `protobuf:"bytes,18,opt,name=target_user,json=targetUser,proto3" json:"target_user,omitempty"` SourceRaw string `protobuf:"bytes,19,opt,name=source_raw,json=sourceRaw,proto3" json:"source_raw,omitempty"` TargetRaw string `protobuf:"bytes,20,opt,name=target_raw,json=targetRaw,proto3" json:"target_raw,omitempty"` Metadata string `protobuf:"bytes,21,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*Relationship) Descriptor
deprecated
added in
v1.54.2
func (*Relationship) Descriptor() ([]byte, []int)
Deprecated: Use Relationship.ProtoReflect.Descriptor instead.
func (*Relationship) GetCreatedAt ¶ added in v1.54.2
func (x *Relationship) GetCreatedAt() int64
func (*Relationship) GetDeletedAt ¶ added in v1.54.2
func (x *Relationship) GetDeletedAt() int64
func (*Relationship) GetID ¶ added in v1.54.2
func (x *Relationship) GetID() int64
func (*Relationship) GetKind ¶ added in v1.54.2
func (x *Relationship) GetKind() Relationship_Kind
func (*Relationship) GetMetadata ¶ added in v1.54.2
func (x *Relationship) GetMetadata() string
func (*Relationship) GetSourcePost ¶ added in v1.54.2
func (x *Relationship) GetSourcePost() *Post
func (*Relationship) GetSourcePostID ¶ added in v1.54.2
func (x *Relationship) GetSourcePostID() int64
func (*Relationship) GetSourceRaw ¶ added in v1.54.2
func (x *Relationship) GetSourceRaw() string
func (*Relationship) GetSourceUser ¶ added in v1.54.2
func (x *Relationship) GetSourceUser() *User
func (*Relationship) GetSourceUserID ¶ added in v1.54.2
func (x *Relationship) GetSourceUserID() int64
func (*Relationship) GetTargetPost ¶ added in v1.54.2
func (x *Relationship) GetTargetPost() *Post
func (*Relationship) GetTargetPostID ¶ added in v1.54.2
func (x *Relationship) GetTargetPostID() int64
func (*Relationship) GetTargetRaw ¶ added in v1.54.2
func (x *Relationship) GetTargetRaw() string
func (*Relationship) GetTargetUser ¶ added in v1.54.2
func (x *Relationship) GetTargetUser() *User
func (*Relationship) GetTargetUserID ¶ added in v1.54.2
func (x *Relationship) GetTargetUserID() int64
func (*Relationship) GetUpdatedAt ¶ added in v1.54.2
func (x *Relationship) GetUpdatedAt() int64
func (*Relationship) ProtoMessage ¶ added in v1.54.2
func (*Relationship) ProtoMessage()
func (*Relationship) ProtoReflect ¶ added in v1.54.2
func (x *Relationship) ProtoReflect() protoreflect.Message
func (*Relationship) Reset ¶ added in v1.54.2
func (x *Relationship) Reset()
func (*Relationship) String ¶ added in v1.54.2
func (x *Relationship) String() string
type Relationship_Kind ¶ added in v1.54.2
type Relationship_Kind int32
const ( Relationship_UnknownKind Relationship_Kind = 0 Relationship_FeaturingUserKind Relationship_Kind = 1 Relationship_RemixOfTrackKind Relationship_Kind = 2 Relationship_NewVersionOfTrackKind Relationship_Kind = 3 Relationship_InspiredByTrackKind Relationship_Kind = 4 Relationship_RemixOfUserKind Relationship_Kind = 5 )
func (Relationship_Kind) Descriptor ¶ added in v1.54.2
func (Relationship_Kind) Descriptor() protoreflect.EnumDescriptor
func (Relationship_Kind) Enum ¶ added in v1.54.2
func (x Relationship_Kind) Enum() *Relationship_Kind
func (Relationship_Kind) EnumDescriptor
deprecated
added in
v1.54.2
func (Relationship_Kind) EnumDescriptor() ([]byte, []int)
Deprecated: Use Relationship_Kind.Descriptor instead.
func (Relationship_Kind) Number ¶ added in v1.54.2
func (x Relationship_Kind) Number() protoreflect.EnumNumber
func (Relationship_Kind) String ¶ added in v1.54.2
func (x Relationship_Kind) String() string
func (Relationship_Kind) Type ¶ added in v1.54.2
func (Relationship_Kind) Type() protoreflect.EnumType
type Session ¶ added in v1.16.1
type Session struct { UserID int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` DiscordAccessToken string `protobuf:"bytes,2,opt,name=discord_access_token,json=discordAccessToken,proto3" json:"discord_access_token,omitempty"` // contains filtered or unexported fields }
func (*Session) Descriptor
deprecated
added in
v1.16.1
func (*Session) GetDiscordAccessToken ¶ added in v1.16.1
func (*Session) ProtoMessage ¶ added in v1.16.1
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶ added in v1.16.1
func (x *Session) ProtoReflect() protoreflect.Message
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func (*Status) Descriptor
deprecated
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type Status_Request ¶
type Status_Request struct {
// contains filtered or unexported fields
}
func (*Status_Request) Descriptor
deprecated
func (*Status_Request) Descriptor() ([]byte, []int)
Deprecated: Use Status_Request.ProtoReflect.Descriptor instead.
func (*Status_Request) ProtoMessage ¶
func (*Status_Request) ProtoMessage()
func (*Status_Request) ProtoReflect ¶
func (x *Status_Request) ProtoReflect() protoreflect.Message
func (*Status_Request) Reset ¶
func (x *Status_Request) Reset()
func (*Status_Request) String ¶
func (x *Status_Request) String() string
type Status_Response ¶
type Status_Response struct { Uptime int32 `protobuf:"varint,1,opt,name=uptime,proto3" json:"uptime,omitempty"` Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` EverythingIsOk bool `protobuf:"varint,3,opt,name=everything_is_ok,json=everythingIsOk,proto3" json:"everything_is_ok,omitempty"` // contains filtered or unexported fields }
func (*Status_Response) Descriptor
deprecated
func (*Status_Response) Descriptor() ([]byte, []int)
Deprecated: Use Status_Response.ProtoReflect.Descriptor instead.
func (*Status_Response) GetEverythingIsOk ¶ added in v1.32.0
func (x *Status_Response) GetEverythingIsOk() bool
func (*Status_Response) GetHostname ¶
func (x *Status_Response) GetHostname() string
func (*Status_Response) GetUptime ¶
func (x *Status_Response) GetUptime() int32
func (*Status_Response) ProtoMessage ¶
func (*Status_Response) ProtoMessage()
func (*Status_Response) ProtoReflect ¶
func (x *Status_Response) ProtoReflect() protoreflect.Message
func (*Status_Response) Reset ¶
func (x *Status_Response) Reset()
func (*Status_Response) String ¶
func (x *Status_Response) String() string
type UnimplementedWebAPIServer ¶
type UnimplementedWebAPIServer struct { }
UnimplementedWebAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedWebAPIServer) Me ¶ added in v1.32.0
func (UnimplementedWebAPIServer) Me(context.Context, *Me_Request) (*Me_Response, error)
func (UnimplementedWebAPIServer) Ping ¶
func (UnimplementedWebAPIServer) Ping(context.Context, *Ping_Request) (*Ping_Response, error)
func (UnimplementedWebAPIServer) PostList ¶ added in v1.16.1
func (UnimplementedWebAPIServer) PostList(context.Context, *PostList_Request) (*PostList_Response, error)
func (UnimplementedWebAPIServer) Status ¶
func (UnimplementedWebAPIServer) Status(context.Context, *Status_Request) (*Status_Response, error)
func (UnimplementedWebAPIServer) UserList ¶ added in v1.16.1
func (UnimplementedWebAPIServer) UserList(context.Context, *UserList_Request) (*UserList_Response, error)
type UnsafeWebAPIServer ¶ added in v1.54.2
type UnsafeWebAPIServer interface {
// contains filtered or unexported methods
}
UnsafeWebAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WebAPIServer will result in compilation errors.
type UploadsByWeek ¶ added in v1.54.2
type UploadsByWeek struct { Weekday int64 `protobuf:"varint,1,opt,name=weekday,proto3" json:"weekday,omitempty"` Quantity int64 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"` // contains filtered or unexported fields }
func (*UploadsByWeek) Descriptor
deprecated
added in
v1.54.2
func (*UploadsByWeek) Descriptor() ([]byte, []int)
Deprecated: Use UploadsByWeek.ProtoReflect.Descriptor instead.
func (*UploadsByWeek) GetQuantity ¶ added in v1.54.2
func (x *UploadsByWeek) GetQuantity() int64
func (*UploadsByWeek) GetWeekday ¶ added in v1.54.2
func (x *UploadsByWeek) GetWeekday() int64
func (*UploadsByWeek) ProtoMessage ¶ added in v1.54.2
func (*UploadsByWeek) ProtoMessage()
func (*UploadsByWeek) ProtoReflect ¶ added in v1.54.2
func (x *UploadsByWeek) ProtoReflect() protoreflect.Message
func (*UploadsByWeek) Reset ¶ added in v1.54.2
func (x *UploadsByWeek) Reset()
func (*UploadsByWeek) String ¶ added in v1.54.2
func (x *UploadsByWeek) String() string
type User ¶ added in v1.16.1
type User struct { ID int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"` CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" gorm:"autocreatetime:nano"` UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" gorm:"autoupdatetime:nano"` DeletedAt int64 `protobuf:"varint,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` Email string `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty" gorm:"size:255;not null;index:,unique"` Slug string `protobuf:"bytes,11,opt,name=slug,proto3" json:"slug,omitempty" gorm:"size:32;not null;default:''"` Firstname string `protobuf:"bytes,12,opt,name=firstname,proto3" json:"firstname,omitempty" gorm:"size:255;not null;default:''"` Lastname string `protobuf:"bytes,13,opt,name=lastname,proto3" json:"lastname,omitempty" gorm:"size:255;not null;default:''"` Locale string `protobuf:"bytes,14,opt,name=locale,proto3" json:"locale,omitempty" gorm:"size:32;not null;default:''"` Avatar string `protobuf:"bytes,15,opt,name=avatar,proto3" json:"avatar,omitempty" gorm:"size:255;not null;default:''"` DiscordID string `protobuf:"bytes,16,opt,name=discord_id,json=discordId,proto3" json:"discord_id,omitempty" gorm:"size:255;not null;default:''"` DiscordUsername string `` /* 143-byte string literal not displayed */ Headline string `protobuf:"bytes,18,opt,name=headline,proto3" json:"headline,omitempty"` Bio string `protobuf:"bytes,19,opt,name=bio,proto3" json:"bio,omitempty"` Inspirations string `protobuf:"bytes,20,opt,name=inspirations,proto3" json:"inspirations,omitempty"` Gears string `protobuf:"bytes,21,opt,name=gears,proto3" json:"gears,omitempty"` Genres string `protobuf:"bytes,22,opt,name=genres,proto3" json:"genres,omitempty"` Location string `protobuf:"bytes,23,opt,name=location,proto3" json:"location,omitempty"` TwitterUsername string `protobuf:"bytes,24,opt,name=twitter_username,json=twitterUsername,proto3" json:"twitter_username,omitempty"` Homepage string `protobuf:"bytes,25,opt,name=homepage,proto3" json:"homepage,omitempty"` OtherLinks string `protobuf:"bytes,26,opt,name=other_links,json=otherLinks,proto3" json:"other_links,omitempty"` Goals string `protobuf:"bytes,27,opt,name=goals,proto3" json:"goals,omitempty"` SoundcloudUsername string `protobuf:"bytes,28,opt,name=soundcloud_username,json=soundcloudUsername,proto3" json:"soundcloud_username,omitempty"` Role string `protobuf:"bytes,29,opt,name=role,proto3" json:"role,omitempty"` ProcessingVersion int64 `protobuf:"varint,30,opt,name=processing_version,json=processingVersion,proto3" json:"processing_version,omitempty"` ProcessingError string `protobuf:"bytes,31,opt,name=processing_error,json=processingError,proto3" json:"processing_error,omitempty"` RecentPosts []*Post `` /* 136-byte string literal not displayed */ RelationshipsAsSource []*Relationship `` /* 158-byte string literal not displayed */ RelationshipsAsTarget []*Relationship `` /* 158-byte string literal not displayed */ // contains filtered or unexported fields }
func (*User) ApplyDefaults ¶ added in v1.32.0
func (u *User) ApplyDefaults()
func (*User) CanonicalURL ¶ added in v1.32.0
func (*User) Descriptor
deprecated
added in
v1.16.1
func (*User) DisplayName ¶ added in v1.32.0
func (*User) GetCreatedAt ¶ added in v1.16.1
func (*User) GetDeletedAt ¶ added in v1.16.1
func (*User) GetDiscordID ¶ added in v1.16.1
func (*User) GetDiscordUsername ¶ added in v1.16.1
func (*User) GetFirstname ¶ added in v1.16.1
func (*User) GetHeadline ¶ added in v1.32.0
func (*User) GetHomepage ¶ added in v1.32.0
func (*User) GetInspirations ¶ added in v1.32.0
func (*User) GetLastname ¶ added in v1.16.1
func (*User) GetLocation ¶ added in v1.32.0
func (*User) GetOtherLinks ¶ added in v1.32.0
func (*User) GetProcessingError ¶ added in v1.54.2
func (*User) GetProcessingVersion ¶ added in v1.54.2
func (*User) GetRecentPosts ¶ added in v1.32.0
func (*User) GetRelationshipsAsSource ¶ added in v1.54.2
func (x *User) GetRelationshipsAsSource() []*Relationship
func (*User) GetRelationshipsAsTarget ¶ added in v1.54.2
func (x *User) GetRelationshipsAsTarget() []*Relationship
func (*User) GetSoundcloudUsername ¶ added in v1.32.0
func (*User) GetTwitterUsername ¶ added in v1.32.0
func (*User) GetUpdatedAt ¶ added in v1.16.1
func (*User) HasSomethingAroundTheWeb ¶ added in v1.32.0
func (*User) OtherLinksList ¶ added in v1.32.0
func (*User) ProtoMessage ¶ added in v1.16.1
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶ added in v1.16.1
func (x *User) ProtoReflect() protoreflect.Message
type UserList ¶ added in v1.16.1
type UserList struct {
// contains filtered or unexported fields
}
func (*UserList) Descriptor
deprecated
added in
v1.16.1
func (*UserList) ProtoMessage ¶ added in v1.16.1
func (*UserList) ProtoMessage()
func (*UserList) ProtoReflect ¶ added in v1.16.1
func (x *UserList) ProtoReflect() protoreflect.Message
type UserList_Request ¶ added in v1.16.1
type UserList_Request struct {
// contains filtered or unexported fields
}
func (*UserList_Request) Descriptor
deprecated
added in
v1.16.1
func (*UserList_Request) Descriptor() ([]byte, []int)
Deprecated: Use UserList_Request.ProtoReflect.Descriptor instead.
func (*UserList_Request) ProtoMessage ¶ added in v1.16.1
func (*UserList_Request) ProtoMessage()
func (*UserList_Request) ProtoReflect ¶ added in v1.16.1
func (x *UserList_Request) ProtoReflect() protoreflect.Message
func (*UserList_Request) Reset ¶ added in v1.16.1
func (x *UserList_Request) Reset()
func (*UserList_Request) String ¶ added in v1.16.1
func (x *UserList_Request) String() string
type UserList_Response ¶ added in v1.16.1
type UserList_Response struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*UserList_Response) Descriptor
deprecated
added in
v1.16.1
func (*UserList_Response) Descriptor() ([]byte, []int)
Deprecated: Use UserList_Response.ProtoReflect.Descriptor instead.
func (*UserList_Response) GetUsers ¶ added in v1.16.1
func (x *UserList_Response) GetUsers() []*User
func (*UserList_Response) ProtoMessage ¶ added in v1.16.1
func (*UserList_Response) ProtoMessage()
func (*UserList_Response) ProtoReflect ¶ added in v1.16.1
func (x *UserList_Response) ProtoReflect() protoreflect.Message
func (*UserList_Response) Reset ¶ added in v1.16.1
func (x *UserList_Response) Reset()
func (*UserList_Response) String ¶ added in v1.16.1
func (x *UserList_Response) String() string
type Visibility ¶ added in v1.32.0
type Visibility int32
const ( Visibility_UnknownVisibility Visibility = 0 Visibility_Public Visibility = 1 Visibility_Draft Visibility = 2 )
func (Visibility) Descriptor ¶ added in v1.32.0
func (Visibility) Descriptor() protoreflect.EnumDescriptor
func (Visibility) Enum ¶ added in v1.32.0
func (x Visibility) Enum() *Visibility
func (Visibility) EnumDescriptor
deprecated
added in
v1.32.0
func (Visibility) EnumDescriptor() ([]byte, []int)
Deprecated: Use Visibility.Descriptor instead.
func (Visibility) Number ¶ added in v1.32.0
func (x Visibility) Number() protoreflect.EnumNumber
func (Visibility) String ¶ added in v1.32.0
func (x Visibility) String() string
func (Visibility) Type ¶ added in v1.32.0
func (Visibility) Type() protoreflect.EnumType
type WebAPIClient ¶
type WebAPIClient interface { //rpc Register(Register.Request) returns (Register.Response) { option (google.api.http) = {post: "/api/v1/Register", body: "*"}; } UserList(ctx context.Context, in *UserList_Request, opts ...grpc.CallOption) (*UserList_Response, error) PostList(ctx context.Context, in *PostList_Request, opts ...grpc.CallOption) (*PostList_Response, error) // rpc PostSync(PostSync.Request) returns (PostSync.Response) { option (google.api.http) = {get: "/api/v1/PostSync"}; } Me(ctx context.Context, in *Me_Request, opts ...grpc.CallOption) (*Me_Response, error) Ping(ctx context.Context, in *Ping_Request, opts ...grpc.CallOption) (*Ping_Response, error) Status(ctx context.Context, in *Status_Request, opts ...grpc.CallOption) (*Status_Response, error) }
WebAPIClient is the client API for WebAPI 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 NewWebAPIClient ¶
func NewWebAPIClient(cc grpc.ClientConnInterface) WebAPIClient
type WebAPIServer ¶
type WebAPIServer interface { //rpc Register(Register.Request) returns (Register.Response) { option (google.api.http) = {post: "/api/v1/Register", body: "*"}; } UserList(context.Context, *UserList_Request) (*UserList_Response, error) PostList(context.Context, *PostList_Request) (*PostList_Response, error) // rpc PostSync(PostSync.Request) returns (PostSync.Response) { option (google.api.http) = {get: "/api/v1/PostSync"}; } Me(context.Context, *Me_Request) (*Me_Response, error) Ping(context.Context, *Ping_Request) (*Ping_Response, error) Status(context.Context, *Status_Request) (*Status_Response, error) // contains filtered or unexported methods }
WebAPIServer is the server API for WebAPI service. All implementations must embed UnimplementedWebAPIServer for forward compatibility