You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
43 lines
1.2 KiB
package logic |
|
|
|
import ( |
|
"context" |
|
"google.golang.org/protobuf/types/known/emptypb" |
|
"sonet/api/gen/postal" |
|
) |
|
|
|
type PostalServer struct { |
|
postal.UnimplementedPostalServer |
|
} |
|
|
|
func NewPostalServer() *PostalServer { |
|
return &PostalServer{} |
|
} |
|
|
|
func (p *PostalServer) Deliver(ctx context.Context, deliver *postal.ReqDeliver) (*postal.ResDeliver, error) { |
|
return nil, nil |
|
} |
|
|
|
func (p *PostalServer) DeliverBatch(ctx context.Context, batch *postal.ReqDeliverBatch) (*postal.ResDeliver, error) { |
|
return nil, nil |
|
} |
|
|
|
func (p *PostalServer) DeliverGroup(ctx context.Context, group *postal.ReqDeliverGroup) (*postal.ResDeliver, error) { |
|
return nil, nil |
|
} |
|
|
|
func (p *PostalServer) GroupCreate(ctx context.Context, create *postal.ReqGroupCreate) (*postal.ResGroupCreate, error) { |
|
return nil, nil |
|
} |
|
|
|
func (p *PostalServer) GroupJoin(ctx context.Context, join *postal.ReqGroupJoin) (*emptypb.Empty, error) { |
|
return nil, nil |
|
} |
|
|
|
func (p *PostalServer) GroupLeave(ctx context.Context, leave *postal.ReqGroupLeave) (*emptypb.Empty, error) { |
|
return nil, nil |
|
} |
|
|
|
func (p *PostalServer) GroupDissolve(ctx context.Context, dissolve *postal.ReqGroupDissolve) (*emptypb.Empty, error) { |
|
return nil, nil |
|
}
|
|
|