api

package
v0.0.0-...-cf493b0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthApi        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApi          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Category_name = map[int32]string{
	0:  "ALL",
	1:  "PREMIUM",
	2:  "TOOLS",
	3:  "ECONOMY",
	4:  "CHAT",
	5:  "MECHANICS",
	6:  "ADMIN",
	7:  "BUNGEE",
	8:  "FUN",
	9:  "MISC",
	10: "LIBRARIES",
}
View Source
var Category_value = map[string]int32{
	"ALL":       0,
	"PREMIUM":   1,
	"TOOLS":     2,
	"ECONOMY":   3,
	"CHAT":      4,
	"MECHANICS": 5,
	"ADMIN":     6,
	"BUNGEE":    7,
	"FUN":       8,
	"MISC":      9,
	"LIBRARIES": 10,
}
View Source
var Sort_name = map[int32]string{
	0: "NONE",
	1: "DOWNLOADS",
	2: "PURCHASES",
	3: "LATEST",
}
View Source
var Sort_value = map[string]int32{
	"NONE":      0,
	"DOWNLOADS": 1,
	"PURCHASES": 2,
	"LATEST":    3,
}

Functions

func RegisterChangelogServiceServer

func RegisterChangelogServiceServer(s *grpc.Server, srv ChangelogServiceServer)

func RegisterPluginsServiceServer

func RegisterPluginsServiceServer(s *grpc.Server, srv PluginsServiceServer)

func RegisterReadmeServiceServer

func RegisterReadmeServiceServer(s *grpc.Server, srv ReadmeServiceServer)

func RegisterSessionServiceServer

func RegisterSessionServiceServer(s *grpc.Server, srv SessionServiceServer)

func RegisterUsersServiceServer

func RegisterUsersServiceServer(s *grpc.Server, srv UsersServiceServer)

Types

type Category

type Category int32
const (
	Category_ALL       Category = 0
	Category_PREMIUM   Category = 1
	Category_TOOLS     Category = 2
	Category_ECONOMY   Category = 3
	Category_CHAT      Category = 4
	Category_MECHANICS Category = 5
	Category_ADMIN     Category = 6
	Category_BUNGEE    Category = 7
	Category_FUN       Category = 8
	Category_MISC      Category = 9
	Category_LIBRARIES Category = 10
)

func (Category) EnumDescriptor

func (Category) EnumDescriptor() ([]byte, []int)

func (Category) String

func (x Category) String() string

type Changelog

type Changelog struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	PluginId             string   `protobuf:"bytes,2,opt,name=pluginId,proto3" json:"pluginId,omitempty"`
	Version              string   `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	Added                []string `protobuf:"bytes,4,rep,name=added,proto3" json:"added,omitempty"`
	Removed              []string `protobuf:"bytes,5,rep,name=removed,proto3" json:"removed,omitempty"`
	Updated              []string `protobuf:"bytes,6,rep,name=updated,proto3" json:"updated,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Changelog) Descriptor

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

func (*Changelog) GetAdded

func (m *Changelog) GetAdded() []string

func (*Changelog) GetId

func (m *Changelog) GetId() string

func (*Changelog) GetPluginId

func (m *Changelog) GetPluginId() string

func (*Changelog) GetRemoved

func (m *Changelog) GetRemoved() []string

func (*Changelog) GetUpdated

func (m *Changelog) GetUpdated() []string

func (*Changelog) GetVersion

func (m *Changelog) GetVersion() string

func (*Changelog) Marshal

func (m *Changelog) Marshal() (dAtA []byte, err error)

func (*Changelog) MarshalTo

func (m *Changelog) MarshalTo(dAtA []byte) (int, error)

func (*Changelog) MarshalToSizedBuffer

func (m *Changelog) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Changelog) ProtoMessage

func (*Changelog) ProtoMessage()

func (*Changelog) Reset

func (m *Changelog) Reset()

func (*Changelog) Size

func (m *Changelog) Size() (n int)

func (*Changelog) String

func (m *Changelog) String() string

func (*Changelog) Unmarshal

func (m *Changelog) Unmarshal(dAtA []byte) error

func (*Changelog) XXX_DiscardUnknown

func (m *Changelog) XXX_DiscardUnknown()

