proto

package
v0.0.0-...-fae5159 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGenreServiceHandler

func RegisterGenreServiceHandler(s server.Server, hdlr GenreServiceHandler, opts ...server.HandlerOption) error

func RegisterLanguageServiceHandler

func RegisterLanguageServiceHandler(s server.Server, hdlr LanguageServiceHandler, opts ...server.HandlerOption) error

func RegisterMovieServiceHandler

func RegisterMovieServiceHandler(s server.Server, hdlr MovieServiceHandler, opts ...server.HandlerOption) error

func RegisterPermissionServiceHandler

func RegisterPermissionServiceHandler(s server.Server, hdlr PermissionServiceHandler, opts ...server.HandlerOption) error

func RegisterUserServiceHandler

func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error

Types

type DatabaseEmpty

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

func (*DatabaseEmpty) Descriptor

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

func (*DatabaseEmpty) ProtoMessage

func (*DatabaseEmpty) ProtoMessage()

func (*DatabaseEmpty) Reset

func (m *DatabaseEmpty) Reset()

func (*DatabaseEmpty) String

func (m *DatabaseEmpty) String() string

func (*DatabaseEmpty) XXX_DiscardUnknown

func (m *DatabaseEmpty) XXX_DiscardUnknown()

func (*DatabaseEmpty) XXX_Marshal

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

func (*DatabaseEmpty) XXX_Merge

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

func (*DatabaseEmpty) XXX_Size

func (m *DatabaseEmpty) XXX_Size() int

func (*DatabaseEmpty) XXX_Unmarshal

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

type DatabaseID

