pb

package
v0.0.0-...-88fbf3c Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterWASMExampleServer

func RegisterWASMExampleServer(s *grpc.Server, srv WASMExampleServer)

Types

type Empty

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

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

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

func (*Empty) XXX_Merge

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

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

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

type Project

type Project struct {
	Id                   string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                 string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Project) Descriptor

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

func (*Project) GetId

func (m *Project) GetId() string

func (*Project) GetName

func (m *Project) GetName() string

func (*Project) GetUpdatedAt

func (m *Project) GetUpdatedAt() *timestamp.Timestamp

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) Reset

func (m *Project) Reset()

func (*Project) String

func (m *Project) String() string

func (*Project) XXX_DiscardUnknown

func (m *Project) XXX_DiscardUnknown()

func (*Project) XXX_Marshal

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

func (*Project) XXX_Merge

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

func (*Project) XXX_Size

func (m *Project) XXX_Size() int

func (*Project) XXX_Unmarshal

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

type ProjectsResponse

type ProjectsResponse struct {
	Projects             []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*ProjectsResponse) Descriptor

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

func (*ProjectsResponse) GetProjects

func (m *ProjectsResponse) GetProjects() []*Project

func (*ProjectsResponse) ProtoMessage

func (*ProjectsResponse) ProtoMessage()

func (*ProjectsResponse) Reset

func (m *ProjectsResponse) Reset()

func (*ProjectsResponse) String

func (m *ProjectsResponse) String() string

func (*ProjectsResponse) XXX_DiscardUnknown

func (m *ProjectsResponse) XXX_DiscardUnknown()

func (*ProjectsResponse) XXX_Marshal

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

func (*ProjectsResponse) XXX_Merge

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

func (*ProjectsResponse) XXX_Size

func (m *ProjectsResponse) XXX_Size() int

func (*ProjectsResponse) XXX_Unmarshal

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

type UnimplementedWASMExampleServer

type UnimplementedWASMExampleServer struct {
}

UnimplementedWASMExampleServer can be embedded to have forward compatible implementations.

func (*UnimplementedWASMExampleServer) ListProjects

func (*UnimplementedWASMExampleServer) ListUsers

type User

type User struct {
	Id                   string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	FirstName            string               `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName             string               `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	Email                string               `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetFirstName

func (m *User) GetFirstName() string

func (*User) GetId

func (m *User) GetId() string

func (*User) GetLastName

func (m *User) GetLastName() string

func (*User) GetUpdatedAt

func (m *User) GetUpdatedAt() *timestamp.Timestamp

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

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

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

type UsersResponse

type UsersResponse struct {
	Users                []*User  `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UsersResponse) Descriptor

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

func (*UsersResponse) GetUsers

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

func (*UsersResponse) ProtoMessage

func (*UsersResponse) ProtoMessage()

func (*UsersResponse) Reset

func (m *UsersResponse) Reset()

func (*UsersResponse) String

func (m *UsersResponse) String() string

func (*UsersResponse) XXX_DiscardUnknown

func (m *UsersResponse) XXX_DiscardUnknown()

func (*UsersResponse) XXX_Marshal

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

func (*UsersResponse) XXX_Merge

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

func (*UsersResponse) XXX_Size

func (m *UsersResponse) XXX_Size() int

func (*UsersResponse) XXX_Unmarshal

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

type WASMExampleClient

type WASMExampleClient interface {
	ListUsers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*UsersResponse, error)
	ListProjects(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ProjectsResponse, error)
}

WASMExampleClient is the client API for WASMExample service.

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

func NewWASMExampleClient

func NewWASMExampleClient(cc *grpc.ClientConn) WASMExampleClient

type WASMExampleServer

type WASMExampleServer interface {
	ListUsers(context.Context, *Empty) (*UsersResponse, error)
	ListProjects(context.Context, *Empty) (*ProjectsResponse, error)
}

WASMExampleServer is the server API for WASMExample service.

Jump to

Keyboard shortcuts

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