func (*Changelog) XXX_Marshal

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

func (*Changelog) XXX_Merge

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

func (*Changelog) XXX_Size

func (m *Changelog) XXX_Size() int

func (*Changelog) XXX_Unmarshal

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

type ChangelogServiceClient

type ChangelogServiceClient interface {
	Get(ctx context.Context, in *Changelog, opts ...grpc.CallOption) (*Changelog, error)
	Insert(ctx context.Context, in *Changelog, opts ...grpc.CallOption) (*Empty, error)
	GetAll(ctx context.Context, in *Changelog, opts ...grpc.CallOption) (*Changelogs, error)
}

ChangelogServiceClient is the client API for ChangelogService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewChangelogServiceClient

func NewChangelogServiceClient(cc *grpc.ClientConn) ChangelogServiceClient

type ChangelogServiceServer

type ChangelogServiceServer interface {
	Get(context.Context, *Changelog) (*Changelog, error)
	Insert(context.Context, *Changelog) (*Empty, error)
	GetAll(context.Context, *Changelog) (*Changelogs, error)
}

ChangelogServiceServer is the server API for ChangelogService service.

type Changelogs

type Changelogs struct {
	Changelogs           []*Changelog `protobuf:"bytes,1,rep,name=changelogs,proto3" json:"changelogs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*Changelogs) Descriptor

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

func (*Changelogs) GetChangelogs

func (m *Changelogs) GetChangelogs() []*Changelog

func (*Changelogs) Marshal

func (m *Changelogs) Marshal() (dAtA []byte, err error)

func (*Changelogs) MarshalTo

func (m *Changelogs) MarshalTo(dAtA []byte) (int, error)

func (*Changelogs) MarshalToSizedBuffer

func (m *Changelogs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Changelogs) ProtoMessage

func (*Changelogs) ProtoMessage()

func (*Changelogs) Reset

func (m *Changelogs) Reset()

func (*Changelogs) Size

func (m *Changelogs) Size() (n int)

func (*Changelogs) String

func (m *Changelogs) String() string

func (*Changelogs) Unmarshal

func (m *Changelogs) Unmarshal(dAtA []byte) error

func (*Changelogs) XXX_DiscardUnknown

func (m *Changelogs) XXX_DiscardUnknown()

func (*Changelogs) XXX_Marshal

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

func (*Changelogs) XXX_Merge

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

func (*Changelogs) XXX_Size

func (m *Changelogs) XXX_Size() int

func (*Changelogs) XXX_Unmarshal

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

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

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

func (*Empty) Marshal

func (m *Empty) Marshal() (dAtA []byte, err error)

func (*Empty) MarshalTo

func (m *Empty) MarshalTo(dAtA []byte) (int, error)

func (*Empty) MarshalToSizedBuffer

func (m *Empty) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) Size

func (m *Empty) Size() (n int)

func (*Empty) String

func (m *Empty) String() string

func (*Empty) Unmarshal

func (m *Empty) Unmarshal(dAtA []byte) error

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

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

func (*Empty) XXX_Merge

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

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

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

type PaginatePluginsRequest

type PaginatePluginsRequest struct {
	Page                 int32    `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Count                int32    `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Search               string   `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"`
	Category             Category `protobuf:"varint,4,opt,name=category,proto3,enum=api.Category" json:"category,omitempty"`
	Sort                 Sort     `protobuf:"varint,5,opt,name=sort,proto3,enum=api.Sort" json:"sort,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PaginatePluginsRequest) Descriptor

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

func (*PaginatePluginsRequest) GetCategory

func (m *PaginatePluginsRequest) GetCategory() Category

func (*PaginatePluginsRequest) GetCount

func (m *PaginatePluginsRequest) GetCount() int32

func (*PaginatePluginsRequest) GetPage

func (m *PaginatePluginsRequest) GetPage() int32

func (*PaginatePluginsRequest) GetSearch

func (m *PaginatePluginsRequest) GetSearch() string

func (*PaginatePluginsRequest) GetSort

func (m *PaginatePluginsRequest) GetSort() Sort

func (*PaginatePluginsRequest) Marshal

func (m *PaginatePluginsRequest) Marshal() (dAtA []byte, err error)

func (*PaginatePluginsRequest) MarshalTo

func (m *PaginatePluginsRequest) MarshalTo(dAtA []byte) (int, error)

func (*PaginatePluginsRequest) MarshalToSizedBuffer

func (m *PaginatePluginsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PaginatePluginsRequest) ProtoMessage

func (*PaginatePluginsRequest) ProtoMessage()

func (*PaginatePluginsRequest) Reset

func (m *PaginatePluginsRequest) Reset()

func (*PaginatePluginsRequest) Size

func (m *PaginatePluginsRequest) Size() (n int)

func (*PaginatePluginsRequest) String

func (m *PaginatePluginsRequest) String() string

func (*PaginatePluginsRequest) Unmarshal

func (m *PaginatePluginsRequest) Unmarshal(dAtA []byte) error

func (*PaginatePluginsRequest) XXX_DiscardUnknown

func (m *PaginatePluginsRequest) XXX_DiscardUnknown()

func (*PaginatePluginsRequest) XXX_Marshal

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

func (*PaginatePluginsRequest) XXX_Merge

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

func (*PaginatePluginsRequest) XXX_Size

func (m *PaginatePluginsRequest) XXX_Size() int

func (*PaginatePluginsRequest) XXX_Unmarshal

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

type PaginatePluginsResponse

type PaginatePluginsResponse struct {
	Plugins              []*Plugin `protobuf:"bytes,1,rep,name=plugins,proto3" json:"plugins,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*PaginatePluginsResponse) Descriptor

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

func (*PaginatePluginsResponse) GetPlugins

func (m *PaginatePluginsResponse) GetPlugins() []*Plugin

func (*PaginatePluginsResponse) Marshal

func (m *PaginatePluginsResponse) Marshal() (dAtA []byte, err error)

func (*PaginatePluginsResponse) MarshalTo

func (m *PaginatePluginsResponse) MarshalTo(dAtA []byte) (int, error)

func (*PaginatePluginsResponse) MarshalToSizedBuffer

func (m *PaginatePluginsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PaginatePluginsResponse) ProtoMessage

func (*PaginatePluginsResponse) ProtoMessage()

func (*PaginatePluginsResponse) Reset

func (m *PaginatePluginsResponse) Reset()

func (*PaginatePluginsResponse) Size

func (m *PaginatePluginsResponse) Size() (n int)

func (*PaginatePluginsResponse) String

func (m *PaginatePluginsResponse) String() string

func (*PaginatePluginsResponse) Unmarshal

func (m *PaginatePluginsResponse) Unmarshal(dAtA []byte) error

func (*PaginatePluginsResponse) XXX_DiscardUnknown

func (m *PaginatePluginsResponse) XXX_DiscardUnknown()

func (*PaginatePluginsResponse) XXX_Marshal

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

func (*PaginatePluginsResponse) XXX_Merge

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

func (*PaginatePluginsResponse) XXX_Size

func (m *PaginatePluginsResponse) XXX_Size() int

func (*PaginatePluginsResponse) XXX_Unmarshal

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

type Plugin

type Plugin struct {
	Id                   string          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string          `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Author               *User           `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
	Version              string          `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	Description          string          `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	Thumbnail            string          `protobuf:"bytes,6,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
	Category             Category        `protobuf:"varint,7,opt,name=category,proto3,enum=api.Category" json:"category,omitempty"`
	Metadata             *PluginMetadata `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Premium              *Premium        `protobuf:"bytes,9,opt,name=premium,proto3" json:"premium,omitempty"`
	LastUpdated          int64           `protobuf:"varint,10,opt,name=lastUpdated,proto3" json:"lastUpdated,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*Plugin) Descriptor

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

func (*Plugin) GetAuthor

func (m *Plugin) GetAuthor() *User

func (*Plugin) GetCategory

func (m *Plugin) GetCategory() Category

func (*Plugin) GetDescription

func (m *Plugin) GetDescription() string

func (*Plugin) GetId

func (m *Plugin) GetId() string

func (*Plugin) GetLastUpdated

func (m *Plugin) GetLastUpdated() int64

func (*Plugin) GetMetadata

func (m *Plugin) GetMetadata() *PluginMetadata

func (*Plugin) GetName

func (m *Plugin) GetName() string

func (*Plugin) GetPremium

func (m *Plugin) GetPremium() *Premium

func (*Plugin) GetThumbnail

func (m *Plugin) GetThumbnail() string

func (*Plugin) GetVersion

func (m *Plugin) GetVersion() string

func (*Plugin) Marshal

func (m *Plugin) Marshal() (dAtA []byte, err error)

func (*Plugin) MarshalTo

func (m *Plugin) MarshalTo(dAtA []byte) (int, error)

func (*Plugin) MarshalToSizedBuffer

func (m *Plugin) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Plugin) ProtoMessage

func (*Plugin) ProtoMessage()

func (*Plugin) Reset

func (m *Plugin) Reset()

func (*Plugin) Size

func (m *Plugin) Size() (n int)

func (*Plugin) String

func (m *Plugin) String() string

func (*Plugin) Unmarshal

func (m *Plugin) Unmarshal(dAtA []byte) error

func (*Plugin) XXX_DiscardUnknown

func (m *Plugin) XXX_DiscardUnknown()

func (*Plugin) XXX_Marshal

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

func (*Plugin) XXX_Merge

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

func (*Plugin) XXX_Size

func (m *Plugin) XXX_Size() int

func (*Plugin) XXX_Unmarshal

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

type PluginMetadata

type PluginMetadata struct {
	Downloads            int64    `protobuf:"varint,1,opt,name=downloads,proto3" json:"downloads,omitempty"`
	Conflicts            []string `protobuf:"bytes,2,rep,name=conflicts,proto3" json:"conflicts,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PluginMetadata) Descriptor

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

func (*PluginMetadata) GetConflicts

func (m *PluginMetadata) GetConflicts() []string

func (*PluginMetadata) GetDownloads

func (m *PluginMetadata) GetDownloads() int64

func (*PluginMetadata) Marshal

func (m *PluginMetadata) Marshal() (dAtA []byte, err error)

func (*PluginMetadata) MarshalTo

func (m *PluginMetadata) MarshalTo(dAtA []byte) (int, error)

func (*PluginMetadata) MarshalToSizedBuffer

func (m *PluginMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PluginMetadata) ProtoMessage

func (*PluginMetadata) ProtoMessage()

func (*PluginMetadata) Reset

func (m *PluginMetadata) Reset()

func (*PluginMetadata) Size

func (m *PluginMetadata) Size() (n int)

func (*PluginMetadata) String

func (m *PluginMetadata) String() string

func (*PluginMetadata) Unmarshal

func (m *PluginMetadata) Unmarshal(dAtA []byte) error

func (*PluginMetadata) XXX_DiscardUnknown

func (m *PluginMetadata) XXX_DiscardUnknown()

func (*PluginMetadata) XXX_Marshal

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

func (*PluginMetadata) XXX_Merge

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

func (*PluginMetadata) XXX_Size

func (m *PluginMetadata) XXX_Size() int

func (*PluginMetadata) XXX_Unmarshal

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

type PluginsServiceClient

type PluginsServiceClient interface {
	Get(ctx context.Context, in *Plugin, opts ...grpc.CallOption) (*Plugin, error)
	Insert(ctx context.Context, in *Plugin, opts ...grpc.CallOption) (*Empty, error)
	Update(ctx context.Context, in *Plugin, opts ...grpc.CallOption) (*Empty, error)
	Paginate(ctx context.Context, in *PaginatePluginsRequest, opts ...grpc.CallOption) (*PaginatePluginsResponse, error)
}

PluginsServiceClient is the client API for PluginsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPluginsServiceClient

func NewPluginsServiceClient(cc *grpc.ClientConn) PluginsServiceClient

type PluginsServiceServer

type PluginsServiceServer interface {
	Get(context.Context, *Plugin) (*Plugin, error)
	Insert(context.Context, *Plugin) (*Empty, error)
	Update(context.Context, *Plugin) (*Empty, error)
	Paginate(context.Context, *PaginatePluginsRequest) (*PaginatePluginsResponse, error)
}

PluginsServiceServer is the server API for PluginsService service.

type Premium

type Premium struct {
	Price                int32    `protobuf:"varint,1,opt,name=price,proto3" json:"price,omitempty"`
	Purchases            int32    `protobuf:"varint,2,opt,name=purchases,proto3" json:"purchases,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Premium) Descriptor

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

func (*Premium) GetPrice

func (m *Premium) GetPrice() int32

func (*Premium) GetPurchases

func (m *Premium) GetPurchases() int32

func (*Premium) Marshal

func (m *Premium) Marshal() (dAtA []byte, err error)

func (*Premium) MarshalTo

func (m *Premium) MarshalTo(dAtA []byte) (int, error)

func (*Premium) MarshalToSizedBuffer

func (m *Premium) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Premium) ProtoMessage

func (*Premium) ProtoMessage()

func (*Premium) Reset

func (m *Premium) Reset()

func (*Premium) Size

func (m *Premium) Size() (n int)

func (*Premium) String

func (m *Premium) String() string

func (*Premium) Unmarshal

func (m *Premium) Unmarshal(dAtA []byte) error

func (*Premium) XXX_DiscardUnknown

func (m *Premium) XXX_DiscardUnknown()

func (*Premium) XXX_Marshal

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

func (*Premium) XXX_Merge

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

func (*Premium) XXX_Size

func (m *Premium) XXX_Size() int

func (*Premium) XXX_Unmarshal

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

type Purchase

type Purchase struct {
	ObjectId             string   `protobuf:"bytes,1,opt,name=objectId,proto3" json:"objectId,omitempty"`
	Session              string   `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
	Complete             bool     `protobuf:"varint,3,opt,name=complete,proto3" json:"complete,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Purchase) Descriptor

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

func (*Purchase) GetComplete

func (m *Purchase) GetComplete() bool

func (*Purchase) GetObjectId

func (m *Purchase) GetObjectId() string

func (*Purchase) GetSession

func (m *Purchase) GetSession() string

func (*Purchase) Marshal

func (m *Purchase) Marshal() (dAtA []byte, err error)

func (*Purchase) MarshalTo

func (m *Purchase) MarshalTo(dAtA []byte) (int, error)

func (*Purchase) MarshalToSizedBuffer

func (m *Purchase) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Purchase) ProtoMessage

func (*Purchase) ProtoMessage()

func (*Purchase) Reset

func (m *Purchase) Reset()

func (*Purchase) Size

func (m *Purchase) Size() (n int)

func (*Purchase) String

func (m *Purchase) String() string

func (*Purchase) Unmarshal

func (m *Purchase) Unmarshal(dAtA []byte) error

func (*Purchase) XXX_DiscardUnknown

func (m *Purchase) XXX_DiscardUnknown()

func (*Purchase) XXX_Marshal

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

func (*Purchase) XXX_Merge

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

func (*Purchase) XXX_Size

func (m *Purchase) XXX_Size() int

func (*Purchase) XXX_Unmarshal

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

type Readme

type Readme struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Plugin               *Plugin  `protobuf:"bytes,2,opt,name=plugin,proto3" json:"plugin,omitempty"`
	Text                 string   `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Readme) Descriptor

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

func (*Readme) GetId

func (m *Readme) GetId() string

func (*Readme) GetPlugin

func (m *Readme) GetPlugin() *Plugin

func (*Readme) GetText

func (m *Readme) GetText() string

func (*Readme) Marshal

func (m *Readme) Marshal() (dAtA []byte, err error)

func (*Readme) MarshalTo

func (m *Readme) MarshalTo(dAtA []byte) (int, error)

func (*Readme) MarshalToSizedBuffer

func (m *Readme) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Readme) ProtoMessage

func (*Readme) ProtoMessage()

func (*Readme) Reset

func (m *Readme) Reset()

func (*Readme) Size

func (m *Readme) Size() (n int)

func (*Readme) String

func (m *Readme) String() string

func (*Readme) Unmarshal

func (m *Readme) Unmarshal(dAtA []byte) error

func (*Readme) XXX_DiscardUnknown

func (m *Readme) XXX_DiscardUnknown()

func (*Readme) XXX_Marshal

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

func (*Readme) XXX_Merge

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

func (*Readme) XXX_Size

func (m *Readme) XXX_Size() int

func (*Readme) XXX_Unmarshal

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

type ReadmeServiceClient

type ReadmeServiceClient interface {
	Get(ctx context.Context, in *Plugin, opts ...grpc.CallOption) (*Readme, error)
	Insert(ctx context.Context, in *Readme, opts ...grpc.CallOption) (*Empty, error)
	Update(ctx context.Context, in *Readme, opts ...grpc.CallOption) (*Empty, error)
}

ReadmeServiceClient is the client API for ReadmeService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewReadmeServiceClient

func NewReadmeServiceClient(cc *grpc.ClientConn) ReadmeServiceClient

type ReadmeServiceServer

type ReadmeServiceServer interface {
	Get(context.Context, *Plugin) (*Readme, error)
	Insert(context.Context, *Readme) (*Empty, error)
	Update(context.Context, *Readme) (*Empty, error)
}

ReadmeServiceServer is the server API for ReadmeService service.

type Session

type Session struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId               string   `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
	LastRetrieved        int64    `protobuf:"varint,3,opt,name=lastRetrieved,proto3" json:"lastRetrieved,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Session) Descriptor

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

func (*Session) GetId

func (m *Session) GetId() string

func (*Session) GetLastRetrieved

func (m *Session) GetLastRetrieved() int64

func (*Session) GetUserId

func (m *Session) GetUserId() string

func (*Session) Marshal

func (m *Session) Marshal() (dAtA []byte, err error)

func (*Session) MarshalTo

func (m *Session) MarshalTo(dAtA []byte) (int, error)

func (*Session) MarshalToSizedBuffer

func (m *Session) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) Reset

