Documentation
¶
Overview ¶
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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 ¶
- Constants
- Variables
- type Gender
- type User
- type UserProvider
- func (u *UserProvider) GetUser(ctx context.Context, userID string) (*User, error)
- func (u *UserProvider) GetUser0(userID string, name string) (User, error)
- func (u *UserProvider) GetUser2(ctx context.Context, userID string) (*User, error)
- func (u *UserProvider) GetUser3() error
- func (u *UserProvider) GetUsers(req []interface{}) ([]*User, error)
- func (s *UserProvider) MethodMapper() map[string]string
- type UserProvider1
- func (u *UserProvider1) GetUser(ctx context.Context, userID string) (*User, error)
- func (u *UserProvider1) GetUser0(userID string, name string) (User, error)
- func (u *UserProvider1) GetUser2(ctx context.Context, userID string) (*User, error)
- func (u *UserProvider1) GetUser3() error
- func (u *UserProvider1) GetUsers(req []interface{}) ([]*User, error)
- func (s *UserProvider1) MethodMapper() map[string]string
- type UserProvider2
- func (u *UserProvider2) GetUser(ctx context.Context, userID string) (*User, error)
- func (u *UserProvider2) GetUser0(userID string, name string) (User, error)
- func (u *UserProvider2) GetUser2(ctx context.Context, userID string) (*User, error)
- func (u *UserProvider2) GetUser3() error
- func (u *UserProvider2) GetUsers(req []interface{}) ([]*User, error)
- func (s *UserProvider2) MethodMapper() map[string]string
Constants ¶
const ( MAN = iota WOMAN )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type UserProvider ¶
type UserProvider struct {
}
func (*UserProvider) GetUser0 ¶
func (u *UserProvider) GetUser0(userID string, name string) (User, error)
func (*UserProvider) GetUser3 ¶
func (u *UserProvider) GetUser3() error
func (*UserProvider) GetUsers ¶
func (u *UserProvider) GetUsers(req []interface{}) ([]*User, error)
func (*UserProvider) MethodMapper ¶
func (s *UserProvider) MethodMapper() map[string]string
type UserProvider1 ¶
type UserProvider1 struct {
}
func (*UserProvider1) GetUser0 ¶
func (u *UserProvider1) GetUser0(userID string, name string) (User, error)
func (*UserProvider1) GetUser3 ¶
func (u *UserProvider1) GetUser3() error
func (*UserProvider1) GetUsers ¶
func (u *UserProvider1) GetUsers(req []interface{}) ([]*User, error)
func (*UserProvider1) MethodMapper ¶
func (s *UserProvider1) MethodMapper() map[string]string
type UserProvider2 ¶
type UserProvider2 struct {
}
func (*UserProvider2) GetUser0 ¶
func (u *UserProvider2) GetUser0(userID string, name string) (User, error)
func (*UserProvider2) GetUser3 ¶
func (u *UserProvider2) GetUser3() error
func (*UserProvider2) GetUsers ¶
func (u *UserProvider2) GetUsers(req []interface{}) ([]*User, error)
func (*UserProvider2) MethodMapper ¶
func (s *UserProvider2) MethodMapper() map[string]string