type DatabaseID struct {
	Value                uint64   `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DatabaseID) Descriptor

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

func (*DatabaseID) GetValue

func (m *DatabaseID) GetValue() uint64

func (*DatabaseID) ProtoMessage

func (*DatabaseID) ProtoMessage()

func (*DatabaseID) Reset

func (m *DatabaseID) Reset()

func (*DatabaseID) String

func (m *DatabaseID) String() string

func (*DatabaseID) XXX_DiscardUnknown

func (m *DatabaseID) XXX_DiscardUnknown()

func (*DatabaseID) XXX_Marshal

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

func (*DatabaseID) XXX_Merge

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

func (*DatabaseID) XXX_Size

func (m *DatabaseID) XXX_Size() int

func (*DatabaseID) XXX_Unmarshal

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

type DatabaseIDs

type DatabaseIDs struct {
	Values               []uint64 `protobuf:"varint,1,rep,packed,name=values,proto3" json:"values,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DatabaseIDs) Descriptor

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

func (*DatabaseIDs) GetValues

func (m *DatabaseIDs) GetValues() []uint64

func (*DatabaseIDs) ProtoMessage

func (*DatabaseIDs) ProtoMessage()

func (*DatabaseIDs) Reset

func (m *DatabaseIDs) Reset()

func (*DatabaseIDs) String

func (m *DatabaseIDs) String() string

func (*DatabaseIDs) XXX_DiscardUnknown

func (m *DatabaseIDs) XXX_DiscardUnknown()

func (*DatabaseIDs) XXX_Marshal

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

func (*DatabaseIDs) XXX_Merge

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

func (*DatabaseIDs) XXX_Size

func (m *DatabaseIDs) XXX_Size() int

func (*DatabaseIDs) XXX_Unmarshal

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

type DatabaseResponse

type DatabaseResponse struct {
	Result               []byte   `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DatabaseResponse) Descriptor

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

func (*DatabaseResponse) GetResult

func (m *DatabaseResponse) GetResult() []byte

func (*DatabaseResponse) ProtoMessage

func (*DatabaseResponse) ProtoMessage()

func (*DatabaseResponse) Reset

func (m *DatabaseResponse) Reset()

func (*DatabaseResponse) String

func (m *DatabaseResponse) String() string

func (*DatabaseResponse) XXX_DiscardUnknown

func (m *DatabaseResponse) XXX_DiscardUnknown()

func (*DatabaseResponse) XXX_Marshal

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

func (*DatabaseResponse) XXX_Merge

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

func (*DatabaseResponse) XXX_Size

func (m *DatabaseResponse) XXX_Size() int

func (*DatabaseResponse) XXX_Unmarshal

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

type DatabaseString

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

func (*DatabaseString) Descriptor

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

func (*DatabaseString) GetValue

func (m *DatabaseString) GetValue() string

func (*DatabaseString) ProtoMessage

func (*DatabaseString) ProtoMessage()

func (*DatabaseString) Reset

func (m *DatabaseString) Reset()

func (*DatabaseString) String

func (m *DatabaseString) String() string

func (*DatabaseString) XXX_DiscardUnknown

func (m *DatabaseString) XXX_DiscardUnknown()

func (*DatabaseString) XXX_Marshal

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

func (*DatabaseString) XXX_Merge

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

func (*DatabaseString) XXX_Size

func (m *DatabaseString) XXX_Size() int

func (*DatabaseString) XXX_Unmarshal

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

type DatabaseStrings

type DatabaseStrings struct {
	Values               []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DatabaseStrings) Descriptor

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

func (*DatabaseStrings) GetValues

func (m *DatabaseStrings) GetValues() []string

func (*DatabaseStrings) ProtoMessage

func (*DatabaseStrings) ProtoMessage()

func (*DatabaseStrings) Reset

func (m *DatabaseStrings) Reset()

func (*DatabaseStrings) String

func (m *DatabaseStrings) String() string

func (*DatabaseStrings) XXX_DiscardUnknown

func (m *DatabaseStrings) XXX_DiscardUnknown()

func (*DatabaseStrings) XXX_Marshal

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

func (*DatabaseStrings) XXX_Merge

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

func (*DatabaseStrings) XXX_Size

func (m *DatabaseStrings) XXX_Size() int

func (*DatabaseStrings) XXX_Unmarshal

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

type Genre

type Genre struct {
	Id                   uint64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt            int64    `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            int64    `protobuf:"varint,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	UpdatedFields        []string `protobuf:"bytes,5,rep,name=updated_fields,json=updatedFields,proto3" json:"updated_fields,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Genre) Descriptor

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

func (*Genre) GetCreatedAt

func (m *Genre) GetCreatedAt() int64

func (*Genre) GetId

func (m *Genre) GetId() uint64

func (*Genre) GetName

func (m *Genre) GetName() string

func (*Genre) GetUpdatedAt

func (m *Genre) GetUpdatedAt() int64

func (*Genre) GetUpdatedFields

func (m *Genre) GetUpdatedFields() []string

func (*Genre) ProtoMessage

func (*Genre) ProtoMessage()

func (*Genre) Reset

func (m *Genre) Reset()

func (*Genre) String

func (m *Genre) String() string

func (*Genre) XXX_DiscardUnknown

func (m *Genre) XXX_DiscardUnknown()

func (*Genre) XXX_Marshal

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

func (*Genre) XXX_Merge

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

func (*Genre) XXX_Size

func (m *Genre) XXX_Size() int

func (*Genre) XXX_Unmarshal

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

type GenreService

type GenreService interface {
	Create(ctx context.Context, in *Genre, opts ...client.CallOption) (*DatabaseResponse, error)
	Update(ctx context.Context, in *Genre, opts ...client.CallOption) (*DatabaseResponse, error)
	SoftDelete(ctx context.Context, in *Genre, opts ...client.CallOption) (*DatabaseResponse, error)
	ForceDelete(ctx context.Context, in *Genre, opts ...client.CallOption) (*DatabaseResponse, error)
	FindAll(ctx context.Context, in *DatabaseEmpty, opts ...client.CallOption) (*DatabaseResponse, error)
	FindOneByID(ctx context.Context, in *DatabaseID, opts ...client.CallOption) (*DatabaseResponse, error)
	FindManyByID(ctx context.Context, in *DatabaseIDs, opts ...client.CallOption) (*DatabaseResponse, error)
	FindOneByName(ctx context.Context, in *DatabaseString, opts ...client.CallOption) (*DatabaseResponse, error)
	FindManyByName(ctx context.Context, in *DatabaseStrings, opts ...client.CallOption) (*DatabaseResponse, error)
}

func NewGenreService

func NewGenreService(name string, c client.Client) GenreService

type Language

type Language struct {
	Id                   uint64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Iso                  string   `protobuf:"bytes,2,opt,name=iso,proto3" json:"iso,omitempty"`
	EnglishName          string   `protobuf:"bytes,3,opt,name=english_name,json=englishName,proto3" json:"english_name,omitempty"`
	Name                 string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt            int64    `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            int64    `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	UpdatedFields        []string `protobuf:"bytes,7,rep,name=updated_fields,json=updatedFields,proto3" json:"updated_fields,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Language) Descriptor

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

func (*Language) GetCreatedAt

func (m *Language) GetCreatedAt() int64

func (*Language) GetEnglishName

func (m *Language) GetEnglishName() string

func (*Language) GetId

func (m *Language) GetId() uint64

func (*Language) GetIso

func (m *Language) GetIso() string

func (*Language) GetName

func (m *Language) GetName() string

func (*Language) GetUpdatedAt

func (m *Language) GetUpdatedAt() int64

func (*Language) GetUpdatedFields

func (m *Language) GetUpdatedFields() []string

func (*Language) ProtoMessage

func (*Language) ProtoMessage()

func (*Language) Reset

func (m *Language) Reset()

func (*Language) String

func (m *Language) String() string

func (*Language) XXX_DiscardUnknown

func (m *Language) XXX_DiscardUnknown()

func (*Language) XXX_Marshal

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

func (*Language) XXX_Merge

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

func (*Language) XXX_Size

func (m *Language) XXX_Size() int

func (*Language) XXX_Unmarshal

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

type LanguageService

type LanguageService interface {
	Create(ctx context.Context, in *Language, opts ...client.CallOption) (*DatabaseResponse, error)
	Update(ctx context.Context, in *Language, opts ...client.CallOption) (*DatabaseResponse, error)
	SoftDelete(ctx context.Context, in *Language, opts ...client.CallOption) (*DatabaseResponse, error)
	ForceDelete(ctx context.Context, in *Language, opts ...client.CallOption) (*DatabaseResponse, error)
	FindAll(ctx context.Context, in *DatabaseEmpty, opts ...client.CallOption) (*DatabaseResponse, error)
	FindOneByISO(ctx context.Context, in *DatabaseString, opts ...client.CallOption) (*DatabaseResponse, error)
	FindManyByISO(ctx context.Context, in *DatabaseStrings, opts ...client.CallOption) (*DatabaseResponse, error)
}

func NewLanguageService

func NewLanguageService(name string, c client.Client) LanguageService

type Movie

type Movie struct {
	Id                   uint64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title                string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	OriginalTitle        string   `protobuf:"bytes,3,opt,name=original_title,json=originalTitle,proto3" json:"original_title,omitempty"`
	LocalTitle           string   `protobuf:"bytes,4,opt,name=local_title,json=localTitle,proto3" json:"local_title,omitempty"`
	OriginalLanguage     string   `protobuf:"bytes,5,opt,name=original_language,json=originalLanguage,proto3" json:"original_language,omitempty"`
	Languages            []byte   `protobuf:"bytes,6,opt,name=languages,proto3" json:"languages,omitempty"`
	Overview             string   `protobuf:"bytes,7,opt,name=overview,proto3" json:"overview,omitempty"`
	Tagline              string   `protobuf:"bytes,8,opt,name=tagline,proto3" json:"tagline,omitempty"`
	Genres               []byte   `protobuf:"bytes,9,opt,name=genres,proto3" json:"genres,omitempty"`
	Homepage             string   `protobuf:"bytes,10,opt,name=homepage,proto3" json:"homepage,omitempty"`
	Runtime              uint64   `protobuf:"varint,11,opt,name=runtime,proto3" json:"runtime,omitempty"`
	Status               uint64   `protobuf:"varint,12,opt,name=status,proto3" json:"status,omitempty"`
	Adult                bool     `protobuf:"varint,13,opt,name=adult,proto3" json:"adult,omitempty"`
	ImdbId               string   `protobuf:"bytes,14,opt,name=imdb_id,json=imdbId,proto3" json:"imdb_id,omitempty"`
	ReleaseDate          string   `protobuf:"bytes,15,opt,name=release_date,json=releaseDate,proto3" json:"release_date,omitempty"`
	ProductionCompanies  []byte   `protobuf:"bytes,16,opt,name=production_companies,json=productionCompanies,proto3" json:"production_companies,omitempty"`
	ProductionCountries  []byte   `protobuf:"bytes,17,opt,name=production_countries,json=productionCountries,proto3" json:"production_countries,omitempty"`
	VoteAverage          float64  `protobuf:"fixed64,18,opt,name=vote_average,json=voteAverage,proto3" json:"vote_average,omitempty"`
	VoteCount            uint64   `protobuf:"varint,19,opt,name=vote_count,json=voteCount,proto3" json:"vote_count,omitempty"`
	Popularity           float64  `protobuf:"fixed64,20,opt,name=popularity,proto3" json:"popularity,omitempty"`
	Budget               uint64   `protobuf:"varint,21,opt,name=budget,proto3" json:"budget,omitempty"`
	Revenue              uint64   `protobuf:"varint,22,opt,name=revenue,proto3" json:"revenue,omitempty"`
	Backdrop             string   `protobuf:"bytes,23,opt,name=backdrop,proto3" json:"backdrop,omitempty"`
	Poster               string   `protobuf:"bytes,24,opt,name=poster,proto3" json:"poster,omitempty"`
	CreatedAt            int64    `protobuf:"varint,25,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            int64    `protobuf:"varint,26,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	UpdatedFields        []string `protobuf:"bytes,27,rep,name=updated_fields,json=updatedFields,proto3" json:"updated_fields,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Movie) Descriptor

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

func (*Movie) GetAdult

func (m *Movie) GetAdult() bool

func (*Movie) GetBackdrop

func (m *Movie) GetBackdrop() string

func (*Movie) GetBudget

func (m *Movie) GetBudget() uint64

func (*Movie) GetCreatedAt

func (m *Movie) GetCreatedAt() int64

func (*Movie) GetGenres

func (m *Movie) GetGenres() []byte

func (*Movie) GetHomepage

func (m *Movie) GetHomepage() string

func (*Movie) GetId

func (m *Movie) GetId() uint64

func (*Movie) GetImdbId

func (m *Movie) GetImdbId() string

func (*Movie) GetLanguages

func (m *Movie) GetLanguages() []byte

func (*Movie) GetLocalTitle

func (m *Movie) GetLocalTitle() string

func (*Movie) GetOriginalLanguage

func (m *Movie) GetOriginalLanguage() string

func (*Movie) GetOriginalTitle

func (m *Movie) GetOriginalTitle() string

func (*Movie) GetOverview

func (m *Movie) GetOverview() string

func (*Movie) GetPopularity

func (m *Movie) GetPopularity() float64

func (*Movie) GetPoster

func (m *Movie) GetPoster() string

func (*Movie) GetProductionCompanies

func (m *Movie) GetProductionCompanies() []byte

func (*Movie) GetProductionCountries

func (m *Movie) GetProductionCountries() []byte

func (*Movie) GetReleaseDate

func (m *Movie) GetReleaseDate() string

func (*Movie) GetRevenue

func (m *Movie) GetRevenue() uint64

func (*Movie) GetRuntime

func (m *Movie) GetRuntime() uint64

func (*Movie) GetStatus

func (m *Movie) GetStatus() uint64

func (*Movie) GetTagline

func (m *Movie) GetTagline() string

func (*Movie) GetTitle

func (m *Movie) GetTitle() string

func (*Movie) GetUpdatedAt

func (m *Movie) GetUpdatedAt() int64

func (*Movie) GetUpdatedFields

func (m *Movie) GetUpdatedFields() []string

func (*Movie) GetVoteAverage

func (m *Movie) GetVoteAverage() float64

func (*Movie) GetVoteCount

func (m *Movie) GetVoteCount() uint64

func (*Movie) ProtoMessage

func (*Movie) ProtoMessage()

func (*Movie) Reset

func (m *Movie) Reset()

func (*Movie) String

func (m *Movie) String() string

func (*Movie) XXX_DiscardUnknown

func (m *Movie) XXX_DiscardUnknown()

func (*Movie) XXX_Marshal

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

func (*Movie) XXX_Merge

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

func (*Movie) XXX_Size

func (m *Movie) XXX_Size() int

func (*Movie) XXX_Unmarshal

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

type MovieService

type MovieService interface {
	Create(ctx context.Context, in *Movie, opts ...client.CallOption) (*DatabaseResponse, error)
	Update(ctx context.Context, in *Movie, opts ...client.CallOption) (*DatabaseResponse, error)
	SoftDelete(ctx context.Context, in *Movie, opts ...client.CallOption) (*DatabaseResponse, error)
	ForceDelete(ctx context.Context, in *Movie, opts ...client.CallOption) (*DatabaseResponse, error)
	FindAll(ctx context.Context, in *DatabaseEmpty, opts ...client.CallOption) (*DatabaseResponse, error)
	FindOnlyIDs(ctx context.Context, in *DatabaseEmpty, opts ...client.CallOption) (*DatabaseResponse, error)
	FindDownloaded(ctx context.Context, in *DatabaseEmpty, opts ...client.CallOption) (*DatabaseResponse, error)
	FindOneByID(ctx context.Context, in *DatabaseID, opts ...client.CallOption) (*DatabaseResponse, error)
	FindManyByID(ctx context.Context, in *DatabaseIDs, opts ...client.CallOption) (*DatabaseResponse, error)
	FindOneByTitle(ctx context.Context, in *DatabaseString, opts ...client.CallOption) (*DatabaseResponse, error)
	FindManyByTitle(ctx context.Context, in *DatabaseStrings, opts ...client.CallOption) (*DatabaseResponse, error)
	FindOneByOriginalTitle(ctx context.Context, in *DatabaseString, opts ...client.CallOption) (*DatabaseResponse, error)
	FindManyByOriginalTitle(ctx context.Context, in *DatabaseStrings, opts ...client.CallOption) (*DatabaseResponse, error)
	FindOneByLocalTitle(ctx context.Context, in *DatabaseString, opts ...client.CallOption) (*DatabaseResponse, error)
	FindManyByLocalTitle(ctx context.Context, in *DatabaseStrings, opts ...client.CallOption) (*DatabaseResponse, error)
}

func NewMovieService

func NewMovieService(name string, c client.Client) MovieService

type PermissionService

type PermissionService interface {
	FindOneByID(ctx context.Context, in *DatabaseID, opts ...client.CallOption) (*DatabaseResponse, error)
	FindManyByID(ctx context.Context, in *DatabaseIDs, opts ...client.CallOption) (*DatabaseResponse, error)
	FindOneByName(ctx context.Context, in *DatabaseString, opts ...client.CallOption) (*DatabaseResponse, error)
}

func NewPermissionService

func NewPermissionService(name string, c client.Client) PermissionService

type PermissionServiceHandler

type PermissionServiceHandler interface {
	FindOneByID(context.Context, *DatabaseID, *DatabaseResponse) error
	FindManyByID(context.Context, *DatabaseIDs, *DatabaseResponse) error
	FindOneByName(context.Context, *DatabaseString, *DatabaseResponse) error
}

type UserService

type UserService interface {
	FindOneByID(ctx context.Context, in *DatabaseID, opts ...client.CallOption) (*DatabaseResponse, error)
	FindManyByID(ctx context.Context, in *DatabaseIDs, opts ...client.CallOption) (*DatabaseResponse, error)
	FindOneByUsername(ctx context.Context, in *DatabaseString, opts ...client.CallOption) (*DatabaseResponse, error)
	FindManyByUsername(ctx context.Context, in *DatabaseStrings, opts ...client.CallOption) (*DatabaseResponse, error)
	FindOneByEmail(ctx context.Context, in *DatabaseString, opts ...client.CallOption) (*DatabaseResponse, error)
	FindManyByEmail(ctx context.Context, in *DatabaseStrings, opts ...client.CallOption) (*DatabaseResponse, error)
}

func NewUserService

func NewUserService(name string, c client.Client) UserService

Jump to

Keyboard shortcuts

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