func (m *Session) Reset()

func (*Session) Size

func (m *Session) Size() (n int)

func (*Session) String

func (m *Session) String() string

func (*Session) Unmarshal

func (m *Session) Unmarshal(dAtA []byte) error

func (*Session) XXX_DiscardUnknown

func (m *Session) XXX_DiscardUnknown()

func (*Session) XXX_Marshal

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

func (*Session) XXX_Merge

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

func (*Session) XXX_Size

func (m *Session) XXX_Size() int

func (*Session) XXX_Unmarshal

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

type SessionInsertResponse

type SessionInsertResponse struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SessionInsertResponse) Descriptor

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

func (*SessionInsertResponse) GetId

func (m *SessionInsertResponse) GetId() string

func (*SessionInsertResponse) Marshal

func (m *SessionInsertResponse) Marshal() (dAtA []byte, err error)

func (*SessionInsertResponse) MarshalTo

func (m *SessionInsertResponse) MarshalTo(dAtA []byte) (int, error)

func (*SessionInsertResponse) MarshalToSizedBuffer

func (m *SessionInsertResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SessionInsertResponse) ProtoMessage

func (*SessionInsertResponse) ProtoMessage()

func (*SessionInsertResponse) Reset

func (m *SessionInsertResponse) Reset()

