Documentation ¶
Overview ¶
* Copyright 2018 Johannes Donath <johannesd@torchmind.com> * and other copyright owners as documented in the project's IP log. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright 2018 Johannes Donath <johannesd@torchmind.com> * and other copyright owners as documented in the project's IP log. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright 2018 Johannes Donath <johannesd@torchmind.com> * and other copyright owners as documented in the project's IP log. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright 2018 Johannes Donath <johannesd@torchmind.com> * and other copyright owners as documented in the project's IP log. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Copyright 2018 Johannes Donath <johannesd@torchmind.com> * and other copyright owners as documented in the project's IP log. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- type ErrorFunc
- type Stockpile
- func (s *Stockpile) BulkGetProfileId(names []string) ([]*entity.ProfileId, error)
- func (s *Stockpile) CheckBlacklist(addresses []string) ([]string, error)
- func (s *Stockpile) Close() error
- func (s *Stockpile) EventChannel(errorHandler ErrorFunc) (chan *entity.Event, error)
- func (s *Stockpile) GetBlacklist() (*entity.Blacklist, error)
- func (s *Stockpile) GetNameHistory(id uuid.UUID) (*entity.NameChangeHistory, error)
- func (s *Stockpile) GetPluginList() ([]*plugin.Metadata, error)
- func (s *Stockpile) GetProfile(id uuid.UUID) (*entity.Profile, error)
- func (s *Stockpile) GetProfileId(name string, at time.Time) (*entity.ProfileId, error)
- func (s *Stockpile) GetStatus() (*entity.Status, error)
- func (s *Stockpile) Login(displayName string, serverId string, ip string) (*entity.Profile, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorFunc ¶
type ErrorFunc = func(error)
provides an alias for a function which's sole purpose is to respond to error cases in async functions
type Stockpile ¶
func (*Stockpile) BulkGetProfileId ¶
queries the server for the player profiles which are currently associated to the given names
func (*Stockpile) CheckBlacklist ¶
asks a server to verify whether one or more of the given addresses have been blacklisted only matching addresses will be returned, when the list is empty, none matched
func (*Stockpile) EventChannel ¶
creates an event channel which will be notified about cache events as they occur
func (*Stockpile) GetBlacklist ¶
queries a server for the full server blacklist
func (*Stockpile) GetNameHistory ¶
queries the server for the complete name history of a given profile
func (*Stockpile) GetPluginList ¶
queries a server for its loaded plugins
func (*Stockpile) GetProfile ¶
queries the server for a given profile
func (*Stockpile) GetProfileId ¶
queries a server for the player profile which has been associated to a given name at a specific time