company_grpc

package
v0.0.0-...-945c817 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCompanyHandlerServer

func RegisterCompanyHandlerServer(s *grpc.Server, srv CompanyHandlerServer)

Types

type Company

type Company struct {
	ID                   int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	CompanyName          string   `protobuf:"bytes,2,opt,name=CompanyName,proto3" json:"CompanyName,omitempty"`
	Site                 string   `protobuf:"bytes,3,opt,name=Site,proto3" json:"Site,omitempty"`
	TagLine              string   `protobuf:"bytes,4,opt,name=TagLine,proto3" json:"TagLine,omitempty"`
	Description          string   `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"`
	Country              int64    `protobuf:"varint,6,opt,name=Country,proto3" json:"Country,omitempty"`
	City                 int64    `protobuf:"varint,7,opt,name=City,proto3" json:"City,omitempty"`
	Address              string   `protobuf:"bytes,8,opt,name=Address,proto3" json:"Address,omitempty"`
	Phone                string   `protobuf:"bytes,9,opt,name=Phone,proto3" json:"Phone,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Company) Descriptor

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

func (*Company) GetAddress

func (m *Company) GetAddress() string

func (*Company) GetCity

func (m *Company) GetCity() int64

func (*Company) GetCompanyName

func (m *Company) GetCompanyName() string

func (*Company) GetCountry

func (m *Company) GetCountry() int64

func (*Company) GetDescription

func (m *Company) GetDescription() string

func (*Company) GetID

func (m *Company) GetID() int64

func (*Company) GetPhone

func (m *Company) GetPhone() string

func (*Company) GetSite

func (m *Company) GetSite() string

func (*Company) GetTagLine

func (m *Company) GetTagLine() string

func (*Company) ProtoMessage

func (*Company) ProtoMessage()

func (*Company) Reset

func (m *Company) Reset()

func (*Company) String

func (m *Company) String() string

func (*Company) XXX_DiscardUnknown

func (m *Company) XXX_DiscardUnknown()

func (*Company) XXX_Marshal

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

func (*Company) XXX_Merge

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

func (*Company) XXX_Size

func (m *Company) XXX_Size() int

func (*Company) XXX_Unmarshal

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

type CompanyHandlerClient

type CompanyHandlerClient interface {
	CreateCompany(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*Company, error)
	Find(ctx context.Context, in *CompanyID, opts ...grpc.CallOption) (*CompanyOutput, error)
	Edit(ctx context.Context, in *CompanyWithUser, opts ...grpc.CallOption) (*Nothing, error)
}

CompanyHandlerClient is the client API for CompanyHandler service.

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

func NewCompanyHandlerClient

func NewCompanyHandlerClient(cc *grpc.ClientConn) CompanyHandlerClient

type CompanyHandlerServer

type CompanyHandlerServer interface {
	CreateCompany(context.Context, *UserID) (*Company, error)
	Find(context.Context, *CompanyID) (*CompanyOutput, error)
	Edit(context.Context, *CompanyWithUser) (*Nothing, error)
}

CompanyHandlerServer is the server API for CompanyHandler service.

type CompanyID

type CompanyID struct {
	ID                   int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CompanyID) Descriptor

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

func (*CompanyID) GetID

func (m *CompanyID) GetID() int64

func (*CompanyID) ProtoMessage

func (*CompanyID) ProtoMessage()

func (*CompanyID) Reset

func (m *CompanyID) Reset()

func (*CompanyID) String

func (m *CompanyID) String() string

func (*CompanyID) XXX_DiscardUnknown

func (m *CompanyID) XXX_DiscardUnknown()

func (*CompanyID) XXX_Marshal

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

func (*CompanyID) XXX_Merge

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

func (*CompanyID) XXX_Size

func (m *CompanyID) XXX_Size() int

func (*CompanyID) XXX_Unmarshal

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

type CompanyOutput

type CompanyOutput struct {
	ID                   int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	CompanyName          string   `protobuf:"bytes,2,opt,name=CompanyName,proto3" json:"CompanyName,omitempty"`
	Site                 string   `protobuf:"bytes,3,opt,name=Site,proto3" json:"Site,omitempty"`
	TagLine              string   `protobuf:"bytes,4,opt,name=TagLine,proto3" json:"TagLine,omitempty"`
	Description          string   `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"`
	Country              string   `protobuf:"bytes,6,opt,name=Country,proto3" json:"Country,omitempty"`
	City                 string   `protobuf:"bytes,7,opt,name=City,proto3" json:"City,omitempty"`
	Address              string   `protobuf:"bytes,8,opt,name=Address,proto3" json:"Address,omitempty"`
	Phone                string   `protobuf:"bytes,9,opt,name=Phone,proto3" json:"Phone,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CompanyOutput) Descriptor

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

func (*CompanyOutput) GetAddress

func (m *CompanyOutput) GetAddress() string

func (*CompanyOutput) GetCity

func (m *CompanyOutput) GetCity() string

func (*CompanyOutput) GetCompanyName

func (m *CompanyOutput) GetCompanyName() string

func (*CompanyOutput) GetCountry

func (m *CompanyOutput) GetCountry() string

func (*CompanyOutput) GetDescription

func (m *CompanyOutput) GetDescription() string

func (*CompanyOutput) GetID

func (m *CompanyOutput) GetID() int64

func (*CompanyOutput) GetPhone

func (m *CompanyOutput) GetPhone() string

func (*CompanyOutput) GetSite

func (m *CompanyOutput) GetSite() string

func (*CompanyOutput) GetTagLine

func (m *CompanyOutput) GetTagLine() string

func (*CompanyOutput) ProtoMessage

func (*CompanyOutput) ProtoMessage()

func (*CompanyOutput) Reset

func (m *CompanyOutput) Reset()

func (*CompanyOutput) String

func (m *CompanyOutput) String() string

func (*CompanyOutput) XXX_DiscardUnknown

func (m *CompanyOutput) XXX_DiscardUnknown()

func (*CompanyOutput) XXX_Marshal

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

func (*CompanyOutput) XXX_Merge

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

func (*CompanyOutput) XXX_Size

func (m *CompanyOutput) XXX_Size() int

func (*CompanyOutput) XXX_Unmarshal

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

type CompanyWithUser

type CompanyWithUser struct {
	MyCompany            *Company `protobuf:"bytes,1,opt,name=MyCompany,proto3" json:"MyCompany,omitempty"`
	UserID               int64    `protobuf:"varint,2,opt,name=UserID,proto3" json:"UserID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CompanyWithUser) Descriptor

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

func (*CompanyWithUser) GetMyCompany

func (m *CompanyWithUser) GetMyCompany() *Company

func (*CompanyWithUser) GetUserID

func (m *CompanyWithUser) GetUserID() int64

func (*CompanyWithUser) ProtoMessage

func (*CompanyWithUser) ProtoMessage()

func (*CompanyWithUser) Reset

func (m *CompanyWithUser) Reset()

func (*CompanyWithUser) String

func (m *CompanyWithUser) String() string

func (*CompanyWithUser) XXX_DiscardUnknown

func (m *CompanyWithUser) XXX_DiscardUnknown()

func (*CompanyWithUser) XXX_Marshal

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

func (*CompanyWithUser) XXX_Merge

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

func (*CompanyWithUser) XXX_Size

func (m *CompanyWithUser) XXX_Size() int

func (*CompanyWithUser) XXX_Unmarshal

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

type Nothing

type Nothing struct {
	Dummy                bool     `protobuf:"varint,1,opt,name=dummy,proto3" json:"dummy,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Nothing) Descriptor

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

func (*Nothing) GetDummy

func (m *Nothing) GetDummy() bool

func (*Nothing) ProtoMessage

func (*Nothing) ProtoMessage()

func (*Nothing) Reset

func (m *Nothing) Reset()

func (*Nothing) String

func (m *Nothing) String() string

func (*Nothing) XXX_DiscardUnknown

func (m *Nothing) XXX_DiscardUnknown()

func (*Nothing) XXX_Marshal

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

func (*Nothing) XXX_Merge

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

func (*Nothing) XXX_Size

func (m *Nothing) XXX_Size() int

func (*Nothing) XXX_Unmarshal

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

type UnimplementedCompanyHandlerServer

type UnimplementedCompanyHandlerServer struct {
}

UnimplementedCompanyHandlerServer can be embedded to have forward compatible implementations.

func (*UnimplementedCompanyHandlerServer) CreateCompany

func (*UnimplementedCompanyHandlerServer) CreateCompany(ctx context.Context, req *UserID) (*Company, error)

func (*UnimplementedCompanyHandlerServer) Edit

func (*UnimplementedCompanyHandlerServer) Find

type UserID

type UserID struct {
	ID                   int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserID) Descriptor

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

func (*UserID) GetID

func (m *UserID) GetID() int64

func (*UserID) ProtoMessage

func (*UserID) ProtoMessage()

func (*UserID) Reset

func (m *UserID) Reset()

func (*UserID) String

func (m *UserID) String() string

func (*UserID) XXX_DiscardUnknown

func (m *UserID) XXX_DiscardUnknown()

func (*UserID) XXX_Marshal

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

func (*UserID) XXX_Merge

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

func (*UserID) XXX_Size

func (m *UserID) XXX_Size() int

func (*UserID) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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