func (*SessionInsertResponse) Size

func (m *SessionInsertResponse) Size() (n int)

func (*SessionInsertResponse) String

func (m *SessionInsertResponse) String() string

func (*SessionInsertResponse) Unmarshal

func (m *SessionInsertResponse) Unmarshal(dAtA []byte) error

func (*SessionInsertResponse) XXX_DiscardUnknown

func (m *SessionInsertResponse) XXX_DiscardUnknown()

func (*SessionInsertResponse) XXX_Marshal

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

func (*SessionInsertResponse) XXX_Merge

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

func (*SessionInsertResponse) XXX_Size

func (m *SessionInsertResponse) XXX_Size() int

func (*SessionInsertResponse) XXX_Unmarshal

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

type SessionServiceClient

type SessionServiceClient interface {
	Get(ctx context.Context, in *Session, opts ...grpc.CallOption) (*Session, error)
	Insert(ctx context.Context, in *Session, opts ...grpc.CallOption) (*SessionInsertResponse, error)
	Delete(ctx context.Context, in *Session, opts ...grpc.CallOption) (*Empty, error)
}

SessionServiceClient is the client API for SessionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSessionServiceClient

func NewSessionServiceClient(cc *grpc.ClientConn) SessionServiceClient

type SessionServiceServer

type SessionServiceServer interface {
	Get(context.Context, *Session) (*Session, error)
	Insert(context.Context, *Session) (*SessionInsertResponse, error)
	Delete(context.Context, *Session) (*Empty, error)
}

