go-api-boilerplate: github.com/vardius/go-api-boilerplate/cmd/user/proto Index | Files

package proto

import "github.com/vardius/go-api-boilerplate/cmd/user/proto"

Index

Package Files

user.pb.go

func RegisterUserServiceServer Uses

func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)

type DispatchCommandRequest Uses

type DispatchCommandRequest struct {
    Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    Payload              []byte   `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

DispatchCommandRequest is passed when dispatching

func (*DispatchCommandRequest) Descriptor Uses

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

func (*DispatchCommandRequest) GetName Uses

func (m *DispatchCommandRequest) GetName() string

func (*DispatchCommandRequest) GetPayload Uses

func (m *DispatchCommandRequest) GetPayload() []byte

func (*DispatchCommandRequest) ProtoMessage Uses

func (*DispatchCommandRequest) ProtoMessage()

func (*DispatchCommandRequest) Reset Uses

func (m *DispatchCommandRequest) Reset()

func (*DispatchCommandRequest) String Uses

func (m *DispatchCommandRequest) String() string

func (*DispatchCommandRequest) XXX_DiscardUnknown Uses

func (m *DispatchCommandRequest) XXX_DiscardUnknown()

func (*DispatchCommandRequest) XXX_Marshal Uses

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

func (*DispatchCommandRequest) XXX_Merge Uses

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

func (*DispatchCommandRequest) XXX_Size Uses

func (m *DispatchCommandRequest) XXX_Size() int

func (*DispatchCommandRequest) XXX_Unmarshal Uses

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

type GetUserRequest Uses

type GetUserRequest 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:"-"`
}

GetUserRequest is a request data to read user

func (*GetUserRequest) Descriptor Uses

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

func (*GetUserRequest) GetId Uses

func (m *GetUserRequest) GetId() string

func (*GetUserRequest) ProtoMessage Uses

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) Reset Uses

func (m *GetUserRequest) Reset()

func (*GetUserRequest) String Uses

func (m *GetUserRequest) String() string

func (*GetUserRequest) XXX_DiscardUnknown Uses

func (m *GetUserRequest) XXX_DiscardUnknown()

func (*GetUserRequest) XXX_Marshal Uses

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

func (*GetUserRequest) XXX_Merge Uses

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

func (*GetUserRequest) XXX_Size Uses

func (m *GetUserRequest) XXX_Size() int

func (*GetUserRequest) XXX_Unmarshal Uses

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

type ListUserRequest Uses

type ListUserRequest struct {
    Page                 int32    `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
    Limit                int32    `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

ListUserRequest is a request data to read all user for a given page

func (*ListUserRequest) Descriptor Uses

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

func (*ListUserRequest) GetLimit Uses

func (m *ListUserRequest) GetLimit() int32

func (*ListUserRequest) GetPage Uses

func (m *ListUserRequest) GetPage() int32

func (*ListUserRequest) ProtoMessage Uses

func (*ListUserRequest) ProtoMessage()

func (*ListUserRequest) Reset Uses

func (m *ListUserRequest) Reset()

func (*ListUserRequest) String Uses

func (m *ListUserRequest) String() string

func (*ListUserRequest) XXX_DiscardUnknown Uses

func (m *ListUserRequest) XXX_DiscardUnknown()

func (*ListUserRequest) XXX_Marshal Uses

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

func (*ListUserRequest) XXX_Merge Uses

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

func (*ListUserRequest) XXX_Size Uses

func (m *ListUserRequest) XXX_Size() int

func (*ListUserRequest) XXX_Unmarshal Uses

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

type ListUserResponse Uses

type ListUserResponse struct {
    Users                []*User  `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
    Page                 int32    `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
    Limit                int32    `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
    Total                int32    `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

ListUserResponse list of all users

func (*ListUserResponse) Descriptor Uses

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

func (*ListUserResponse) GetLimit Uses

func (m *ListUserResponse) GetLimit() int32

func (*ListUserResponse) GetPage Uses

func (m *ListUserResponse) GetPage() int32

func (*ListUserResponse) GetTotal Uses

func (m *ListUserResponse) GetTotal() int32

func (*ListUserResponse) GetUsers Uses

func (m *ListUserResponse) GetUsers() []*User

func (*ListUserResponse) ProtoMessage Uses

func (*ListUserResponse) ProtoMessage()

func (*ListUserResponse) Reset Uses

func (m *ListUserResponse) Reset()

func (*ListUserResponse) String Uses

func (m *ListUserResponse) String() string

func (*ListUserResponse) XXX_DiscardUnknown Uses

func (m *ListUserResponse) XXX_DiscardUnknown()

func (*ListUserResponse) XXX_Marshal Uses

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

func (*ListUserResponse) XXX_Merge Uses

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

func (*ListUserResponse) XXX_Size Uses

func (m *ListUserResponse) XXX_Size() int

func (*ListUserResponse) XXX_Unmarshal Uses

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

type User Uses

type User struct {
    Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    Email                string   `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
    FacebookId           string   `protobuf:"bytes,3,opt,name=facebookId,proto3" json:"facebookId,omitempty"`
    GoogleId             string   `protobuf:"bytes,4,opt,name=googleId,proto3" json:"googleId,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

User object

func (*User) Descriptor Uses

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

func (*User) GetEmail Uses

func (m *User) GetEmail() string

func (*User) GetFacebookId Uses

func (m *User) GetFacebookId() string

func (*User) GetGoogleId Uses

func (m *User) GetGoogleId() string

func (*User) GetId Uses

func (m *User) GetId() string

func (*User) ProtoMessage Uses

func (*User) ProtoMessage()

func (*User) Reset Uses

func (m *User) Reset()

func (*User) String Uses

func (m *User) String() string

func (*User) XXX_DiscardUnknown Uses

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal Uses

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

func (*User) XXX_Merge Uses

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

func (*User) XXX_Size Uses

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal Uses

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

type UserServiceClient Uses

type UserServiceClient interface {
    DispatchCommand(ctx context.Context, in *DispatchCommandRequest, opts ...grpc.CallOption) (*empty.Empty, error)
    GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
    ListUsers(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserResponse, error)
}

UserServiceClient is the client API for UserService service.

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

func NewUserServiceClient Uses

func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient

type UserServiceServer Uses

type UserServiceServer interface {
    DispatchCommand(context.Context, *DispatchCommandRequest) (*empty.Empty, error)
    GetUser(context.Context, *GetUserRequest) (*User, error)
    ListUsers(context.Context, *ListUserRequest) (*ListUserResponse, error)
}

UserServiceServer is the server API for UserService service.

Package proto imports 6 packages (graph) and is imported by 1 packages. Updated 2020-08-04. Refresh now. Tools for package owners.