net_audiostrike_art

package
v0.0.0-...-1973a51 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterArtServer

func RegisterArtServer(s *grpc.Server, srv ArtServer)

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) Descriptor() ([]byte, []int)

func (*Album) GetArtistAlbumId

func (m *Album) GetArtistAlbumId() string

func (*Album) GetArtistId

func (m *Album) GetArtistId() string

func (*Album) GetArtistTrackId

func (m *Album) GetArtistTrackId() []string

func (*Album) GetTitle

func (m *Album) GetTitle() string

func (*Album) ProtoMessage

func (*Album) ProtoMessage()

func (*Album) Reset

func (m *Album) Reset()

func (*Album) String

func (m *Album) String() string

func (*Album) XXX_DiscardUnknown

func (m *Album) XXX_DiscardUnknown()

func (*Album) XXX_Marshal

func (m *Album) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Album) XXX_Merge

func (m *Album) XXX_Merge(src proto.Message)

func (*Album) XXX_Size

func (m *Album) XXX_Size() int

func (*Album) XXX_Unmarshal

func (m *Album) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Artist) GetArtistId

func (m *Artist) GetArtistId() string

func (*Artist) GetName

func (m *Artist) GetName() string

func (*Artist) GetPubkey

func (m *Artist) GetPubkey() string

func (*Artist) ProtoMessage

func (*Artist) ProtoMessage()

func (*Artist) Reset

func (m *Artist) Reset()

func (*Artist) String

func (m *Artist) String() string

func (*Artist) XXX_DiscardUnknown

func (m *Artist) XXX_DiscardUnknown()

func (*Artist) XXX_Marshal

func (m *Artist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Artist) XXX_Merge

func (m *Artist) XXX_Merge(src proto.Message)

func (*Artist) XXX_Size

func (m *Artist) XXX_Size() int

func (*Artist) XXX_Unmarshal

func (m *Artist) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Peer) GetHost

func (m *Peer) GetHost() string

func (*Peer) GetPort

func (m *Peer) GetPort() uint32

func (*Peer) GetPubkey

func (m *Peer) GetPubkey() string

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) Reset

func (m *Peer) Reset()

func (*Peer) String

func (m *Peer) String() string

func (*Peer) XXX_DiscardUnknown

func (m *Peer) XXX_DiscardUnknown()

func (*Peer) XXX_Marshal

func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Peer) XXX_Merge

func (m *Peer) XXX_Merge(src proto.Message)

func (*Peer) XXX_Size

func (m *Peer) XXX_Size() int

func (*Peer) XXX_Unmarshal

func (m *Peer) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Track) GetAlbumTrackNumber

func (m *Track) GetAlbumTrackNumber() uint32

func (*Track) GetArtistAlbumId

func (m *Track) GetArtistAlbumId() string

func (*Track) GetArtistId

func (m *Track) GetArtistId() string

func (*Track) GetArtistTrackId

func (m *Track) GetArtistTrackId() string

func (*Track) GetTitle

func (m *Track) GetTitle() string

func (*Track) ProtoMessage

func (*Track) ProtoMessage()

func (*Track) Reset

func (m *Track) Reset()

func (*Track) String

func (m *Track) String() string

func (*Track) XXX_DiscardUnknown

func (m *Track) XXX_DiscardUnknown()

func (*Track) XXX_Marshal

func (m *Track) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Track) XXX_Merge

func (m *Track) XXX_Merge(src proto.Message)

func (*Track) XXX_Size

func (m *Track) XXX_Size() int

func (*Track) XXX_Unmarshal

func (m *Track) XXX_Unmarshal(b []byte) error

type UnimplementedArtServer

type UnimplementedArtServer struct {
}

UnimplementedArtServer can be embedded to have forward compatible implementations.

func (*UnimplementedArtServer) GetArt

Jump to

Keyboard shortcuts

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