SessionServiceServer is the server API for SessionService service.

type Sort

type Sort int32
const (
	Sort_NONE      Sort = 0
	Sort_DOWNLOADS Sort = 1
	Sort_PURCHASES Sort = 2
	Sort_LATEST    Sort = 3
)

func (Sort) EnumDescriptor

func (Sort) EnumDescriptor() ([]byte, []int)

func (Sort) String

func (x Sort) String() string

type UnimplementedChangelogServiceServer

type UnimplementedChangelogServiceServer struct {
}

UnimplementedChangelogServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedChangelogServiceServer) Get

func (*UnimplementedChangelogServiceServer) GetAll

func (*UnimplementedChangelogServiceServer) Insert

type UnimplementedPluginsServiceServer

type UnimplementedPluginsServiceServer struct {
}

UnimplementedPluginsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedPluginsServiceServer) Get

func (*UnimplementedPluginsServiceServer) Insert

func (*UnimplementedPluginsServiceServer) Paginate

func (*UnimplementedPluginsServiceServer) Update

type UnimplementedReadmeServiceServer

type UnimplementedReadmeServiceServer struct {
}

UnimplementedReadmeServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedReadmeServiceServer) Get

func (*UnimplementedReadmeServiceServer) Insert

func (*UnimplementedReadmeServiceServer) Update

