Documentation ¶
Index ¶
- func RegisterArtServer(s *grpc.Server, srv ArtServer)
- type Album
- func (*Album) Descriptor() ([]byte, []int)
- func (m *Album) GetArtistAlbumId() string
- func (m *Album) GetArtistId() string
- func (m *Album) GetArtistTrackId() []string
- func (m *Album) GetTitle() string
- func (*Album) ProtoMessage()
- func (m *Album) Reset()
- func (m *Album) String() string
- func (m *Album) XXX_DiscardUnknown()
- func (m *Album) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Album) XXX_Merge(src proto.Message)
- func (m *Album) XXX_Size() int
- func (m *Album) XXX_Unmarshal(b []byte) error
- type ArtClient
- type ArtRequest
- func (*ArtRequest) Descriptor() ([]byte, []int)
- func (m *ArtRequest) GetArtistId() string
- func (m *ArtRequest) GetArtistTrackId() string
- func (m *ArtRequest) GetSince() uint64
- func (*ArtRequest) ProtoMessage()
- func (m *ArtRequest) Reset()
- func (m *ArtRequest) String() string
- func (m *ArtRequest) XXX_DiscardUnknown()
- func (m *ArtRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ArtRequest) XXX_Merge(src proto.Message)
- func (m *ArtRequest) XXX_Size() int
- func (m *ArtRequest) XXX_Unmarshal(b []byte) error
- type ArtResources
- func (*ArtResources) Descriptor() ([]byte, []int)
- func (m *ArtResources) GetAlbums() []*Album
- func (m *ArtResources) GetArtists() []*Artist
- func (m *ArtResources) GetPeers() []*Peer
- func (m *ArtResources) GetTracks() []*Track
- func (*ArtResources) ProtoMessage()
- func (m *ArtResources) Reset()
- func (m *ArtResources) String() string
- func (m *ArtResources) XXX_DiscardUnknown()
- func (m *ArtResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ArtResources) XXX_Merge(src proto.Message)
- func (m *ArtResources) XXX_Size() int
- func (m *ArtResources) XXX_Unmarshal(b []byte) error
- type ArtServer
- type Artist
- func (*Artist) Descriptor() ([]byte, []int)
- func (m *Artist) GetArtistId() string
- func (m *Artist) GetName() string
- func (m *Artist) GetPubkey() string
- func (*Artist) ProtoMessage()
- func (m *Artist) Reset()
- func (m *Artist) String() string
- func (m *Artist) XXX_DiscardUnknown()
- func (m *Artist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Artist) XXX_Merge(src proto.Message)
- func (m *Artist) XXX_Size() int
- func (m *Artist) XXX_Unmarshal(b []byte) error
- type ArtistPublication
- func (*ArtistPublication) Descriptor() ([]byte, []int)
- func (m *ArtistPublication) GetArtist() *Artist
- func (m *ArtistPublication) GetSerializedArtResources() []byte
- func (m *ArtistPublication) GetSignature() string
- func (*ArtistPublication) ProtoMessage()
- func (m *ArtistPublication) Reset()
- func (m *ArtistPublication) String() string
- func (m *ArtistPublication) XXX_DiscardUnknown()
- func (m *ArtistPublication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ArtistPublication) XXX_Merge(src proto.Message)
- func (m *ArtistPublication) XXX_Size() int
- func (m *ArtistPublication) XXX_Unmarshal(b []byte) error
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)
- func (m *Peer) GetHost() string
- func (m *Peer) GetPort() uint32
- func (m *Peer) GetPubkey() string
- func (*Peer) ProtoMessage()
- func (m *Peer) Reset()
- func (m *Peer) String() string
- func (m *Peer) XXX_DiscardUnknown()
- func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Peer) XXX_Merge(src proto.Message)
- func (m *Peer) XXX_Size() int
- func (m *Peer) XXX_Unmarshal(b []byte) error
- type Track
- func (*Track) Descriptor() ([]byte, []int)
- func (m *Track) GetAlbumTrackNumber() uint32
- func (m *Track) GetArtistAlbumId() string
- func (m *Track) GetArtistId() string
- func (m *Track) GetArtistTrackId() string
- func (m *Track) GetTitle() string
- func (*Track) ProtoMessage()
- func (m *Track) Reset()
- func (m *Track) String() string
- func (m *Track) XXX_DiscardUnknown()
- func (m *Track) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Track) XXX_Merge(src proto.Message)
- func (m *Track) XXX_Size() int
- func (m *Track) XXX_Unmarshal(b []byte) error
- type UnimplementedArtServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterArtServer ¶
Types ¶
type Album ¶
type Album struct { ArtistId string `protobuf:"bytes,1,opt,name=artist_id,json=artistId,proto3" json:"artist_id,omitempty"` ArtistAlbumId string `protobuf:"bytes,2,opt,name=artist_album_id,json=artistAlbumId,proto3" json:"artist_album_id,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` ArtistTrackId []string `protobuf:"bytes,4,rep,name=artist_track_id,json=artistTrackId,proto3" json:"artist_track_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Album) Descriptor ¶
func (*Album) GetArtistAlbumId ¶
func (*Album) GetArtistId ¶
func (*Album) GetArtistTrackId ¶
func (*Album) ProtoMessage ¶
func (*Album) ProtoMessage()
func (*Album) XXX_DiscardUnknown ¶
func (m *Album) XXX_DiscardUnknown()
func (*Album) XXX_Marshal ¶
func (*Album) XXX_Unmarshal ¶
type ArtClient ¶
type ArtClient interface {
GetArt(ctx context.Context, in *ArtRequest, opts ...grpc.CallOption) (*ArtistPublication, error)
}
ArtClient is the client API for Art service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewArtClient ¶
func NewArtClient(cc *grpc.ClientConn) ArtClient
type ArtRequest ¶
type ArtRequest struct { ArtistId string `protobuf:"bytes,1,opt,name=artist_id,json=artistId,proto3" json:"artist_id,omitempty"` ArtistTrackId string `protobuf:"bytes,2,opt,name=artist_track_id,json=artistTrackId,proto3" json:"artist_track_id,omitempty"` Since uint64 `protobuf:"varint,3,opt,name=since,proto3" json:"since,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ArtRequest) Descriptor ¶
func (*ArtRequest) Descriptor() ([]byte, []int)
func (*ArtRequest) GetArtistId ¶
func (m *ArtRequest) GetArtistId() string
func (*ArtRequest) GetArtistTrackId ¶
func (m *ArtRequest) GetArtistTrackId() string
func (*ArtRequest) GetSince ¶
func (m *ArtRequest) GetSince() uint64
func (*ArtRequest) ProtoMessage ¶
func (*ArtRequest) ProtoMessage()
func (*ArtRequest) Reset ¶
func (m *ArtRequest) Reset()
func (*ArtRequest) String ¶
func (m *ArtRequest) String() string
func (*ArtRequest) XXX_DiscardUnknown ¶
func (m *ArtRequest) XXX_DiscardUnknown()
func (*ArtRequest) XXX_Marshal ¶
func (m *ArtRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ArtRequest) XXX_Merge ¶
func (m *ArtRequest) XXX_Merge(src proto.Message)
func (*ArtRequest) XXX_Size ¶
func (m *ArtRequest) XXX_Size() int
func (*ArtRequest) XXX_Unmarshal ¶
func (m *ArtRequest) XXX_Unmarshal(b []byte) error
type ArtResources ¶
type ArtResources struct { Artists []*Artist `protobuf:"bytes,1,rep,name=artists,proto3" json:"artists,omitempty"` Albums []*Album `protobuf:"bytes,2,rep,name=albums,proto3" json:"albums,omitempty"` Tracks []*Track `protobuf:"bytes,3,rep,name=tracks,proto3" json:"tracks,omitempty"` Peers []*Peer `protobuf:"bytes,4,rep,name=peers,proto3" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ArtResources) Descriptor ¶
func (*ArtResources) Descriptor() ([]byte, []int)
func (*ArtResources) GetAlbums ¶
func (m *ArtResources) GetAlbums() []*Album
func (*ArtResources) GetArtists ¶
func (m *ArtResources) GetArtists() []*Artist
func (*ArtResources) GetPeers ¶
func (m *ArtResources) GetPeers() []*Peer
func (*ArtResources) GetTracks ¶
func (m *ArtResources) GetTracks() []*Track
func (*ArtResources) ProtoMessage ¶
func (*ArtResources) ProtoMessage()
func (*ArtResources) Reset ¶
func (m *ArtResources) Reset()
func (*ArtResources) String ¶
func (m *ArtResources) String() string
func (*ArtResources) XXX_DiscardUnknown ¶
func (m *ArtResources) XXX_DiscardUnknown()
func (*ArtResources) XXX_Marshal ¶
func (m *ArtResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ArtResources) XXX_Merge ¶
func (m *ArtResources) XXX_Merge(src proto.Message)
func (*ArtResources) XXX_Size ¶
func (m *ArtResources) XXX_Size() int
func (*ArtResources) XXX_Unmarshal ¶
func (m *ArtResources) XXX_Unmarshal(b []byte) error
type ArtServer ¶
type ArtServer interface {
GetArt(context.Context, *ArtRequest) (*ArtistPublication, error)
}
ArtServer is the server API for Art service.
type Artist ¶
type Artist struct { ArtistId string `protobuf:"bytes,1,opt,name=artist_id,json=artistId,proto3" json:"artist_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Artist) Descriptor ¶
func (*Artist) GetArtistId ¶
func (*Artist) ProtoMessage ¶
func (*Artist) ProtoMessage()
func (*Artist) XXX_DiscardUnknown ¶
func (m *Artist) XXX_DiscardUnknown()
func (*Artist) XXX_Marshal ¶
func (*Artist) XXX_Unmarshal ¶
type ArtistPublication ¶
type ArtistPublication struct { Artist *Artist `protobuf:"bytes,1,opt,name=artist,proto3" json:"artist,omitempty"` Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` SerializedArtResources []byte `` /* 129-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ArtistPublication) Descriptor ¶
func (*ArtistPublication) Descriptor() ([]byte, []int)
func (*ArtistPublication) GetArtist ¶
func (m *ArtistPublication) GetArtist() *Artist
func (*ArtistPublication) GetSerializedArtResources ¶
func (m *ArtistPublication) GetSerializedArtResources() []byte
func (*ArtistPublication) GetSignature ¶
func (m *ArtistPublication) GetSignature() string
func (*ArtistPublication) ProtoMessage ¶
func (*ArtistPublication) ProtoMessage()
func (*ArtistPublication) Reset ¶
func (m *ArtistPublication) Reset()
func (*ArtistPublication) String ¶
func (m *ArtistPublication) String() string
func (*ArtistPublication) XXX_DiscardUnknown ¶
func (m *ArtistPublication) XXX_DiscardUnknown()
func (*ArtistPublication) XXX_Marshal ¶
func (m *ArtistPublication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ArtistPublication) XXX_Merge ¶
func (m *ArtistPublication) XXX_Merge(src proto.Message)
func (*ArtistPublication) XXX_Size ¶
func (m *ArtistPublication) XXX_Size() int
func (*ArtistPublication) XXX_Unmarshal ¶
func (m *ArtistPublication) XXX_Unmarshal(b []byte) error
type Peer ¶
type Peer struct { Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Peer) Descriptor ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) XXX_DiscardUnknown ¶
func (m *Peer) XXX_DiscardUnknown()
func (*Peer) XXX_Unmarshal ¶
type Track ¶
type Track struct { ArtistId string `protobuf:"bytes,1,opt,name=artist_id,json=artistId,proto3" json:"artist_id,omitempty"` ArtistAlbumId string `protobuf:"bytes,2,opt,name=artist_album_id,json=artistAlbumId,proto3" json:"artist_album_id,omitempty"` ArtistTrackId string `protobuf:"bytes,3,opt,name=artist_track_id,json=artistTrackId,proto3" json:"artist_track_id,omitempty"` AlbumTrackNumber uint32 `protobuf:"varint,4,opt,name=album_track_number,json=albumTrackNumber,proto3" json:"album_track_number,omitempty"` Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Track) Descriptor ¶
func (*Track) GetAlbumTrackNumber ¶
func (*Track) GetArtistAlbumId ¶
func (*Track) GetArtistId ¶
func (*Track) GetArtistTrackId ¶
func (*Track) ProtoMessage ¶
func (*Track) ProtoMessage()
func (*Track) XXX_DiscardUnknown ¶
func (m *Track) XXX_DiscardUnknown()
func (*Track) XXX_Marshal ¶
func (*Track) XXX_Unmarshal ¶
type UnimplementedArtServer ¶
type UnimplementedArtServer struct { }
UnimplementedArtServer can be embedded to have forward compatible implementations.
func (*UnimplementedArtServer) GetArt ¶
func (*UnimplementedArtServer) GetArt(ctx context.Context, req *ArtRequest) (*ArtistPublication, error)
Click to show internal directories.
Click to hide internal directories.