type UnimplementedSessionServiceServer

type UnimplementedSessionServiceServer struct {
}

UnimplementedSessionServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedSessionServiceServer) Delete

func (*UnimplementedSessionServiceServer) Get

func (*UnimplementedSessionServiceServer) Insert

type UnimplementedUsersServiceServer

type UnimplementedUsersServiceServer struct {
}

UnimplementedUsersServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUsersServiceServer) Get

func (*UnimplementedUsersServiceServer) Insert

func (*UnimplementedUsersServiceServer) Update

type User

type User struct {
	Id                   string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username             string      `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email                string      `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Password             string      `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	Scopes               []string    `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"`
	Tag                  string      `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"`
	Thumbnail            string      `protobuf:"bytes,7,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
	StripeId             string      `protobuf:"bytes,8,opt,name=stripeId,proto3" json:"stripeId,omitempty"`
	Purchases            []*Purchase `protobuf:"bytes,9,rep,name=purchases,proto3" json:"purchases,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetId

func (m *User) GetId() string

func (*User) GetPassword

func (m *User) GetPassword() string

func (*User) GetPurchases

func (m *User) GetPurchases() []*Purchase

func (*User) GetScopes

func (m *User) GetScopes() []string

func (*User) GetStripeId

func (m *User) GetStripeId() string

func (*User) GetTag

func (m *User) GetTag() string

func (*User) GetThumbnail

func (m *User) GetThumbnail() string

func (*User) GetUsername

func (m *User) GetUsername() string

func (*User) Marshal

func (m *User) Marshal() (dAtA []byte, err error)

func (*User) MarshalTo

func (m *User) MarshalTo(dAtA []byte) (int, error)

func (*User) MarshalToSizedBuffer

func (m *User) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) Size

func (m *User) Size() (n int)

func (*User) String

func (m *User) String() string

func (*User) Unmarshal

func (m *User) Unmarshal(dAtA []byte) error

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

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

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

type UsersServiceClient

type UsersServiceClient interface {
	Get(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error)
	Insert(ctx context.Context, in *User, opts ...grpc.CallOption) (*Empty, error)
	Update(ctx context.Context, in *User, opts ...grpc.CallOption) (*Empty, error)
}

UsersServiceClient is the client API for UsersService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUsersServiceClient

func NewUsersServiceClient(cc *grpc.ClientConn) UsersServiceClient

type UsersServiceServer

type UsersServiceServer interface {
	Get(context.Context, *User) (*User, error)
	Insert(context.Context, *User) (*Empty, error)
	Update(context.Context, *User) (*Empty, error)
}

UsersServiceServer is the server API for UsersService service.

Jump to

Keyboard shortcuts

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